Lesson 2 of 2 Disaster Recovery Solutions

Designing Failover with Azure Site Recovery

This lesson explains Site Recovery scenarios and how recovery plans orchestrate failover.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify Site Recovery scenarios.
  • Explain recovery plans and test failover.
  • Compare Azure Site Recovery with Azure Backup.

What Site Recovery does

Azure Site Recovery is a disaster recovery service that replicates workloads from a primary site to a secondary location, and manages failover and failback. Replication is continuous for Azure virtual machines and VMware machines, while Hyper-V machines can replicate as often as every 30 seconds. During normal operation, no virtual machines run in the target, only replicated disks, so there is a low running cost. The service commits to an RTO of up to one hour. There is no defined SLA for the RPO, which is usually seconds to minutes.

Site Recovery is not a backup service. It retains recovery points for a limited time, and it exists to bring a workload back quickly in another location, rather than to preserve data for months. A design needs Azure Backup alongside it.

True or false

Site Recovery basics

Exam skills 3.1.1

Check what Azure Site Recovery does and does not provide.

Log in to try this activity Interactive activities are free with an account.

Scenarios

Site Recovery supports the following replication paths, which cover both Azure and hybrid workloads.

  • Azure to Azure replicates virtual machines from one region to another.
  • Zone to zone replicates virtual machines to another availability zone in the same region, which helps where data residency prevents a second region. It is not supported for ZRS managed disks or for Ultra Disks.
  • VMware and physical servers to Azure uses a replication appliance on-premises, which discovers machines and manages replication.
  • Hyper-V to Azure replicates Hyper-V virtual machines.

Replicated machines create recovery points. Crash-consistent points capture what is on disk, like a sudden power failure, and are created frequently. App-consistent points use the Volume Shadow Copy Service to include what is in memory, are produced less often, and they suit databases and transactional applications.

Scenario questions

Choosing a replication path

Exam skills 3.1.1

Choose the Site Recovery scenario or recovery point type for each case.

Log in to try this activity Interactive activities are free with an account.

Recovery plans

Few applications consist of a single server, and order matters during recovery: a database must start before the application tier that depends on it. A recovery plan groups machines and defines how they fail over. Machines in one group start together, and groups start in sequence. Plans can include scripts or Azure Automation runbooks, for tasks such as updating DNS, attaching a load balancer, or pausing for a manual step.

A failover follows a defined process, and the same plan can be used for a test, which is the key to a dependable design.

  1. Test failover

    Machines start in an isolated virtual network, without affecting production or ongoing replication.

  2. Clean up the test

    Test resources are removed after the results are recorded.

  3. Failover

    During a real incident, the plan starts machines in the target from a chosen recovery point.

  4. Commit and reprotect

    The failover is committed, and replication is reversed so that the original site becomes the target.

  5. Failback

    When the original site is ready, the workload returns in a planned operation.

The following diagram shows the replication and recovery plan for VMware machines protected in Azure.

Disaster recovery for 12 VMware machines with no second datacenter. Azure Site Recovery replicates them to Azure; a recovery plan starts the database group, then the application servers, then the web servers, and a runbook updates DNS; test failovers into an isolated network prove the two-hour RTO without touching production.
The scenario is illustrative.
Put in order

Exercising a recovery plan

Exam skills 3.1.1

Arrange the stages of using a Site Recovery plan from test to failback.

Log in to try this activity Interactive activities are free with an account.

Fitting Site Recovery into a design

Site Recovery is a compute-level tool, and a platform service generally has its own recovery feature. A virtual machine running SQL Server may use Site Recovery, but SQL Server Always On availability groups give a better RPO and a faster failover for the database, leaving Site Recovery for the application tier. Azure SQL Database uses failover groups, and Azure Storage uses geo-redundancy.

Network planning is frequently overlooked. The target needs a virtual network, with address space that works for the recovered workload, connectivity to users and on-premises, and DNS updates. Capacity reservation in the target region guarantees that the virtual machines can start during a widespread event, when many customers might fail over simultaneously. A failover of an on-premises workload to Azure can use a VPN or ExpressRoute so that users can continue to reach it.

The Azure Resiliency experience, which extends what was previously available in Azure Business Continuity Center, offers one place to view backup and disaster recovery across resources. Vaults remain the underlying resource for both services.

Sort into groups

Site Recovery or native?

Exam skills 3.1.1

Decide whether each component should use Site Recovery or its own recovery feature.

Log in to try this activity Interactive activities are free with an account.

Site Recovery and Azure Backup

The following comparison distinguishes the two services, which a complete design often uses together.

Azure Site Recovery
PurposeKeep a workload running elsewhere
Typical RPOSeconds to minutes
RetentionHours to days
Protects againstRegional or site outage
Choose when A site or region is lost
Azure Backup
PurposePreserve data for restoration
Typical RPOHours to a day
RetentionDays to years
Protects againstDeletion, corruption, ransomware
Choose when Data must be recovered or retained
Worked example

On-premises recovery to Azure

A company runs a three-tier application on 12 VMware virtual machines. It has no second datacenter. In a disaster, the database must start first, then the application servers, then the web servers, and DNS must be updated. The target is an RTO of two hours. Annual testing must not affect production. What should you recommend?

Azure Site Recovery with the VMware scenario replicates machines to Azure, with no second datacenter. A recovery plan defines three groups in the required order, and a runbook updates DNS. Test failovers into an isolated network meet the annual test requirement without affecting production or replication.

Azure Backup alone would require restoring 12 servers individually, with no orchestration, and it would be unlikely to reach the RTO. Azure Migrate is built for permanent migration rather than ongoing protection, and replicating to a second on-premises site is not possible, as none exists.

Check yourself

Does a test failover interrupt replication?

Show answer

No. It runs in an isolated virtual network, and replication continues.

Exam Tips

Remember for the exam

  • Site Recovery commits to an RTO of up to one hour; it does not replace backup.
  • Recovery plans sequence groups of machines, and can run scripts and runbooks.
  • Test failovers use an isolated network and do not disturb replication.
  • Use native replication such as Always On for databases where a better RPO is needed.
  • Zone to zone suits residency limits, but not ZRS or Ultra disks.