Hi All,
I’m new to this group and much more interested to learn ansible. So this time I need your help. I’m trying to stop or shut down all the azure VMs by using ansible but it’s failed all the time. Kindly check the screenshots and let me know where I did the mistake.
It’s resolved by using the below yml file
Hi
I don’t see any yml file below? Are you referring to the (two) previous replies that contains image attachments?
Next time please do everyone a favor by just sending copied text instead of fiddling with image attachments.
That will increase the chance of getting useful responses, plus you can actually not include passwords instead of scribbling over them.
From the docs at https://docs.ansible.com/ansible/latest/modules/azure_rm_virtualmachine_module.html the first thing that comes to mind when one needs a VM to be stopped, is using
“started: no”.