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.
In the Azure portal portal, select Create a resource.
Under categories, select Storage > Storage account > Create storage account.
In the Create storage account page, under the Basics > Project details section, do the following:
- Under Subscription, choose the subscription in which you want to create the new storage account.
- 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.
In the Create storage account page, under Basics > Instance details section, do the following:
- 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.
- In Region, select the geographic location for your storage account. For example, China North.
- In Performance, select Standard.
- In Redundancy, retain the default Geo-redundant storage (GRS) for storage redundancy.
Select Review and review your settings.
Select Create.
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.
Create a recovery services vault
In the Azure portal, select Create a resource.
Search the Azure Marketplace for Recovery Services.
Select Backup and Site Recovery from the search results. Next, select Create.
In the Create Recovery Services vault page, under the Basics > Project details section, do the following:
- Under Subscription, select the subscription in which you want to create the new recovery services vault.
- In Resource group, select an existing resource group or create a new one. For example, contosoRG.
In the Create Recovery Services vault page, under Basics > Instance details section, do the following:
- In Vault name, enter a friendly name to identify the vault. For example, ContosoVMVault.
- In Region, select the region where the vault should be located. For example, China North.
- 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.
Set up an Azure network
When Azure VMs are created from storage after failover, they're joined to this network.
In the Azure portal, select Create a resource.
Under categories, select Networking > Virtual network.
In Create virtual network page, under the Basics tab, do the following:
- In Subscription, select the subscription in which to create the network.
- In Resource group, select the resource group in which to create the network. For this tutorial, use the existing resource group contosoRG.
- In Virtual network name, enter a network name. The name must be unique within the Azure resource group. For example, ContosoASRnet.
- In Region, choose China North. The network must be in the same region as the Recovery Services vault.
In Create virtual network > IP addresses tab, do the following:
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.
After deleting the pre-existing address range, select Add an IP address space.
In Starting address enter 10.0.0.
Under Address space size, select /24 (256 addresses).
Select Add.
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: