
Create a new Resource Group with a name and location, then do az vm create and then do az vm open-port passing in 5 parameters.
So the points to note for Creating a VM in Azure using the CLI are the following key points:-
Create a VM using Azure CLI (know the order) 5 parameters****
https://docs.microsoft.com/en-us/azure/virtual-machines/windows/quick-create-cli
- az group create –name GregorExamsRG –location westeurope
- az vm create
–resource-group GregorExamsRG
–name myVM
–image win2016datacenter
–admin-username azureuser
–admin-password ThisisMyPassword123$ - az vm open-port –port 80 –resource-group GregorExamsRG –name myVM



