为 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 replicate an Azure VM to a different Azure region.

如果没有 Azure 订阅,可在开始前创建一个试用帐户If you don't have an Azure subscription, create a trial account before you begin.

Note

本文旨在引导新用户使用默认选项和最小的自定义来获取 Azure Site Recovery 体验。This article is intended to guide a new user through the Azure Site Recovery experience with the default options and minimum customization. 若要详细了解可以自定义的各种设置,请参阅为 Azure VM 启用复制的教程If you want to know more about the various settings that can be customized, refer to the tutorial for enabling replication for Azure VMs

登录 AzureLog in to Azure

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

为 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. 在 VM 菜单中,单击“灾难恢复”。In the VM menu, 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. 请注意,作为复制的一部分安装的 Site Recovery 扩展未删除,需要手动删除。Please note that the Site Recovery extension that is installed as part of the replication isn't removed and needs to be removed manually.
  • 对 VM 的 Site Recovery 计费也会停止。Site Recovery billing for the VM also 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。You can now explore more options and try replicating a set of Azure VMs using a recovery plan.