Use the Ansible CLI to create a VM in AZURE Platform
Manage Linux virtual machines in Azure using Ansible --- # Get facts for the user - name: Create a Virtual Machine on Azure Using Ansible hosts: localhost vars: vm_name: "Test-Ansible" vm_size: "Standard_B1ls" vm_image: "RedHat:RHEL:8-LVM:latest" vm_username: "testansible" vm_password: "my-password@1234" rg_name: "test-ansible" vnet_name: "test-ansible" subnet_name: "test-ansible" location: "centralindia" subscription_id: <YOUR SUBSCRIPTION ID> tenant: <YOUR TENANT ID> client_id: <YOUR CLIENT ID> secret: <YOUR SECRET> tasks: - name: Create a Resource Group azure.azcollection.azure_rm_resourcegroup: ...