Migrate Hyper-V VMs to Azure Stack HCI using Azure Migrate (preview)
Applies to: Azure Stack HCI, version 23H2
This article describes how to migrate the Hyper-V virtual machines (VMs) to Azure Stack HCI using Azure Migrate and includes the steps to verify the migration.
Important
This feature is currently in PREVIEW. See the Supplemental Terms of Use for Microsoft Azure Previews for legal terms that apply to Azure features that are in beta, preview, or otherwise not yet released into general availability.
Before you begin
Before you migrate your VMs:
- Make sure that you have replicated the VM on your Azure Stack HCI cluster. To replicate a VM, use the instructions in Replicate Hyper-V VMs to Azure Stack HCI using Azure Migrate.
- Make sure the replication has completed and the migration status is Ready to migrate.
Migrate VMs
In the Azure portal, go to your Azure Migrate project > Servers, databases and web apps.
On the Migration tools tile, select Overview.
Go to Azure Stack HCI migration > Replications.
From the top command bar of the Replications page, select Migrate to migrate multiple VMs that are ready.
Alternatively, you can select Migrate from the context menu for a single VM that is ready to migrate.
On the Migrate page:
- Review the details of the VM(s) that you want to migrate.
- Select whether or not you would like to shut down VM(s) before migration. We recommend that you shut down VMs as that ensures no data is lost.
- Select Migrate to start the migration. A notification appears that the migration has started.
Refresh the page periodically to view the migration status. You can also select the migration status at any time to view the progress details.
The Planned failover blade indicates the various migration tasks in progress.
The migration status changes from Migration in progress to Completed when the migration is complete.
Once the migration is complete, the VMs are running on your Azure Stack HCI cluster. You can view the VMs in the Azure portal.
Verify migration
In the Azure portal, go to your Azure Stack HCI cluster resource > Virtual machines.
In the list of VMs in the right-pane, verify that the VMs that you migrated are present.
Select a VM to view its details. Verify that:
- The VM is running. The corresponding source VM in the Hyper-V server is turned off.
- The VM has the disk and network configuration as configured during replication.
Sign into the VM using Hyper-V VMConnect. Verify that:
- The VM behaves as expected.
- Your applications work as expected.
In the Azure portal, select the ellipses ... next to the VM and select Complete migration.
Alternatively, select the VM name.
From the top command bar, select Complete migration. When prompted for confirmation, select Yes to continue. Repeat this action for all the migrated VMs.
This action starts the Delete protected item job that you can track from the Jobs page. This job will only clean up the replication by deleting the delete protected item job - this will not affect your migrated VM.
After the migrate resource is deleted, it is also removed from the Replications view. You'll also see the migrated VM job disappear from the Replications view.
Clean up
Once you have verified that migration is complete and no more servers need to be migrated, the last step is to clean up. Cleanup requires deletion of the following resources created during migration:
- Source VMs and the associated VM disks from the Hyper-V server and the Failover Cluster Manager.
- Source and target appliance VMs.
Next steps
- If you experience any issues during migration, see Troubleshoot migration issues.