Upload VHD file to lab's storage account using PowerShell
In Azure DevTest Labs, VHD files can be used to create custom images, which are used to provision virtual machines. The following steps walk you through using PowerShell 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
The following steps walk you through uploading a VHD file to Azure DevTest Labs using PowerShell.
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.
On the Upload an image using PowerShell blade, copy the generated PowerShell script to a text editor.
Modify the LocalFilePath parameter of the Add-AzureVhd cmdlet to point to the location of the VHD file you want to upload.
At a PowerShell prompt, run the Add-AzureVhd cmdlet (with the modified LocalFilePath parameter).
The process of uploading a VHD file can be lengthy depending on the size of the VHD file and your connection speed.