mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-26 12:21:26 -07:00
dev test labs artifacts and virtual machine modules (#51462)
* dev test labs vm and artifacts * fix sanity * fixing sanity * disable artifact test for now * + vn update * fix sanity * fixed test issue * one more merge update * fixed assert
This commit is contained in:
parent
c9fea2b74b
commit
20a96bcc4e
4 changed files with 1081 additions and 3 deletions
|
@ -166,6 +166,19 @@ class AzureRMDevTestLabVirtualNetwork(AzureRMModuleBase):
|
|||
if self.virtual_network.get('location') is None:
|
||||
self.virtual_network['location'] = resource_group.location
|
||||
|
||||
# subnet overrides for virtual network and subnet created by default
|
||||
template = "/subscriptions/{0}/resourceGroups/{1}/providers/Microsoft.Network/virtualNetworks/{2}/subnets/{3}"
|
||||
subnet_id = template.format(self.subscription_id,
|
||||
self.resource_group,
|
||||
self.name,
|
||||
self.name + "Subnet")
|
||||
self.virtual_network['subnet_overrides'] = [{
|
||||
'resource_id': subnet_id,
|
||||
'lab_subnet_name': self.name + "Subnet",
|
||||
'use_in_vm_creation_permission': 'Allow',
|
||||
'use_public_ip_address_permission': 'Allow'
|
||||
}]
|
||||
|
||||
old_response = self.get_virtualnetwork()
|
||||
|
||||
if not old_response:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue