To Stop Multiple Azure VMs

84 views
Skip to first unread message

Ashadeep Parida

unread,
Dec 25, 2019, 10:43:39 AM12/25/19
to ansible...@googlegroups.com

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.


image.png

image.png
image.png
--

 Regards,

Ashadeep Parida 

  "Success comes when condition teaches you how to grab the opportunities"




Message has been deleted

Ashadeep Parida

unread,
Dec 25, 2019, 12:41:05 PM12/25/19
to Ansible Project

stop all azure Vm.JPG


Ashadeep Parida

unread,
Dec 25, 2019, 12:42:22 PM12/25/19
to Ansible Project
It's resolved by using the below yml file


Dick Visser

unread,
Dec 25, 2019, 4:36:57 PM12/25/19
to ansible...@googlegroups.com
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”.

On Wed, 25 Dec 2019 at 18:43, Ashadeep Parida <ashade...@gmail.com> wrote:
It's resolved by using the below yml file


--
You received this message because you are subscribed to the Google Groups "Ansible Project" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ansible-proje...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/d77cb6ca-f02b-481d-b831-d3a2e49ed465%40googlegroups.com.
--
Sent from a mobile device - please excuse the brevity, spelling and punctuation.
Reply all
Reply to author
Forward
0 new messages