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

准备 Azure 以实现本地到 Azure 的灾难恢复Prepare Azure for on-premises disaster recovery to Azure

本文介绍如何准备 Azure 资源和组件,以便可以使用 Azure Site Recovery 服务设置本地 VMware VM、Hyper-V VM 或 Windows/Linux 物理服务器到 Azure 的灾难恢复。This article describes how to prepare Azure resources and components so that you can set up disaster recovery of on-premises VMware VMs, Hyper-V VMs, or Windows/Linux physical servers to Azure, using the Azure Site Recovery service.

本文是此系列的第一个教程,演示如何为本地 VM 设置灾难恢复。This article is the first tutorial in a series that shows you how to set up disaster recovery for on-premises VMs.

本教程介绍如何执行下列操作:In this tutorial, you learn how to:

  • 验证 Azure 帐户是否拥有复制权限。Verify that the Azure account has replication permissions.
  • 创建恢复服务保管库。Create a Recovery Services vault. 保管库保存 VM 和其他复制组件的元数据和配置信息。A vault holds metadata and configuration information for VMs, and other replication components.
  • 设置 Azure 虚拟网络 (VNet)。Set up an Azure virtual network (VNet). 在故障转移后创建的 Azure VM 将加入此网络。When Azure VMs are created after failover, they're joined to this network.

备注

教程中介绍了某个方案的最简单部署路径。Tutorials show you the simplest deployment path for a scenario. 它们尽可能使用默认选项,并且不显示所有可能的设置和路径。They use default options where possible, and don't show all possible settings and paths. 有关详细说明,请查看 Site Recovery 目录的“操作指南”部分所列的文章。For detailed instructions, review the article in the How To section of the Site Recovery Table of Contents.

开始之前Before you start

如果没有 Azure 订阅,请在开始之前创建一个免费帐户If you don't have an Azure subscription, create a free account before you begin. 然后登录到 Azure 门户Then sign in to the Azure portal.

验证帐户权限Verify account permissions

如果你刚刚创建了免费 Azure 帐户,那么你就是订阅的管理员,并拥有所需的权限。If you just created your free Azure account, you're the administrator of your subscription and you have the permissions you need. 如果你不是订阅管理员,请要求管理员分配你所需的权限。If you're not the subscription administrator, work with the administrator to assign the permissions you need. 若要为新虚拟机启用复制,必须有权执行以下操作:To enable replication for a new virtual machine, you must have permission to:

  • 在所选资源组中创建 VM。Create a VM in the selected resource group.
  • 在所选虚拟网络中创建 VM。Create a VM in the selected virtual network.
  • 写入 Azure 存储帐户。Write to an Azure storage account.
  • 写入 Azure 托管磁盘。Write to an Azure managed disk.

若要完成这些任务,应为帐户分配“虚拟机参与者”内置角色。To complete these tasks your account should be assigned the Virtual Machine Contributor built-in role. 此外,若要在保管库中管理 Site Recovery 操作,应为帐户分配“Site Recovery 参与者”内置角色。In addition, to manage Site Recovery operations in a vault, your account should be assigned the Site Recovery Contributor built-in role.

创建恢复服务保管库Create a Recovery Services vault

  1. 在 Azure 门户菜单中选择“创建资源”,然后在市场中搜索“恢复” 。From the Azure portal menu, select Create a resource, and search the Marketplace for Recovery.

  2. 从搜索结果中选择“备份和站点恢复” ,然后在“备份和站点恢复”页中单击“创建” 。Select Backup and Site Recovery from the search results, and in the Backup and Site Recovery page, click Create.

  3. 在“创建恢复服务保管库” 页中,选择“订阅”。 In the Create Recovery Services vault page, select the Subscription. 我们将使用“Contoso 订阅”。 We're using Contoso Subscription.

  4. 资源组中,选择现有资源组或创建新资源组。In Resource group, select an existing resource group or create a new one. 在本教程中,我们使用 contosoRGFor this tutorial we're using contosoRG.

  5. 在“保管库名称”中输入一个易记名称,用于标识此保管库。 In Vault name, enter a friendly name to identify the vault. 对于这组教程,我们使用 ContosoVMVaultFor this set of tutorials we're using ContosoVMVault.

  6. 在“区域” 中,选择保管库应位于的区域。In Region, select the region in which the vault should be located. 我们将使用“西欧” 。We're using West Europe.

  7. 选择“查看 + 创建” 。Select Review + create.

    创建新的保管库

    新保管库此时会列在“仪表板” > “所有资源”中,以及“恢复服务保管库”主页上。 The new vault will now be listed in Dashboard > All resources, and on the main Recovery Services vaults page.

设置 Azure 网络Set up an Azure network

本地计算机将复制到 Azure 托管磁盘。On-premises machines are replicated to Azure managed disks. 故障转移时,Azure VM 将从这些托管磁盘创建,并加入到在此过程中指定的 Azure 网络。When failover occurs, Azure VMs are created from these managed disks, and joined to the Azure network you specify in this procedure.

  1. Azure 门户中,选择“创建资源” > “网络” > “虚拟网络”。In the Azure portal, select Create a resource > Networking > Virtual network.

  2. 选择“资源管理器”作为部署模型 。Keep Resource Manager selected as the deployment model.

  3. 在“名称”中 ,输入网络名称。In Name, enter a network name. 名称在 Azure 资源组中必须唯一。The name must be unique within the Azure resource group. 在本教程中我们将使用 ContosoASRnetWe're using ContosoASRnet in this tutorial.

  4. 在“地址空间”中,输入用 CDR 标记表示的虚拟网络地址范围。 In Address space, enter the virtual network's address range in CDR notation. 我们将使用 10.1.0.0/24We're using 10.1.0.0/24.

  5. 在“订阅”中,选择要在其中创建网络的订阅。 In Subscription, select the subscription in which to create the network.

  6. 指定将在其中创建网络的“资源组”。 Specify the Resource group in which the network will be created. 我们将使用现有资源组 contosoRG 。We're using the existing resource group contosoRG.

  7. 在“位置”中,选择创建了恢复服务保管库的同一个区域 。In Location, select the same region as that in which the Recovery Services vault was created. 本教程使用“西欧” 。In our tutorial it's West Europe. 该网络必须位于与保管库相同的区域中。The network must be in the same region as the vault.

  8. 在“地址范围” 中,输入网络的范围。In Address range, enter the range for the network. 我们将使用 10.1.0.0/24,而不使用子网 。We're using 10.1.0.0/24, and not using a subnet.

  9. 我们将保留基本 DDoS 防护的默认选项,网络上没有服务终结点或防火墙。We're leaving the default options of basic DDoS protection, with no service endpoint, or firewall on the network.

  10. 选择“创建” 。Select Create.

    创建虚拟网络

创建虚拟网络需要几秒钟的时间。The virtual network takes a few seconds to create. 创建后,可在 Azure 门户仪表板中看到它。After it's created, you'll see it in the Azure portal dashboard.

后续步骤Next steps