I tried to specify full URI in the vurtual_network_name and ansible can't 
find the subnet within the virtual network. 


azure_rm_networkinterface:
  name: testnetworkinfrastructure
  resource_group: testsourcegroup1
  virtual_network_name: 
*/subscriptions/xxxxxxxxxxxxxxxxxxxxx/resourceGroups/testsourcegroup1/providers/Microsoft.Network/virtualNetworks/testvirtualnetwork*
  subnet_name: testsubnet
  security_group_name: testsecuritygroup
  location: West Europe
  state: present





failed: [localhost] (item=ansible20-nic-01) => {"failed": true, "item": 
"ansible20-nic-01", "msg": "Error: fetching subnet testsubnet in virtual 
network 
/subscriptions/*xxxxxxxxxxxxxxxxxxx*/resourceGroups/testsourcegroup1/providers/Microsoft.Network/virtualNetworks/testvirtualnetwork
 - 
Azure Error: ResourceNotFound\nMessage: The Resource 
'Microsoft.Network/virtualNetworks/subscriptions' under resource group 
'testsourcegroup1' was not found."}


Am i doing some thing wrong ?. Or workaround pls ?


Help is much appreciated. 


Thanks,
Shan




-- 
You received this message because you are subscribed to the Google Groups 
"Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/ansible-project/4fbe3450-348d-438d-b09b-4caa44e100e1%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to