ansible azure module - deletion of cloud services when deleting vm's

Hello,

I have been working with the azure module: http://docs.ansible.com/ansible/azure_module.html
and have found it very functional so far.

The one request I would have is that the user be provided the option of also deleting the associated cloud service when deleting vm’s.
Otherwise, my experience has shown that the user must delete the cloud services themselves if they wish to use the ansible playbook to recreate said vm’s
I am iterating on setting up some test vm’s and looking for efficiency in repeated test runs.

For example, I can create a vm once via playbook and delete it as well, however, subsequent attempts result in this error:
failed: [localhost → 127.0.0.1] => (item={‘name’: ‘TESTMACHINE_NAME’, ‘location’: ‘LOCATION’}) => {“failed”: true, “item”: {“location”: “LOCATION”, “name”: “TESTMACHINE_NAME”}}
msg: failed to lookup the deployment information for TESTMACHINE_NAME, error was: Not found (Not Found)

This requires other intervention by the user to be able to use the playbook with the same vm name(s)
While it is possible to script / playbook calls to the cli to handle the deletion of the service(s), I am hoping to avoid installing and setting up the azure cli on machines in the future.

Any thoughts on this are welcome.

Thanks,
Patrick

Open a ticket in the github issue tracker so this is 'on the list'.

Hi Brian,

Do you know if this has been addressed??