Articles → MICROSOFT AZURE → Create A Virtual Machine Using The Azure CLI

Create A Virtual Machine Using The Azure CLI






Syntax


az vm create --resource-group <Resource-Group-Name> --name <Virtual Machine Name> --image <Operating System Image> --admin-username <Admin User Name> --admin-password <Admin Password>



Example


az vm create --resource-group RG --name MYVM --image win2019datacenter --admin-username DemoUser --admin-password AdminPassword@123



Output


Picture showing the ouput json when the virtual machine is created using the Azure CLI
Click to Enlarge


Posted By  -  Karan Gupta
 
Posted On  -  Saturday, April 17, 2021

Query/Feedback


Your Email Id
 
Subject
 
Query/FeedbackCharacters remaining 250