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.
  5. 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”

  6. Deploy VM from the Image.
    az vm create --resource-group <> --name <> --location <>  --nics <> --image <>  --admin-username <> --public-ip-address "" --custom-data <> --size  <>

...