# Not able to use full URI in the playbook

**URL:** <https://forum.ansible.com/t/not-able-to-use-full-uri-in-the-playbook/23745>\
**Category:** Ansible Project\
**Tags:** azure\
**Created:** [February 16, 2017, 2:33pm UTC](https://forum.ansible.com/t/not-able-to-use-full-uri-in-the-playbook/23745 "2017-02-16T14:33:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![shanmuga\_Mahalingam](https://avatars.discourse-cdn.com/v4/letter/s/7bcc69/32.png) [@shanmuga\_Mahalingam](https://forum.ansible.com/u/shanmuga_Mahalingam)\
**Post date:** [February 16, 2017, 2:33pm UTC](https://forum.ansible.com/t/not-able-to-use-full-uri-in-the-playbook/23745/1 "2017-02-16T14:33:59Z")

</div>

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
