Upload VHD file to lab's storage account using Microsoft Azure Storage Explorer

In Azure DevTest Labs, VHD files can be used to create custom images, which are used to provision virtual machines. This article illustrates how to use Microsoft Azure Storage Explorer to upload a VHD file to a lab's storage account. Once you've uploaded your VHD file, the Next steps section lists some articles that illustrate how to create a custom image from the uploaded VHD file. For more information about disks and VHDs in Azure, see Introduction to managed disks

Step-by-step instructions

The following steps walk you through uploading a VHD file to DevTest Labs using Microsoft Azure Storage Explorer.

  1. Download and install the latest version of the Microsoft Azure Storage Explorer.

  2. Get the name of the lab's storage account using the Azure portal:

    1. Sign in to the Azure portal.

    2. Select All services, and then select DevTest Labs from the list.

    3. From the list of labs, select the desired lab.

    4. On the lab's blade, select Configuration.

    5. On the lab Configuration blade, select Custom images (VHDs).

    6. On the Custom images blade, Select +Add.

    7. On the Custom image blade, select VHD.

    8. On the VHD blade, select Upload a VHD using PowerShell.

      Upload VHD using PowerShell

    9. The Upload an image using PowerShell blade displays a call to the Add-AzureVhd cmdlet. The first parameter (Destination) contains the storage account name for the lab in the following format:


    10. Make note of the storage account name as it is used in later steps.

  3. Connect to an Azure subscription account using Storage Explorer.


    Storage Explorer supports several connection options. This section illustrates connecting to a storage account associated with your Azure subscription. To see the other connection options supported by Storage Explorer, refer to the article, Getting started with Storage Explorer.

    1. Open Storage Explorer.

    2. In Storage Explorer, select Azure Account settings.

      Azure account settings

    3. The left pane displays the Microsoft accounts you've logged in to. To connect to another account, select Add an account, and follow the dialogs to sign in with a Microsoft account that is associated with at least one active Azure subscription.

      Add an account

    4. Once you successfully sign in with a Microsoft account, the left pane populates with the Azure subscriptions associated with that account. Select the Azure subscriptions with which you want to work, and then select Apply. (Selecting All subscriptions toggles the selection of all or none of the listed Azure subscriptions.)

      Select Azure subscriptions

    5. The left pane displays the storage accounts associated with the selected Azure subscriptions.

      Selected Azure subscriptions

  4. Locate the lab's storage account:

    1. In the Storage Explorer left pane, locate, and expand the node for the Azure subscription that owns the lab.

    2. Under the subscription's node, expand Storage Accounts.

    3. Expand the lab's storage account node to reveal nodes for Blob Containers, File Shares, Queues, and Tables.

    4. Expand the Blob Containers node.

    5. Select the uploads blob container to display its contents in the right pane.

      Upload directory

  5. Upload the VHD file using Storage Explorer:

    1. In the Storage Explorer right pane, you should see a listing of the blobs in the uploads blob container of the lab's storage account. On the blob editor toolbar, select Upload

      Upload button

    2. From the Upload drop-down menu, select Upload files....

    3. On the Upload files dialog, select the ellipsis.

      Select file

    4. On the Select files to upload dialog, browse to the desired VHD file, select it, and then select Open.

    5. When returned to the Upload files dialog, change Blob type to Page Blob.

    6. Select Upload.

      Select file

    7. The Storage Explorer Activity Log pane shows the download status (along with links to cancel the upload). The process of uploading a VHD file can be lengthy depending on the size of the VHD file and your connection speed.

      Upload-file status

Next steps