Table of Contents


Summary

There are many scenarios in which we have to work on Microsoft Azure Cloud doing experiments and LABs. After successful completion and testing of your Azure VM setup, you can download your Virtual Machine VHD into your desktop computer for further using the same VHD with your Hyper-V Server. In this article, we will walk through the steps required to download the Azure VM VHD.

1. Signed in to your Azure Subscription
2. Select the Virtual Machine in Azure Portal
3. Stop your Virtual Machine on which you wanted to start downloading
4. Go to Virtual Machine property --> Disk
5. You need to identify the blob name of your Virtual Disk into your storage account
6. Click on OS Disk, it will give you complete Disk information with URI of the VHD
7. Now you can copy the URI link of your Virtual Machine Disk VHD You must have Azure PowerShell module installed in your system to kick off this process. Login to your Azure Subscription from Azure PowerShell

Login to Azure Subscription

You need to provide User Name and Password of your Azure subscription to log in from PowerShell.

Azure Subscription List

Get information of Azure subscriptions you have associated with your account.

Select Azure Subscription

Now you need to select the Azure subscription ID in which your Virtual Machine is running.

Stopping Azure Virtual Machine

At this point, you have to stop your Virtual Machine so that you can start downloading of the VHD.


Copy Azure Virtual Machine Disk URI.

Start Downloading Azure VM VHD

This is the time to start downloading your Azure Virtual Machine VHD Save-AzureRmVhd -ResourceGroupName MySourceGroupName -SourceUri "copy-your-VM-Disk-Uri-here" -LocalFilePath "C:\temp\VM-Name.vhd"


 
At this point, you have to wait or take a coffee break until its complete the downloading.

After downloading completed you can further use the same VHD into your Hyper-V Server 2012-2016.