>

Articles → MICROSOFT AZURE → Create a virtual machine using the Azure CLI

Create a virtual machine using the Azure CLI






Command




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>




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




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