|
|
@ -1243,7 +1243,7 @@ class AzureRMVirtualMachine(AzureRMModuleBase):
|
|
|
|
|
|
|
|
|
|
|
|
if self.subnet_name:
|
|
|
|
if self.subnet_name:
|
|
|
|
try:
|
|
|
|
try:
|
|
|
|
subnet = self.network_client.subnets.get(self.resource_group, virtual_network_name)
|
|
|
|
subnet = self.network_client.subnets.get(self.resource_group, virtual_network_name, self.subnet_name)
|
|
|
|
subnet_id = subnet.id
|
|
|
|
subnet_id = subnet.id
|
|
|
|
except Exception as exc:
|
|
|
|
except Exception as exc:
|
|
|
|
self.fail("Error: fetching subnet {0} - {1}".format(self.subnet_name, str(exc)))
|
|
|
|
self.fail("Error: fetching subnet {0} - {1}".format(self.subnet_name, str(exc)))
|
|
|
|