For system, network and cloud administrators

How to create an Azure virtual machine using Azure CLI

In order to create an Azure virtual machine, let’s say Ubuntu, you can use:

az vm create --name YourVMName --resource-group YourResourceGroup --admin-username myuser --image UbuntuLTS --public-ip-sku Standard --generate-ssh-keys --verbose