Migrate Azure IaaS virtual machines between Azure regions with Azure Site Recovery
Welcome to Azure Site Recovery! Use this article if you want to migrate Azure VMs between Azure regions. Before you start, note that:
- Azure has two different deployment models for creating and working with resources: Azure Resource Manager and classic. Azure also has two portals – the Azure classic portal that supports the classic deployment model, and the Azure portal with support for both deployment models. The basic steps for migration are the same whether you're configuring Site Recovery in Resource Manager or in classic. However the UI instructions and screenshots in this article are relevant for the Azure portal.
- Currently you can only migrate from one region to another. You can fail over VMs from one Azure region to another, but you can't fail them back again.
- The migration instructions in this article are based on the instructions for replicating a physical machine to Azure. It includes links to the steps in Replicate VMware VMs or physical servers to Azure, which describes how to replicate a physical server in the Azure portal.
- If you're setting up Site Recovery in the classic portal, follow the detailed instructions in this article.
Post any comments or questions at the bottom of this article, or on the Azure Recovery Services Forum.
Here's what you need for this deployment:
- Configuration server: An on-premises VM running Windows Server 2012 R2 that acts as the configuration server. You install the other Site Recovery components (including the process server and master target server) on this VM too. Read more in scenario architecture and configuration server prerequisites.
- IaaS virtual machines: The VMs you want to migrate. You migrate these VMs by treating them as physical machines.
This section describes the deployment steps in the new Azure portal.
- Create a vault.
- Deploy a configuration server.
- After you've deployed the configuration server, check that it can communicate with the VMs that you want to migrate.
- Set up replication settings. Create a replication policy and assign to the configuration server.
- Install the Mobility service. Each VM you want to protect needs the Mobility service installed. This service sends data to the process server. The Mobility service can be installed manually or pushed and installed automatically by the process server when protection for the VM is enabled. Firewall rules on the VMs that you want to migrate should be configured to allow push installation of this service.
- Enable replication. Enable replication for the VMs you want to migrate. You can discover the IaaS virtual machines that you want to migrate to Azure using the private IP address of the virtual machines. Find this address on the virtual machine dashboard in Azure. When you enable replication, you set the machine type for the VMs as physical machines.
- Run an unplanned failover. After initial replication is complete, you can run an unplanned failover from one Azure region to another. Optionally, you can create a recovery plan and run an unplanned failover, to migrate multiple virtual machines between regions. Learn more about recovery plans.
Learn more about other replication scenarios in What is Azure Site Recovery?