Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. If you haven't already done so, install the Azure CLI. For information, see see How to install the Azure CLI.
  2. Run the az login command in the Azure CLI to generate an authentication token. 
  3. 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.
  4. Sign in using your account credentials.Run the
  5. 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:

...

  1.  --source  “VHD path”
  2. 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

...