您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

为 Azure VM 设置到 Azure 次要区域的灾难恢复Set up disaster recovery to a secondary Azure region for an Azure VM

Azure Site Recovery 服务通过在计划内和计划外中断期间使商业应用程序保持启动和运行状态,有助于实施业务连续性和灾难恢复 (BCDR) 策略。The Azure Site Recovery service contributes to your business continuity and disaster recovery (BCDR) strategy by keeping your business apps up and running, during planned and unplanned outages. Site Recovery 管理并安排本地计算机和 Azure 虚拟机 (VM) 的灾难恢复,包括复制、故障转移和恢复。Site Recovery manages and orchestrates disaster recovery of on-premises machines and Azure virtual machines (VMs), including replication, failover, and recovery.

本快速入门介绍了如何通过将 Azure VM 复制到不同的 Azure 区域来为其设置灾难恢复。This quickstart describes how to set up disaster recovery for an Azure VM by replicating it to a different Azure region.

如果没有 Azure 订阅,请在开始之前创建一个免费帐户If you don't have an Azure subscription, create a free account before you begin.

备注

本文是针对新用户的快速演练。This article is as a quick walkthrough for new users. 它使用带有默认选项和最小自定义的最简单路径。It uses the simplest path, with default options and minimum customization. 有关更完整的演练,请查看我们的教程For a fuller walkthrough review our tutorial.

登录 AzureLog in to Azure

通过 https://portal.azure.com 登录到 Azure 门户。Log in to the Azure portal at https://portal.azure.com.

为 Azure VM 启用复制Enable replication for the Azure VM

  1. 在 Azure 门户中,单击“虚拟机” ,并选择要复制的 VM。In the Azure portal, click Virtual machines, and select the VM you want to replicate.

  2. 在“操作” 中,单击“灾难恢复” 。In Operations, click Disaster recovery.

  3. 在“配置灾难恢复” > “目标区域” 中,选择要复制到的目标区域。In Configure disaster recovery > Target region select the target region to which you'll replicate.

  4. 在本快速入门中,接受其他默认设置。For this Quickstart, accept the other default settings.

  5. 单击“启用复制”。 Click Enable replication. 这将启动用于为 VM 启用复制的作业。This starts a job to enable replication for the VM.

    启用复制

验证设置Verify settings

复制作业完成后,可以检查复制状态、修改复制设置和测试部署。After the replication job has finished, you can check the replication status, modify replication settings, and test the deployment.

  1. 在“操作” 中,单击“灾难恢复” 。In Operations, click Disaster recovery.

  2. 可以验证复制运行状况、已创建的恢复点以及映射中的源和目标区域。You can verify replication health, the recovery points that have been created, and source, target regions on the map.

    复制状态

清理资源Clean up resources

对主要区域中的 VM 禁用复制时,该 VM 会停止复制:The VM in the primary region stops replicating when you disable replication for it:

  • 将自动清除源复制设置。The source replication settings are cleaned up automatically. 在复制过程中安装在 VM 上的 Site Recovery 扩展不会被删除,必须手动删除。The Site Recovery extension installed on the VM as part of the replication isn't removed, and must be removed manually.
  • 对 VM 的 Site Recovery 计费会停止。Site Recovery billing for the VM stops.

按如下所述停止复制Stop replication as follows

  1. 选择 VM。Select the VM.

  2. 在“灾难恢复” 中,单击“禁用复制” 。In Disaster recovery, click Disable Replication.

    禁用复制

后续步骤Next steps

在本快速入门中,将单个 VM 复制到了次要区域。In this quickstart, you replicated a single VM to a secondary region. 现在,请尝试使用恢复计划复制多个 Azure VM。Now, try replicating a multiple Azure VMs using a recovery plan.