Considerations for Azure Stack Hub Replication


Before you configure replication for virtual machines, consider any restrictions or hypervisor-specific issues that might affect replication operations.

General Considerations

  • During a replication operation, you can only modify destination network settings for Windows VMs. Linux VMs are replicated without network connections.

  • If you select a specific VM for replication, the GUID of the source VM is used to identify the VM for replication. If the GUID of the source VM changes, the VM is not replicated. This situation can occur when a VM with the same name is added on the hypervisor for the source VM. To resolve this issue, remove the VM from the replication group and then add it back.

Azure Stack Hub Considerations

  • Before you replicate a VM from a non-Azure hypervisor, verify that the source VM meets the requirements for non-endorsed distributions. This verification is important because Linux VMs that are based on an endorsed distribution of Microsoft Azure have the prerequisites that enable them to run on Azure, but VMs that originate from other hypervisors might not. For more information, see Information for Non-Endorsed Distributions.

  • The operating system for the destination VM must be an operating system that is supported for Microsoft Azure.

  • Before you replicate a Linux source VM that runs CentOS or Red Hat, verify that required Hyper-V drivers are installed on the source VM. Those drivers must be present on the source VM in order to boot the VM after replication.

    1. Enable Changed Block Tracking (CBT) for the source VM.

    2. Take a snapshot of the source VM.

    3. Run the following command to modify the boot image:

      sudo dracut -f -v -N
    4. Run the following command to verify that Hyper-V drivers are present in the boot image:

      lsinitrd | grep hv
    5. Verify that no dracut conf files (for example, /usr/lib/dracut/dracut.conf.d/01-dist.conf) contain the following line:

    6. Run a new replication.

      For more information, see Prepare a CentOS-based virtual machine for Azure.

  • To replicate VMs to Azure, you must specify a Windows access node (VSA proxy) for the Azure recovery target.

  • If an Azure Stack Hub VM that is used as the source for replication has managed disks, the replication operation converts the disks to unmanaged disks.

    You must identify a storage account for replication and failback operations.

  • For Windows VMs, to enable disks to be brought online as part of the conversion, enable SAN policy for the source VM. You can use this workaround for disks that are not shared.

    1. Open a command line or PowerShell session locally on the VM.

    2. Open the disk partition tool:

      C:> diskpart
    3. Verify that the SAN policy is set to Offline Shared:


      SAN Policy : Offline Shared
    4. Change the policy to OnlineAll:


  • You must have either an Azure Standard or Premium general-purpose storage account.

  • Define one or more resource groups for the application that is associated with the Azure Stack Hub virtualization client.

  • Replication is not supported for virtual machines that use Extensible Firmware Interface (EFI) boot methods. A VM that has EFI boot enabled can be replicated as an Azure Stack Hub VM, but the resulting VM is not bootable. For successful conversion results, the source VM must boot using BIOS, because Azure Stack Hub does not support Unified Extensible Firmware Interface (UEFI) or EFI boot methods. The OS volume must use MBR partitioning rather than GPT.

  • The VM name can contain only alphanumeric characters and the '-' character. The name cannot contain any Unicode Transformation Format (UTF) characters.