In this post, I will show you how to enable disaster recovery replication of Azure virtual machines (VMs) from one region to another region. This will enable your services to survive a massive outage in an Azure data center or region.
Note that this service is in preview at the time of writing this article, so the UI is very likely to change by the time of general availability.
In my demo lab, I have deployed two ARM VMs in a resource group called petri-rg in the Azure North Europe region.
Note that at this time there is no support for:
I want to enable replication of these VMs to another region. I have to choose from a region that is in the same geographic cluster as my VMs in North Europe:
I am going to replicate my VMs to West Europe. Here, I will create a recovery services vault in a resource group that is also in West Europe.
All we have now in the “disaster recovery site” (a resource group in the West Europe region) is a recovery services vault.
Open the recovery services vault and click + Replicate. In Source:
In Virtual Machines, select the VMs that you want to replicate with a common replication policy. If you need multiple policies, then you can return to this wizard again.
Note that the VMs must have a provisioned Azure VM Agent. This extension might not be active yet if you have recently deployed the VMs. The agent will be required to provision the Azure Site Recovery Mobility Service as an extension in the guest OS of the VMs.
Things such as storage accounts, availability sets, and virtual networks must be deployed in the disaster recovery region to allow VMs to failover to that region. By default, the original names are re-used with a -asr suffix to create a failover resource group and the required resources. You can customize the destination resource group in the Configure Settings screen:
You can use the default replication policy or customize it:
At the end of the wizard, click Create Target Resources. Azure will validate the configuration. If all goes well, the resources will be deployed to the disaster recovery site. Wait for the Enable Replication button and click it. The Azure Site Recovery Mobility Service extension will be deployed into the VMs and an initial sync will start. After the initial sync, you have a VM that can be failed over and regular continuous or asynchronous replication will begin.