Share via


Converting Hyper-V .vhdx to .vhd file formats for use in Windows Azure

So you’ve implemented Hyper-V and are using the .vhdx VM file formats for your virtual machines and want to go to the next level and take those virtual machines and move them into Windows Azure.

There are a few methods to accomplish this task, however I find using PowerShell is the quickest method to convert a .vhdx to .vhd.

CONVERTING YOUR VMs

Open a PowerShell window on the server that houses your .vhdx files and execute the following command:

PS C:\> Convert-VHD –Path c:\test\MY-VM.vhdx –DestinationPath c:\test\MY-NEW-VM.vhd

Note: if you’re utilizing differencing disks you’ll want to merge the disks with their parent before converting and uploading to Windows Azure.

Here’s an example:

clip_image002

That’s it!

Now you’re ready to upload your VM to Windows Azure.

ADDITIONAL REFERENCES

Convert-VHD https://technet.microsoft.com/en-us/library/hh848454.aspx

Comments

  • Anonymous
    November 04, 2013
    Great tip, thanks Courtenay!!!

  • Anonymous
    December 23, 2013
    Pingback from Running MS Office Demo VMs in Azure | Solving SharePoint issues - Eric Schrader

  • Anonymous
    January 19, 2014
    Great tip, thanks Courtenay!!! For more details please visit http://www.newsline77.com/

  • Anonymous
    January 27, 2014
    One of the benefits when working with Hyper-V and Windows Azure is the portability of Virtual Machines

  • Anonymous
    April 03, 2014
    Thanks alot ...this saves my life on production environment ....

  • Anonymous
    May 07, 2014
    Awesome! Simple and Easy...

  • Anonymous
    May 18, 2014
    Don't convert to some network location in example: \myserverc$ because you will get error.

  • Anonymous
    May 31, 2014
    Pingback from Uploader sa machine virtuelle sur Azure! - Mafyou's blog

  • Anonymous
    May 31, 2014
    Pingback from Uploader sa machine virtuelle sur Azure! - Mafyou's blog

  • Anonymous
    May 31, 2014
    Pingback from Uploader sa machine virtuelle sur Azure! - Mafyou's blog

  • Anonymous
    May 31, 2014
    Pingback from Uploader sa machine virtuelle sur Azure! - Mafyou's blog

  • Anonymous
    June 12, 2014
    Pingback from Uploader sa machine virtuelle sur Azure! - Mafyou's blog

  • Anonymous
    July 04, 2014
    Hi Sir,

    Thank u so much for the tip

  • Anonymous
    September 28, 2014
    This was very useful for me...This is the best and easiest way I found. I am hopeful now that my VM snapshot can be used on AWS. Thank you very much for sharing this.

  • Anonymous
    January 02, 2015
    Awesome! Simple and Easy...
    Thank you very much for sharing this..

  • Anonymous
    October 27, 2015
    Convert Hyper-V VHDX to VHD for use in Azure