az vm create \
--resource-group "resource_group_name" \
--name "vm_name" \
--image "image_name" \
--admin-username "admin_user"
Following example creates a UbuntuLTS
VM named "testVM" and uses "azureuser" for an administrative user name. You will be prompted to
to enter a password at the command line.
az vm create \
--resource-group myTestResourceGroup \
--name testVM \
--image UbuntuLTS \
--admin-username azureuser
Similar Articles