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
Click to Enlarge