Category: Microsoft, nginx, shell

az vm create \ — resource-group learn-b60a8aaa-ef0b-4e8e-9151–324e896d6b32 \ — location westus \ — name SampleVM \ — image UbuntuLTS \ — admin-username azureuser \ — generate-ssh-keys \ — verbose When Creating a VM you are given a public IP address that can be accessed over the internet, and a private IP address used within Azure Data Center.

You can use the following command to list the available VM images: az vm image list — output table

You can get a list of available sizes using this command in Azure Cloud Shell az vm list-sizes — location eastus — output table

This next command is a useful command in case you forgot to capture the IP address or if it changes: vm list-ip-addresses az vm list-ip-addresses -n SampleVM -o table

Related Articles