First let’s create the VM. You can read more about it in Azure docs here.
First create a resource group to hold your VM and other resources.
az group create --name TutorialResources --location eastus
Next let’s create the Ubuntu VM.

az vm create --resource-group TutorialResources \
--admin-username azureuser
--name TutorialVM1 \
--image UbuntuLTS \
--generate-ssh-keys \
--output json \
--verbose
Once done try and connect using ssh and the public IP adress that displayed as part of the verbose output.
ssh azureuser@ip-adress

There we go! Now in the next post we’ll install docker.