Prepare Azure resources for Hyper-V disaster recovery

Azure Site Recovery helps business continuity and disaster recovery (BCDR) by keeping business apps running during planned and unplanned outages. Site Recovery manages and orchestrates disaster recovery of on-premises machines and Azure virtual machines (VMs), including replication, failover, and recovery.

This tutorial is the first in a series that describes how to set up disaster recovery for on-premises Hyper-V VMs.

Note

We design tutorials to show the simplest deployment path for a scenario. These tutorials use default options when possible, and don't show all possible settings and paths. For more information, see the How To section for each corresponding scenario.

This tutorial shows you how to prepare Azure components when you want to replicate on-premises VMs (Hyper-V) to Azure. You'll learn how to:

  • Create an Azure storage account, which stores images of replicated machines.
  • Create a Recovery Services vault, which stores metadata and configuration information for VMs and other replication components.
  • Set up an Azure network. When Azure VMs are created after failover, they're joined to this network.

Sign in to Azure

If you don't have an Azure subscription, create a Trial before you begin. Sign in to the Azure portal.

Prerequisites

Verify account permissions

If you just created a Azure account, you're the administrator for that subscription. If you're not the administrator, work with the administrator to assign the permissions you need. To enable replication for a new virtual machine, you must have permission to:

  • Create a VM in the selected resource group.
  • Create a VM in the selected virtual network.
  • Write to the selected storage account.

To complete these tasks, your account should be assigned the Virtual Machine Contributor built-in role. To manage Site Recovery operations in a vault, your account should be assigned the Site Recovery Contributor built-in role.

Create a storage account

Images of replicated machines are held in Azure storage. Azure VMs are created from the storage when you fail over from on-premises to Azure. The storage account must be in the same region as the Recovery Services vault.

  1. In the Azure portal portal, select Create a resource.

  2. Under categories, select Storage > Storage account > Create storage account.

  3. In the Create storage account page, under the Basics > Project details section, do the following:

    1. Under Subscription, choose the subscription in which you want to create the new storage account.
    2. Under Resource group, enter a new resource group. An Azure resource group is a logical container in which Azure resources are deployed and managed. For example, ContosoRG.

      Note

      You can also create a new resource group by selecting Create new.

  4. In the Create storage account page, under Basics > Instance details section, do the following:

    1. Under Storage account name, enter a name for the account. The name you choose must be unique within Azure. It must be 3 to 24 characters long, and only use lowercase letters and numbers. For example, contosovmsacct1910171607.
    2. In Region, select the geographic location for your storage account. For example, China North.
    3. In Performance, select Standard.
    4. In Redundancy, retain the default Geo-redundant storage (GRS) for storage redundancy.
  5. Select Review and review your settings.

  6. Select Create.

    Screenshot of the Create a storage account options.

Note

If you want to create a legacy storage account type, select the provided link under Basics > Instance details section. This redirects you to Create storage account page to a create legacy storage account. Screenshot of the Create a legacy storage account options.

Create a recovery services vault

  1. In the Azure portal, select Create a resource.

  2. Search the Azure Marketplace for Recovery Services.

  3. Select Backup and Site Recovery from the search results. Next, select Create.

  4. In the Create Recovery Services vault page, under the Basics > Project details section, do the following:

    1. Under Subscription, select the subscription in which you want to create the new recovery services vault.
    2. In Resource group, select an existing resource group or create a new one. For example, contosoRG.
  5. In the Create Recovery Services vault page, under Basics > Instance details section, do the following:

    1. In Vault name, enter a friendly name to identify the vault. For example, ContosoVMVault.
    2. In Region, select the region where the vault should be located. For example, China North.
    3. Select Review + create > Create to create the recovery vault.

Note

To quickly access the vault from the dashboard, select Pin to dashboard.

The new vault appears on Dashboard > All resources, and on the main Recovery Services vaults page.

Screenshot of the Create Recovery Services vault page.

Set up an Azure network

When Azure VMs are created from storage after failover, they're joined to this network.

  1. In the Azure portal, select Create a resource.

  2. Under categories, select Networking > Virtual network.

  3. In Create virtual network page, under the Basics tab, do the following:

    1. In Subscription, select the subscription in which to create the network.
    2. In Resource group, select the resource group in which to create the network. For this tutorial, use the existing resource group contosoRG.
    3. In Virtual network name, enter a network name. The name must be unique within the Azure resource group. For example, ContosoASRnet.
    4. In Region, choose China North. The network must be in the same region as the Recovery Services vault.

    Screenshot of the Create virtual network options.

  4. In Create virtual network > IP addresses tab, do the following:

    1. As there's no subnet for this network, you will first delete the pre-existing address range. To do so, select the ellipsis (...), under available IP address range, then select Delete address space.

      Screenshot of the delete address space.

    2. After deleting the pre-existing address range, select Add an IP address space.

      Screenshot of the adding IP.

    3. In Starting address enter 10.0.0.

    4. Under Address space size, select /24 (256 addresses).

    5. Select Add.

      Screenshot of the add virtual network options.

  5. Select Review + create > Create to create a new virtual network.

The virtual network takes a few seconds to create. After it's created, you'll see it in the Azure portal dashboard.

Next steps

Learn about: