...
- If you haven't already done so, install the Azure CLI. For information, see see How to install the Azure CLI.
- Run the
az login
command in the Azure CLI to generate an authentication token. - The CLI opens your default browser and loads the sign-in page. If the CLI does not open the browser for you, open a browser window and log in to https://microsoft.com/devicelogin using the authentication token you obtained from Azure. For more information, see Sign in with Azure CLI.
- Sign in using your account credentials.
- Create an image using the uploaded VHD from the storage account.
az image create -g “resource group name” -n “Image name” --os-type Linux --source “VHD path”
- Deploy the VM from the Imageimage.
az vm create --resource-group <> --name <> --location <> --nics <> --image <> --admin-username <> --public-ip-address "" --custom-data <> --size <>
...
Using the Azure Portal to Deploy the Host
...