Site Recovery
Azure-to-Azure replication · replication policy · test failover · failover · commit · re-protect · recovery plans
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
How Azure-to-Azure replication works
- Site Recovery continuously replicates Azure VMs to a different target region. In an outage you fail over, and you fail back when the primary is healthy again. It runs in a Recovery Services vault.
- Source VMs must use managed disks and be in a supported region and OS. VMs with unmanaged disks aren't supported.
- Enabling replication installs the Site Recovery Mobility service extension, which registers the VM. Writes go to a cache storage account in the source region, then to replica managed disks in the target region.
- Cache storage account: same region and same subscription as the source VMs (use Azure PowerShell to use cache storage from the target subscription). Soft delete isn't supported on it.
- Default target resources: same subscription, a new resource group, virtual network and availability set in the target region with an
asrsuffix, replica disks with an-ASRReplicasuffix, and a network mapping. - You can change the target VM size, resource group and name after replication starts. The availability type (single instance, availability set, zone) can't be changed: disable replication and enable it again.
Replication policy defaults
| Setting | Default | Notes |
|---|---|---|
| Recovery point retention | 1 day (24 hours) | Per the architecture page, updated Sep 17, 2026 |
| App-consistent snapshot frequency | 0 hours (disabled) | Must be lower than the retention. With the 24-hour default, set it below 24 hours |
| Crash-consistent recovery points | Every 5 minutes | Can't be changed |
| Multi-VM consistency (replication group) | Off | Members talk on port 20004. It can hurt performance: use it only for workloads that need it |
Older material may quote a 4-hour app-consistent default. It isn't on any current Microsoft page checked for this guide.
Prepare and enable replication
- Permissions: creating the vault needs admin or owner on the subscription. Managing Site Recovery operations in the vault needs Site Recovery Contributor. Creating VMs in the target needs Virtual Machine Contributor (or equivalent permissions).
- Vault region: any region except the source region. The vault can't be in South Central India or North East US 5 (those can still be a source or target).
- Network: VMs need outbound access only, no inbound. Allow service tags
Storage.<region>,AzureActiveDirectory,EventHub.<region>andAzureSiteRecovery(AzureKeyVaultandGuestAndHybridManagementare optional). Prefer service tags over IP addresses. An authentication proxy isn't supported. - Outbound URLs:
*.blob.core.windows.net,login.microsoftonline.com,*.hypervrecoverymanager.windowsazure.com,*.servicebus.windows.net. Bypass the IMDS address 169.254.169.254 in proxies. Keep root certificates current. - Check subscription quota in the target region for matching VM sizes.
Enable replication, in order
- Create the Recovery Services vault (region not equal to the source) › Enable Site Recovery in the vault › Enable replication › Source (region, subscription, resource group, Resource Manager deployment) › select VMs (up to 10 per wizard run) › review replication settings (target, churn normal or high) › Manage (replication policy, replication group, extension update settings or automation account) › Review › Enable replication. The VMs then appear in Replicated items.
Test failover, failover, commit, re-protect
| Step | What it does |
|---|---|
| Test failover (DR drill) | Creates a VM in the target region from a recovery point, in the virtual network you choose (use a non-production one). The drill doesn't impact the production environment. Cleanup test failover then deletes the test VMs |
| Failover | Creates the VM in the target region. Optionally shut down the source first ("Shut down machine before beginning failover" tries to stop it to reduce data loss; failover continues even if the shutdown fails) |
| Commit | Finishes the failover and deletes all recovery points. You can't change the recovery point afterwards |
| Re-protect | Reverses replication back to the primary region. The status must be Failover committed |
| Failback | Return to the primary region after re-protect. Microsoft's FAQ says failback takes about as long as the original failover |
| Recovery point | Use |
|---|---|
| Latest processed | Lowest RTO |
| Latest | Lowest RPO (processes all data) |
| Latest app-consistent | Most recent app-consistent point |
| Custom | A point you pick, for a single VM only. Not available with a recovery plan |
- DR drill steps: Replicated items › the VM › Test failover › recovery point › choose a non-production virtual network › OK › validate › Cleanup test failover › record notes › Testing is complete.
- Failover steps: verify the VM is healthy and supported › Failover › recovery point › optionally shut down the source › OK › verify the VM in the target › Commit › Re-protect (check that the primary region is available and you have permissions).
- After failover, the Windows client license isn't preserved: validate licensing.
Recovery plans
- A recovery plan gathers machines into recovery groups for failover and failback. Machines in one group fail over in parallel. Groups run in order: Group 2 starts only after Group 1 has failed over and started. Machines go into the default Group 1.
- A plan holds up to 100 protected instances. Microsoft's FAQ and the create-plan page say you can have up to 7 groups for sequencing.
- Add automation with Azure Automation runbooks (for Azure-to-Azure the runbook applies to failover and failback). A script adds pre-step and post-step sets to a group. A manual action only pauses the plan until the operator confirms. Example tasks after failover: create a public IP, assign an NSG to the NIC.
- All VMs in a plan must replicate into one subscription: use one plan per target subscription. Recovery plans aren't supported for shared disks.
- Complete a test failover before a full failover. If you missed something, clean up and rerun the test. Run a test failover for each app every quarter.
Support matrix and limits
| Item | Value |
|---|---|
| Crash-consistent point interval | Every 5 minutes (fixed) |
| Default recovery point retention | 1 day |
| VMs per Enable replication run | 10 |
| Normal churn limit | 54 MB/s per VM |
| High churn maximum | Up to 500 MB/s per VM and 250 MB/s per disk (eligible configurations) |
| Premium SSD v2 and Ultra Disk | Require High Churn; the replica disk is Premium SSD v1 |
| Data disks per VM | Up to 64 (size limits may be lower) |
| OS disk / data disk maximum | 4,095 GiB / 32,767 GiB |
- You can resize source disks up, not down. Write Accelerator disks can't be enabled while a VM is protected.
- Standard HDD OS disks retire on Sep 8, 2028: use Standard SSD or Premium SSD for new recovery OS disks.
- Site Recovery vs Azure Backup: Site Recovery is disaster recovery and failover. Azure Backup is point-in-time data protection.
- Azure CLI and PowerShell commands for Azure-to-Azure replication were not part of the pages used for this guide, so none are listed. The Backup reports workbooks include Azure Site Recovery Job History and Replication History.
Exam Tips
Tick each tip once you can answer it without looking.
“Where do you create the vault for Azure-to-Azure DR?” → Any region except the source region. Trap: putting it in the same region as the VMs.
“Role to manage replication in the vault” → Site Recovery Contributor. Trap: Backup Contributor.
“What inbound rule do replicated VMs need?” → None: outbound HTTPS only, by service tag. Trap: opening inbound 443.
“NSG outbound rules for replication” → Storage.<region>, AzureActiveDirectory, EventHub.<region>, AzureSiteRecovery. Trap: allowing only Storage.
“Validate the DR plan without affecting production” → Test failover into a non-production virtual network, then Cleanup test failover. Trap: a real failover.
“Default recovery point retention” → 1 day. Trap: 7 days.
“Default app-consistent snapshot frequency” → 0 hours (disabled). Trap: assuming a 4-hour default.
“How often are crash-consistent points created?” → Every 5 minutes; it can't be changed. Trap: assuming it is configurable to 1 hour.
“App-consistent points with 24-hour retention” → Set the frequency lower than the retention, for example 1 hour. Trap: a frequency equal to or higher than the retention.
“SQL and app VMs must recover to a consistent point together” → Replication group (multi-VM consistency), port 20004. Trap: enabling it for all VMs, which hurts performance.
“Lowest RPO at failover” → Latest. Trap: Latest processed, which gives the lowest RTO.
“Fail over one VM to a specific earlier point” → Custom recovery point. Trap: choosing Custom in a recovery plan, where it isn't available.
“After failover, replicate back to the primary region” → Commit, then Re-protect; failback after that. Trap: Re-protect before commit.
“What does Commit do?” → Finishes the failover and deletes all recovery points. Trap: assuming you can still change the recovery point.
“Change the target VM from single instance to an availability zone” → Disable replication, change it, enable replication again. Trap: editing it in place.
“Cache storage account placement” → Same region and same subscription as the source VMs. Trap: placing it in the target region.
“VM with unmanaged disks” → Not supported: managed disks are required. Trap: replicating it as is.
“Start the SQL tier before the app tier during failover” → Recovery plan with ordered groups. Trap: failing over the VMs one by one.
“Run a script after failover to attach a public IP” → Recovery plan with an Azure Automation runbook step. Trap: a manual action, which only pauses the plan.
“Recovery plan for VMs replicated to two target subscriptions” → Not allowed: one plan per target subscription. Trap: a single plan.
Sources
- Azure to Azure DR architecture
- Tutorial: set up Azure VM disaster recovery
- Tutorial: fail over Azure VMs to a secondary region
- Tutorial: run a DR drill
- Support matrix for Azure VM disaster recovery
- About recovery plans
- Create and customize recovery plans
- Azure to Azure DR: common questions
- Overview of Recovery Services vaults
- Configure Azure Backup reports
Checked against Microsoft Learn on November 13, 2026.