0PricingLogin
Azure Fundamentals · Lesson

Recovery Plans and Automated Failover

Create an ASR recovery plan that sequences VM failover across application tiers, add manual approval gates, and include pre- and post-failover scripts.

What Is an ASR Recovery Plan?

A Recovery Plan in Azure Site Recovery is a structured, ordered sequence of steps that orchestrates the failover of multiple VMs together. Rather than failing over each VM individually, a recovery plan groups them into groups that fail over in sequence — ensuring that infrastructure (database, middleware, web) comes up in the correct order, just as it would during initial deployment.

Creating a Recovery Plan

To create a recovery plan, you select the source site (primary region) and target site (secondary region), then add the VMs you want to include. The plan wizard automatically creates a default group, but you can add more groups to control the failover sequence. VMs in the same group fail over simultaneously; groups execute in numbered order.

# Create an ASR Recovery Plan via CLI:
az site-recovery recovery-plan create \
  --resource-group myRG \
  --vault-name myRecoveryVault \
  --name myRecoveryPlan \
  --primary-fabric-id '/subscriptions/.../replicationFabrics/eastus' \
  --recovery-fabric-id '/subscriptions/.../replicationFabrics/westus' \
  --groups '[{"groupType":"Boot","replicationProtectedItems":[...]}]'

All lessons in this course

  1. Defining RTO, RPO, and Recovery Tiers
  2. Recovery Plans and Automated Failover
  3. DR Testing Without Impact
  4. DR for PaaS Services
← Back to Azure Fundamentals