Virtual Machine Export / Migration from Azure to Hyper-V On-Premises

Steven Rodriguez 0 Reputation points
2023-09-21T13:28:15.59+00:00

I am preparing to migrate 2 VM's currently in Azure back to an on-premises Hyper-V server. From the documentation I have read, I see that you can export the .VHD, however I cannot find anything with regards to how to export the .VMCX (Virtual Machine File). From my understanding, this file would be necessary to preserve the machine ID in order to prevent software reactivations do to the "hardware change". What is the proper way to handle this?

Azure Migrate
Azure Migrate
A central hub of Azure cloud migration services and tools to discover, assess, and migrate workloads to the cloud.
785 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Anonymous
    2023-09-26T15:35:47.4566667+00:00

    You probably don't even need the XML file. You could create a new VM on with an identical configuration as existing, then when you get to step Connect Virtual Hard Disk choose Use an existing virtual hard disk and point to the VHD.

    --please don't forget to close up the thread here by marking answer if the reply is helpful--

    1 person found this answer helpful.

  2. Ryan Hill 27,686 Reputation points Microsoft Employee
    2023-09-26T15:29:27.02+00:00

    Hi @Steven Rodriguez

    The .VMCX file is an XML file of the machine configuration. So, you should be able to use Export-VM -Name \<vm name\> -Path \<path\> to export the VM as a .VMCX file.

    Comment down below if that file doesn't work.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.