Lesson 2 of 2 Azure Site Recovery

Failing Over and Failing Back with Site Recovery

This lesson explains test failover, failover and recovery point choices, and the steps that follow a failover.

Learning outcomes

After completing this lesson, you will be able to:

  • Explain the purpose of a test failover.
  • Choose a recovery point for an RPO or RTO requirement.
  • Describe the order of commit, reprotect and failback.

Test failover

A test failover creates VMs in the target region from a chosen recovery point, without stopping replication or affecting production. It should use an isolated VNet that is not connected to production networks, so that duplicate machine names and IPs do not conflict. After validating the application, Cleanup test failover deletes the test VMs and records notes. Microsoft recommends regular test failovers, for example each quarter, to meet compliance and prove the recovery plan.

True or false

Test failovers

Exam skills 5.2.6

Check how a test failover works.

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

Failover and recovery points

A failover brings VMs or a recovery plan up in the target region. During a planned event, choose Shut down machines before beginning failover so that the latest changes replicate and no data is lost; during an outage, the source may be unavailable. The recovery point choice trades RPO against RTO.

Recovery pointMeaningTrade-off
Latest (lowest RPO)Processes all data received by Site Recovery firstLeast data loss, longer failover
Latest processed (lowest RTO)Uses the latest point already processedFastest failover
Latest app-consistentUses the latest application-consistent pointApplication consistency, more data loss
Latest multi-VM processed / consistentShared point across a replication groupConsistency across related VMs
CustomA specific earlier pointRecover from corruption that replicated
Scenario questions

Choosing a recovery point

Exam skills 5.2.6

Choose the recovery point that fits each failover.

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

Commit, reprotect and failback

After failover, the VMs run in the target region but the operation is not final. The remaining steps are summarized below.

  1. Validate

    Check the application; until committed, you can change to a different recovery point.

  2. Commit

    Commit the failover; the other recovery points are discarded.

  3. Reprotect

    Start replication from the target region back to the original primary region, so the failed-over VMs are protected.

  4. Failback

    When the primary region is healthy, fail over again in the reverse direction (planned failover), then commit.

  5. Reprotect again

    Reprotect to resume replication from the primary to the secondary region.

Failover changes IP addresses unless the target subnet uses the same range, so DNS updates (manually, by recovery plan script, or with Traffic Manager) are part of the plan. Recovery plans can be run from the portal, PowerShell or REST.

The following diagram shows, in order, the actions of a full Site Recovery failover and failback.

The full failover and failback sequence. After failing over to North Europe, commit, then reprotect to replicate back to West Europe and wait for healthy replication. A planned failover returns to West Europe, shutting down the North Europe VMs first to avoid data loss; commit again and reprotect so protection continues throughout.
The scenario is illustrative.
Put in order

Failover and failback

Exam skills 5.2.6

Arrange the actions from failover to the primary region running protected again.

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

Ordering the steps

West Europe suffers an outage. An administrator fails a recovery plan over to North Europe using the Latest processed recovery point. Two days later, West Europe is healthy again, and the company wants the application back there with protection in place throughout. Place the required actions in order.

Commit the failover in North Europe, reprotect to replicate from North Europe to West Europe, wait until replication is healthy, perform a planned failover back to West Europe (shutting down the North Europe VMs first to avoid data loss), commit, and reprotect again so that West Europe replicates to North Europe. A test failover is not part of failback.

Check yourself

Which recovery point gives the fastest failover?

Show answer

Latest processed (lowest RTO).

Exam Tips

Remember for the exam

  • Test failover into an isolated VNet; clean it up afterwards.
  • Lowest data loss: Latest; fastest recovery: Latest processed.
  • After failover: commit, then reprotect.
  • Failback is a planned failover in the reverse direction, followed by commit and reprotect.