...
- 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.Run the
- following command at the CLI prompt:
az vm create --resource-group <> --name <> Create an image using the uploaded VHD from the storage account.az image create -g “resource group name” -n “Image name” --os-type Linux
--storage-account <> --storage-container <> --image "https://<storage_account_name>.blob.core.windows.net/<storage>/<container_blob_name>/<image_name>" --os-disk-name <> --size Standard_F4s_v2 --admin-username azureuser --admin-password Infoblox@123 --use-unmanaged-disk --location westus --custom-data <> --public-ip-address ""
The following is a sample CLI command with values:
...
--source “VHD path”
- Deploy VM from the Image.
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
...