# azure\_rm\_devtestlabvirtualmachnie VM Tags not functioning

**URL:** <https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachnie-vm-tags-not-functioning/30602>\
**Category:** Ansible Project\
**Tags:** azure, windows\
**Created:** [June 19, 2019, 3:19pm UTC](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachnie-vm-tags-not-functioning/30602 "2019-06-19T15:19:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Robert\_Williams](https://avatars.discourse-cdn.com/v4/letter/r/eb8c5e/32.png) [@Robert\_Williams](https://forum.ansible.com/u/Robert_Williams)\
**Post date:** [June 19, 2019, 3:19pm UTC](https://forum.ansible.com/t/azure-rm-devtestlabvirtualmachnie-vm-tags-not-functioning/30602/1 "2019-06-19T15:19:03Z")

</div>

Ansible 2.8.0  
Python 3.6.8  
azure-mgmt-devtestlabs 3.0.0  
[https://docs.ansible.com/ansible/latest/modules/azure\_rm\_devtestlabvirtualmachine\_module.html](https://docs.ansible.com/ansible/latest/modules/azure_rm_devtestlabvirtualmachine_module.html)

I am seeing behavior for azure\_rm\_devtestlabvirtualmachine where a VMs tags never get updated/appended or removed - the tags specified only get applied when first creating the VM which seems to run contrary to the spec.

The verbose output shows the correct tags which are different than what Azure UI shows, but  
`changed: false`  
.  
I have also tested variations of the  
`append_tags: true|false`

Neither seem to have any effect - false should remove tags, but has no effect. Below is the task example.

`

azure\_rm\_devtestlabvirtualmachine:  
ad\_user: “{{azure\_ad\_user}}”  
state: present  
auth\_source: auto  
cert\_validation\_mode: ignore  
resource\_group: “{{ azure\_resource\_group }}”  
lab\_name: “{{ azure\_lab\_name }}”  
name: “{{ cli\_vm\_names }}”  
disallow\_public\_ip\_address: yes  
vm\_size: “{{ azure\_vm\_size }}”  
os\_type: windows  
lab\_subnet:  
name: “mysubnet”  
virtual\_network\_name: “mynet”  
user\_name: “{{ azure\_vm\_username }}”  
password: “{{ azure\_vm\_pass }}”  
notes: “{{ azure\_vm\_sku }}”  
image:  
offer: “{{ azure\_vm\_offer }}”  
publisher: “{{ azure\_vm\_publisher }}”  
sku: “{{ azure\_vm\_sku }}”  
os\_type: “{{ azure\_vm\_os\_type }}”  
version: latest  
artifacts:

- source\_name: Public Repo  
source\_path: “/Artifacts/windows-firewall”  
parameters:
- name: firewallOperation  
value: “Disable Firewall”  
append\_tags: true  
allow\_claim: false  
tags:  
provisioned: “yes”

`
