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 About disks and VHDs for virtual machines
The following steps walk you through uploading a VHD file to DevTest Labs using Microsoft Azure Storage Explorer.
Get the name of the lab's storage account using the Azure portal:
Sign in to the Azure portal.
Select All services, and then select DevTest Labs from the list.
From the list of labs, select the desired lab.
On the lab's blade, select Configuration.
On the lab Configuration blade, select Custom images (VHDs).
On the Custom images blade, Select +Add.
On the Custom image blade, select VHD.
On the VHD blade, select Upload a VHD using PowerShell.
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:
Make note of the storage account name as it is used in later steps.
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.
Open Storage Explorer.
In Storage Explorer, select Azure Account settings.
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.
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.)
The left pane displays the storage accounts associated with the selected Azure subscriptions.
Locate the lab's storage account:
In the Storage Explorer left pane, locate, and expand the node for the Azure subscription that owns the lab.
Under the subscription's node, expand Storage Accounts.
Expand the lab's storage account node to reveal nodes for Blob Containers, File Shares, Queues, and Tables.
Expand the Blob Containers node.
Select the uploads blob container to display its contents in the right pane.
Upload the VHD file using Storage Explorer:
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
From the Upload drop-down menu, select Upload files....
On the Upload files dialog, select the ellipsis.
On the Select files to upload dialog, browse to the desired VHD file, select it, and then select Open.
When returned to the Upload files dialog, change Blob type to Page Blob.
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.