az group create –name myResourceGroup –location eastus
az vm create
–resource-group myResourceGroup
–name myVM
–image UbuntuLTS
–admin-username “azureuser” –generate-ssh-keys
–public-ip-sku Standard
az vm create
–resource-group mySpotGroup
–name myVM
–image UbuntuLTS
–admin-username azureuser
–generate-ssh-keys
–priority Spot
–max-price -1
–eviction-policy Deallocate
az vm run-command invoke
-g myResourceGroup
-n myVM
–command-id RunShellScript
–scripts “sudo apt-get update && sudo apt-get install -y nginx”
az vm open-port –port 80 –resource-group myResourceGroup –name myVM
az group delete –name myResourceGroup