Last Update: Sep 04, 2024 | Published: Jun 20, 2016
In this “how do I ..?” article I will explain how you can use Azure Site Recovery (ASR) to migrate machines, VMware, physical, or Hyper-V, running Windows or Linux, to Azure with minimized downtime.
Back in 2014, I wrote an article that showed you 5 ways that you could use to move virtual machines from your computer room or data center to Azure. Back then, Microsoft had a different vision for Azure features such as Azure Site Recovery (focused just on large enterprises) and how they would support a migration to Azure. Things have moved on, so I thought I’d write an updated post on how to get your machines into Azure.
Microsoft’s DR site-in-the-cloud replication feature is the solution for getting machines into Azure. ASR can replicate the following types of Windows or Linux machine into Azure:
Microsoft added support for VMware and physical machines thanks to the acquisition of InMage Scout. This was originally going to be used to power a solution called the Migration Accelerator, but Microsoft realized that they were wasting effort – a planned failover in ASR would do exactly the same thing that ASR would do.
A planned failover is when you decide to proactively move a machine from one location to another. In the case of ASR, a planned failover will:
You might think of this as a “stretch quick migration” – there is a small amount of downtime, but it’s not much and it’s very manageable if planned for a maintenance window.
Using ASR is a supported, and recommended, scenario for migrating machines to Azure. ASR will allow you to seed the migration by performing a full synchronization followed by continuous asynchronous replication (every 30 seconds, or every 5 or 15 minutes) until you are ready to migrate a machine or service comprised of lots of machines.
ASR includes a failover automation feature called recovery plans. You can create a recovery plan to fail over machines in a desired order. Note that a recovery plan can use PowerShell scripts, in the form of Azure Automation, to perform additional steps and request manual intervention where automation is not possible. It is strongly recommended that you create a recovery plan for a machine migration:
Note that a recovery plan scales differently for organizations:
Hybrid networks can connect on-premises and in-Azure networks to allow services to span both locations.
The process that Microsoft recommends is depicted in the below diagram:
If you are relatively quick, then a migration using ASR will not cost you a penny, according to the ASR pricing page:
… it does not matter how long you have been using Azure Site Recovery. Every protected instance incurs no ASR charges for the first 31 days.
That means that, no matter how long you have used the ASR service, the first 31 days of replication for any machine is free. If you migrate a machine and remove replication within 31 days then an ASR-powered migration will not cost you a cent.