As you might know, Azure Site Recovery is a great Disaster Recovery solution for on-premises environments. You can use it on pretty much any server you have, ranging from VMware, physical servers and of course Hyper-V. A feature I have wished for since I started doing Azure, is the ability to failover between Azure regions. I’ve also talked to many customers, who asked what mechanisms was available to protect their environments in Azure. Just like on-premises, it is important to have a disaster recovery solution for cloud environments.
I’m happy to say that this feature is now in public preview in Azure Site Recovery. I have been lucky enough to test it for the past few months, and it’s an awesome feature. It’s easy to set up, as there is no need for additional infrastructure in your environment. An agent is installed on the VM, which will replicate data between the regions – that’s all there is to do to start protection. In fact it is very much like the VMware to Azure scenario, but without the configuration server. Below is a guide to get started using ASR – Azure-to-Azure scenario.
You can find the official announcement here: https://azure.microsoft.com/da-dk/blog/announcing-disaster-recovery-for-azure-iaas-vms-using-asr/
First of all, create a new Recovery Services vault. Make sure you don’t create it in the source location. In this case my VMs are located in North Europe, and I will do a failover to West Europe:
Next, select Replicate in the top, select the source region (North Europe), and then the Resource Group your VM is in. Note that you can also protect Classic VMs!
On the next screen, select the VMs you want to protect. In this case, this is just a single VM:
On the Settings page, there is a few settings:
- Select the region you want to failover to. From North Europe I can choose West Europe, UK South and UK West.
- If needed, you can edit the target Resource Group
- Make sure you select the correct vnet! It’s rare that you want a randomly created vnet as the destination.
- ASR uses a storage account as cache for the data it replicates, you can of course create your own
- In case you want to use Availabilty Sets, make sure you select it here. You can’t change this setting!
When you are done, click OK, and then Create Target Resources. This will create any new resources you have chosen.
Now you have to wait a little, while the resources are created. Don’t be fooled, replication is not enabled yet:
When it’s done creating resources, click Enable Replication:
This will start the replication process:
You can follow along in the job view, and see how far it got:
And if you log on to your VM, you can see an agent is being installed. This agent is the InMage agent, which is also used by the VMware scenario.
And under Replicated Items, you can now see the VM replication status:
Just like the other Azure Site Recovery scenarios you can – and should – configure different settings, like subnet and VM size.
That’s all for now. I’ll show failover between regions in anohter post.
Make sure you check out the supported scenarios here: https://docs.microsoft.com/da-dk/azure/site-recovery/site-recovery-support-matrix-azure-to-azure