Create Multiple VMs on Azure

Hi Team,

I am working on playbook to deploy multiple virtual machines on Azure cloud, and i got succeed in that task, and am trying to run multiple tasks on newly created virtual machines using the same playbook which i used for creation. can somebody help me with this task please.

Thanks & Regards
-Shaik

This is for AWS but you can get the concept and apply using azure modules instead: https://github.com/ffirg/ansible/blob/master/vm_orchestration/offpremise/roles/offprem/tasks/amazon.yml
Basically capture register output and then use add_host to create an in memory inventory to apply the rest of the config to.