Azure – How to move Hyper-V virtual machines to Azure with minimal impact

azurehyper-vvirtual-machines

My company is in the process of transitioning some of its on-premises services to the Microsoft cloud; some of them are being replaced altogether by hosted services (Exchange, SharePoint); some other are custom applications running on local servers, thus they need to be moved to Azure virtual machines without any modification to their current setup.

Luckily, almost all of our servers are Hyper-V virtual machines, thus the move should be quite straightforward; I've already set up an Azure virtual network, a site-to-site VPN and a domain controller for the cloud "site", and now I'd like to begin moving some VMs.

However, all the documentation I could find start with the imperative to run sysprep on the VM before uploading its VHD to Azure:

http://azure.microsoft.com/en-us/documentation/articles/virtual-machines-create-upload-vhd-windows-server
http://blogs.technet.com/b/cbernier/archive/2014/01/27/move-vm-s-between-hyper-v-and-windows-azure.aspx

I don't want to create custom VM templates. I need to move already running virtual machines to Azure, without any impact on their current configuration (apart from changing the network settings, of course). Sysprep is well known to wreak havoc on several applications, and it's something I definitely want to avoid.

How can this be achieved?

Best Answer

Upload it as a disk, attach to a VM and it runs. It'll be expecting a domain controller so you should prepare for that (either by having one in Azure or connecting back to the on-premises one).

Sysprep is required if you want to upload it as an image, to spawn other VMs. As a best practice, it's better to follow this route.

Check the official documentation for more details about the disks, images and VHDs in Azure.

Related Topic