大网数据广告活动
Windows Server 管理

How to configure Azure Site Recovery for Arc-enabled Windows servers

· 52CE 我爱测

Learn how to deploy Azure Site Recovery to manage and orchestrate replication, failover, and failback for both on-premises Arc-enabled Windows servers and Azure VMs.

The Azure Site Recovery configuration tool is designed to manage and coordinate the replication, failover, and failback processes for on-premises and Azure virtual machines (VM) running on Arc-enabled Windows Server operating system (OS). During this public preview, the tool is only compatible with Hyper-V enabled machines, ensuring that your on-premises workloads remain operational during outages by replicating them to Azure as a secondary location.

With this feature, you don't need to manually install the Azure Site Recovery agent or link it to the Recovery Service Vault, Hyper-V site, or replication policy as this tool takes care of these tasks.

By default, an Azure storage account isn't included in this experience. To proceed, you must either create a new Azure storage account or use an existing one from your Azure subscription. Both options result in additional costs.

Note:

  • The Azure Site Recovery configuration tool handles security by running all checks locally on your server. The results are only uploaded to your designated Azure storage account, ensuring that everything happens within the context of your account.

  • The Azure Site Recovery configuration tool has to be installed on every server you desire to run it on.

Prerequisites

  • Your device must be running an Arc-enabled on-premises Windows Server 2016 or later operating system with a minimum of 4 GB of memory.

  • Azure Arc must be installed and configured on your device.

  • You must use Windows Server Pay-as-you-go or Software Assurance license types.

  • The Windows Server Hyper-V role must be installed. To learn more, see Install or Uninstall Roles, Role Services, or Features.

    Alternatively, users can run the following command in an elevated PowerShell window:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
    

Configure Azure Site Recovery

To configure Azure Site Recovery, the Azure Site Recovery agent needs to be installed on your device. To prepare the infrastructure, creating or using a vault, a Hyper-V site, and a replication policy is required. Once these items are in place, the Azure Site Recovery agent is installed and associates the replication policy with the cluster node. To set disaster recovery in your environment, perform the following steps:

  1. Navigate to the Azure portal, then select your Windows server Arc-enabled device.

    [!NOTE] During the public preview phase, be aware that this functionality can only be accessed in the public cloud.

  2. Navigate to a Windows Server 2016 or later Arc-enabled Windows Server resource. This VM should be the Hyper-V host.

  3. In the left pane, navigate to Windows management, then select Azure Site Recovery configuration (preview).

    A screenshot of the Azure portal with the Azure Site Recovery configuration tool selected under the Windows management node.

  4. Select Protect VM workloads to access the Replicate VMs to Azure page.

  5. Under Step 1: Prepare infrastructure, select Prepare infrastructure.

    A screenshot of the Azure Site Recovery configuration tool where the option "prepare infrastructure" was selected on the replicate virtual machines to azure screen.

  6. On the Prepare infrastructure page, the following needs to created unless they already exist:

    • A vault for the infrastructure.
    • A Hyper-V site.
    • A replication policy.

    If they already exist, select Prepare infrastructure. If they don't exist, create each one and select Review + create. Once all three are generated, select Prepare infrastructure.

    A screenshot of the Azure Site Recovery configuration tool preparing the infrastructure and installing the Azure Site Recovery extension.

  7. Once infrastructure preparations are complete, and the Azure Site Recovery extension is successfully installed on the node, the Status: Infrastructure prepared successfully pop-up notification is displayed.

  8. Lastly, select Enable replication.

Note: Preparing and installing the infrastructure agent can take up to 7 minutes. You can refresh the status by selecting the Refresh button on this page. Refreshing will navigate you back to the Replicate VMs to Azure page.

Known issues

As the Azure Site Recovery configuration tool is in preview, users might experience technical issues during the deployment process. To mitigate certain issue's, perform the following actions:

  • Issue: You encounter the error:

    A screenshot of a transient error displayed when installing the Azure Site Recovery agent extension in the Azure portal.

  • Solution: No action needed as this error is transient. Navigate to Windows management > Azure Site Recovery configuration (preview) > Protect VM workloads and check the status of your infrastructure under Step 1: Prepare infrastructure.

  • Issue: You encounter the following PowerShell error:

    Extension failed to install. Extension returned non-zero exit code for Install: 1. Extension error output: std error: C:\Packages\Plugins\Microsoft.SiteRecovery.Dra.Windows\1.0.0.6\script\InstallAsr.ps1 : Hyper-V is not installed.
      + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallAsr.ps1
    
    Extension Error: C:\Packages\Plugins\Microsoft.SiteRecovery.Dra.Windows\1.0.0.6\script\InstallAsr.ps1 : Hyper-V is not installed.
      + CategoryInfo          : NotSpecified: (:) [Write-Error], WriteErrorException
      + FullyQualifiedErrorId : Microsoft.PowerShell.Commands.WriteErrorException,InstallAsr.ps1
    
  • Solution: This error indicates that Hyper-V might not be installed on your VM. Run the following PowerShell command with admin rights:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Hyper-V -All
    

Submit tooling feedback

To report app feedback for disaster recovery or if other issues are encountered, let us know via the Feedback Hub by performing the following actions:

  1. Run the following PowerShell command as admin on your device to collect error logs in .zip format:

    azcmagent logs -o "C:\AzureArc\azcmagent-logs.zip"
    
  2. Open the Feedback Hub on your device.

  3. Under Summarize your feedback, type Azure Arc disaster recovery (preview).

  4. Under Explain in more detail (optional), provide us:

    1. The Windows Server OS and edition you're managing.

    2. Detailed instructions on how to reproduce the error encountered.

  5. Under Choose a category, select Problem, select Windows Server from the drop-down list, select Management from the secondary drop-down list, then select OK.

  6. Under Find similar feedback, see if other users submitted a similar issue. Then select Next.

  7. Under Add more details and Which of the following best describes your problem?, select the most appropriate option per your case.

  8. Under Attachments (optional), provide us:

    1. A screenshot of the issue.

    2. Attach the azcmagent-logs.zip file.

  9. Lastly, select Submit to submit your feedback for review.

See also

Source: Microsoft Learn / Windows Server documentation by Microsoft and contributors (upstream author metadata: robinharwood). Documentation licensed CC BY 4.0. Code samples are covered by the MIT License. Converted from Markdown, with links normalized and embedded media omitted.

资料来源与适用范围

资料来源
Microsoft Learn / Windows Server documentation
适用范围
Windows Server · Source date 10/31/2024
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY 4.0 (documentation), MIT (code samples)

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。