No, I have no idea what azure is. So, can’t offer any help. You have not provided any details. Possibly describe what the process is for creating an azure account without ansible and what problems you are having with using ansible. Give us the steps you have attempted so far.
Appreciate your prompt response.Azure is a public cloud offering from Microsoft. WIthout Ansible, I would create the account with “Azure PowerShell” with the below command.:
What I have done so far is, I am being able to provision a base Windows 2016 Server in Azure, I want to now, automate the manual configuration task, first thing is to provision an automation account. The below snippet is of my yaml file which I run in Azure cloud shell and it provisions the environment.
name: Create Azure VM
hosts: localhost
connection: local
tasks:
name: Create resource group
azure_rm_resourcegroup:
name: myResourceGroup
location: eastus
OK. Haven’t touched Windows Server for a couple of years.
I searched the azure modules in ansible and like you, did not see anything directly related. My suggestion: since you already have a poweshell command to create the account, use the win_command module to run the powershell command where needed. That will probably be your fastest method to get your task accomplished.