Skip to main content Link Menu Expand (external link) Document Search Copy Copied

Task 01: Prepare for replication

Introduction

Not every Terra Firm workload will be modernized on day one-some systems need a clean lift-and-shift first to reduce risk and timeline. Preparing replication sets up Azure Migrate Server Migration so Dennis’s team can continuously replicate a Linux VM to Azure, making the eventual cutover faster and less disruptive. Azure Migrate Server Migration uses replication to copy Hyper-V VM data to Azure. Preparing for replication requires deploying supporting Azure resources, installing the replication provider on the Hyper-V host, and ensuring required permissions are in place.

Description

In this task, you’ll create the migration resources, install and register the Hyper-V replication provider, finalize registration in Azure Migrate, and configure access on the cache storage account so replication can proceed.

Success criteria

  • The Hyper-V host registration is finalized in Azure Migrate.
  • Migration resources (vault and related components) are created successfully.
  • Required permissions are configured so the vault/service can access the cache storage account.

Key tasks

  • Deploy migration resources for Hyper-V replication and download provider + vault credentials.
  • Install the replication provider on the Hyper-V host and register it using the downloaded credentials file.
  • Enable required identities/permissions and grant RBAC roles on the cache storage account.
  1. Connect to the HyperV host by using the HyperV-01 Host.rdp icon.

    ao294nfy.jpg

  2. Login using administrator,select OK and Passw0rd!, select OK.

  3. Open a web browser on the HyperV-01 Host and navigate to portal.azure.com.

  4. Sign in using your Azure credentials.

  5. Select Yes if prompted to stay signed in.

  6. In the Azure portal, search for Azure Migrate in the search bar and select Azure Migrate under Services.

    Azure Migrate is displayed in the Azure Search bar and highlighted in the search results.

  7. On the Azure Migrate blade, select All projects, and then select the Migration-Project-@lab.LabInstance.Id project.

  8. Expand Execute in the left menu, select Migrations, and on the Migration blade, select Discover more.

    The Discover more button is highlighted on the Migrations blade.

  9. On the Discover blade:

    Object Value
    Where to you want to migrate to? Azure VM
    Are your machines virtualized? Yes, with Hyper-V
    Target region @lab.CloudResourceGroup(AZMigrateRG).Location
  10. Check the box for Confirm that the target region for migration is @lab.CloudResourceGroup(AZMigrateRG).Location.

  11. Select Create resources.

  12. When the deployment completes, under 1. Prepare Hyper-V host servers, select the Download link to download the Hyper-V replication provider software installer.

  13. Select the Download button to download the registration key.

    The Download link and button are highlighted and numbers 1 and 2 under Prepare Hyper-V host servers.

    The files must be downloaded on the HyperV host, not the Migrate01 VM.

  14. In the downloads dropdown, hover over AzureSiteRecoveryProvider.exe, and the select Open file.

  15. In the Microsoft update page, select Off, and then select Next.

  16. Keep the defaults and select Install.

  17. Select Register and on the Vault SettingsPrepare for replication screen, select Browse

  18. On the left menu, select the Downloads folder and then select the Migration-Project-@lab.LabInstance.Id.Location-MigrateVault-@lab.LabInstance.Id_Migration-Project-@lab.LabInstance.Id-HyperVSite_xxxxxxx.VaultCredentials file.

  19. Select Open.

  20. Select Next.

  21. Select Connect directly to Azure Site Recovery without a proxy server and select Next.

  22. Configuration Azure Site Recovery for registration will take one or two minutes to install. When it completes, select Finish.

  23. Return to the Discover page in the Azure portal and refresh the browser page.

  24. Select Azure VM under Where do you want to migrate to? and Yes, with Hyper-V under Are your machines virtualized? to reload the previous discover page.

    You should see that you have one connected registration.

  25. Select Finalize registration.

    The connected registration and Finalize registrator button are highlighted on the Discover page.

    This step may take up to 3 minutes.

  26. After the registration completes, verify you see the registration finalized message.

    The registration finalized message is highlighted.

  27. Select Close on the Discover page.

  28. Close the RDP connection to return to the Migrate01 VM.

    p6c8dh0s.jpg

  29. On the Your remote session will be disconnected pop up, select OK.

Configure permissions

  1. In the Azure portal search bar enter and then select Recovery Services vaults.

  2. Select the Migration-Project-@lab.LabInstance.Id-MigrateVault-XXXXXX.

  3. Under Settings, select Identity.

  4. On the System assigned page, set the Status to On, and then select Save.

  5. On the Enable system assigned managed identity popup, select Yes.

  6. In the Azure portal search bar enter and then select storage accounts.

  7. Select the sto@lab.LabInstance.Id storage account.

  8. On the left menu, select Access Control (IAM).

  9. Select + Add > Add role assignment.

  10. In the search field enter Storage Blob Data Contributor, and then select the role.

  11. Select Next.

  12. Under Assign access to, select Managed Identity, and then select + Select members.

  13. On the Select managed identities flyout, under Managed identity, select All system-assigned managed identities (3).

  14. Select the all identities, and then select Select.

    62vqbkmb.jpg

  15. Select Review + assign twice.

  16. Select + Add > Add role assignment again.

  17. Select the Privileged administrator roles tab.

    92gg0sie.jpg

  18. Select the Contributor role.

  19. Select Next.

  20. Under Assign access to, select Managed Identity, and then select + Select members.

  21. On the Select managed identities flyout, under Managed identity, select All system-assigned managed identities (3).

  22. Select the all identities, and then select Select.

  23. Select Review + assign twice.

Congratulations!

You prepared Azure Migrate Server Migration for Hyper-V by deploying required resources, registering the replication provider, and configuring permissions for replication.