adding possibility to specify resource group for referred virtual net… (#36768)

* adding possibility to specify resource group for referred virtual network

* fixed sanity issues

* removed trailing whitespace

* added test

* fixed documentation

* try to fix unstable test

* Tidied up the description of virtual_network_resource_group
This commit is contained in:
Zim Kalinowski 2018-03-22 10:10:29 +08:00 committed by Jordan Borean
commit fef5f01b11
2 changed files with 33 additions and 1 deletions

View file

@ -28,6 +28,24 @@
that:
- output.changed
- name: Create NIC using virtual_network_resource_group parameter
azure_rm_networkinterface:
resource_group: "{{ resource_group }}"
name: testnic001rg
virtual_network: testnic001
virtual_network_resource_group: "{{ resource_group_secondary }}"
subnet: testnic001
public_ip_name: testnic001
public_ip_allocation_method: Static
security_group: testnic001
register: output
- name: Delete NIC
azure_rm_networkinterface:
resource_group: "{{ resource_group }}"
name: testnic001rg
state: absent
- name: Create NIC
azure_rm_networkinterface:
resource_group: "{{ resource_group }}"