# Warm standby on Azure: disaster recovery with Azure Site Recovery

> An active-passive Azure design with Site Recovery for VMs, a SQL Database failover group, geo-redundant storage and Traffic Manager: how recovery and failback work, what it costs and where it breaks.

## Key takeaways

- Site Recovery replicates VMs to another region and creates them at failover. Recovery plans set the start order.
- Azure SQL Database failover groups move the database. The read/write listener keeps one connection string across regions.
- Geo-redundant storage copies blobs asynchronously, so some recent writes can be lost.
- Warm standby runs a small web tier in the secondary region. If only replication runs there, you have the cheaper, slower pilot light.

[Open this diagram in archhy](https://archhy.com/app#d=N4IgLglmA2CmIC4QHUCGAnAtgAgM5lQDsATAIwE9sB7Q7AQQC8BXdWBbAZSlmwCVYAxlQBusdOQA0nAIoAZbADNUEaCLHYA5uipMADtiLFsAcV4cDA7blzYwAdyrZWGiDVwgJIaKnI6wAEQhWAUgaRBBZXg8QTFgCRFANVVJUaHcEUFwACyo7ADkqYlgAFXJdWHSlNNhPCFwOQlRdAFFG0jhiRDB0JhqQLQhiLgZ4BAAmAAZPLNSFY3RB3mU0xCrcPvRljjByOHCBOCJo3QgQllHQSBhR7t6AXwfPQkKKxABtUEHwpnX0d09vKRYNBwgBVX7-cBlUYgcFiaLeXxMMAJEAAD0QAFoAIwAFimIHIiAAbBMCXZBmAsohsaTprAIBosiiENjsRM7p4enB0p9CFoKuk3gBdTywAXWd7Cx6fTpIMCYBGoIEgpDFTYKBSnbAAWSIqA0YnYugWVAWOycfgg-OiO3K4WMsEIYlOHDEwlO8E8vw9AhhqGYrAA9N1UJrTpjMPrDeglUiWaAMeNJp4iQhSeTKdTWXSQFkGUyWWyOVymDzUdaJULRSBxaxJQgRTKQF8kAoqBolSrwgAxZZqdCabR6JywVDEIN2c08aB1MBO+GeO0wx3OhYCN3oX1ekA+z3hAPnIPEQiQxF+VFJtkADgJaYzngpxCpNNz+cZzJp7M5IG5rwyLb8vW1ZilWUrNq2v66F2wLhAACgsUbiKOLg0NgAAUqAhBAogAJS2tC4QAEI6CQGBEt67r7kgh7Bs4riELayqyMq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pLZBrjEOH2F3gQ-lKLZPNXczMkdEo0HmHmBN4hQXID+iESIDBJV0hPVwiM11hPhMRPaNRLX3RJ6MxIoN3wzjbzVMMgJKkKJIcIKLYKdHJJe0pPNjPWtmxHNn4MYSvHNP4y0WZKKOYTHzv3wC5KDgERUzt0oEwlwBFIEDFKV3BLlFYJACzy1zhIRJR0VPLzRJINVJMLSNOOoNxNdyuMJJuOYL92dKQBCVdL0lQFcy+V4A8lHC8zEEoG212zWKT2aM2NaO2PDJlOz3h271xA7NxFjJ-3jOrwxKTJOJb1TO1JyOuPGMcMKIeOFwCw3TmNeItQ83C0rK6V+hU1YHBJsD7kaLrI2KQC2LCObJhJz3bM7O7ISN7KMP7L6K73oM1MyLxOyMHLsP1NuLDLJIpKvHzwdJtK4K-PxlZDGC0RLDiS0QSSEKAruGlGlCAA)

Azure Site Recovery is the usual way to give a virtual machine workload a second Azure region. It keeps your VM disks up to date in the secondary region and creates the VMs there on failover. The database, storage and traffic routing must move with them. This post draws an active-passive warm standby design on Azure and explains how recovery works, what it costs and where it breaks.

## The problem: losing a whole region

Availability zones protect you from losing one data centre. A region-wide outage needs a copy of the workload elsewhere. Two targets decide how much you build: RTO (recovery time objective, how long you can be down) and RPO (recovery point objective, how much data, measured in time, you can lose).

Not every region has a pair. Where one exists (UK South with UK West, for example), it gives a prioritised recovery order, staggered platform updates and, nearly always, the same geography. Newer regions such as Italy North and Spain Central have no pair. Pairing alone makes nothing resilient: you still build and test the failover.

## The diagram

The diagram ([open the diagram](https://archhy.com/app#d=N4IgLglmA2CmIC4QHUCGAnAtgAgM5lQDsATAIwE9sB7Q7AQQC8BXdWBbAZSlmwCVYAxlQBusdOQA0nAIoAZbADNUEaCLHYA5uipMADtiLFsAcV4cDA7blzYwAdyrZWGiDVwgJIaKnI6wAEQhWAUgaRBBZXg8QTFgCRFANVVJUaHcEUFwACyo7ADkqYlgAFXJdWHSlNNhPCFwOQlRdAFFG0jhiRDB0JhqQLQhiLgZ4BAAmAAZPLN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31r0gMp2p0-D3yd3IKPx708D729wQIQD508CBBICFDiTZG1VxGxHkiZivGxG1WJHkn4OlGQJHxAEwNvzRgQUfzMjglqy2hsH-hUxYD1i6RAS8g-31y-xxyIKr1wAAPIOt1t3t3AJoK3070b2b1F0YLP0HyQNexQKkI7BkMnQQTDzoDZ3UFjx-QBA3mTwpzT3zE6GhyoFhy1zzwLyLzwOX0IN-0MOMKsMnWANsNbwgJSPAGgJensIH0QP5wkOF1D3cLDV5S+Rnzn3MDDHnEHD8O8wRECI21TxQVCLiIINxxN3X2JzIKyOt0oI3QsPbyyLoJP3gPPycKkJcLTSXDv3vS+ToGf1f2gHfy8CaJT3CBCIzx0NL30MSO6M3xd23xsNAIyMsKOM7zMNgNP3yJYIv2cMkL3nQIPDg2wLMhCx4E8wHEoGIDqEclHCHlOH-gYkV04n-gzzuN6HCMiIRzGDGAEFEJ3E-3wL2K6P-1IMANSIGLOOGIuKgOxIYLgKYImL6HYOIE4JwTZEQx1T4IEK-GpLZBrjEOH2F3gQ-lKLZPNXczMkdEo0HmHmBN4hQXID+iESIDBJV0hPVwiM11hPhMRPaNRLX3RJ6MxIoN3wzjbzVMMgJKkKJIcIKLYKdHJJe0pPNjPWtmxHNn4MYSvHNP4y0WZKKOYTHzv3wC5KDgERUzt0oEwlwBFIEDFKV3BLlFYJACzy1zhIRJR0VPLzRJINVJMLSNOOoNxNdyuMJJuOYL92dKQBCVdL0lQFcy+V4A8lHC8zEEoG212zWKT2aM2NaO2PDJlOz3h271xA7NxFjJ-3jOrwxKTJOJb1TO1JyOuPGMcMKIeOFwCw3TmNeItQ83C0rK6V+hU1YHBJsD7kaLrI2KQC2LCObJhJz3bM7O7ISN7KMP7L6K73oM1MyLxOyMHLsP1NuLDLJIpKvHzwdJtK4K-PxlZDGC0RLDiS0QSSEKAruGlGlCAA)) puts Azure Traffic Manager beside two stacked regions, each with a virtual network, an Azure SQL database and a storage account.

- **Traffic Manager, priority routing.** All traffic goes to the available endpoint with the lowest priority number (1 to 1,000). The primary region is 1.
- **Web tier.** A full-size VM scale set in the primary region; one instance runs in the secondary, ready to scale out. That is the "warm" part.
- **App VMs and Site Recovery.** The Mobility service extension on each VM sends disk writes to a cache storage account in the source region. Site Recovery copies them to replica managed disks in the target region. It creates crash-consistent recovery points every five minutes, and app-consistent ones only if you set a frequency. The Recovery Services vault must sit in a region other than the source.
- **SQL failover group.** The app connects to `<fog-name>.database.windows.net`, a DNS CNAME with a 30-second TTL that always points at the current primary.
- **Storage with GRS.** GRS copies data asynchronously to the paired region; reading it needs RA-GRS, writing needs an account failover. Keep Azure Backup copies in the secondary region too: replication copies deletions and corruption.

## How recovery works

1. **Detect and declare.** Alerts start the incident; a named person declares the disaster against agreed criteria. Microsoft's Well-Architected guidance suggests a person-started runbook for warm standby, as it is simpler.
2. **Fail over the data.** If the primary can still be reached, fail over the SQL failover group with no data loss. If it cannot, force the failover and accept losing transactions that had not yet replicated. Use the customer-managed policy: Microsoft-managed failover waits at least an hour and moves every group in the region.
3. **Run the recovery plan.** A recovery plan puts VMs into groups that start in order: the back end first, then the middle tier, then the front end. It can run Azure Automation runbooks and pause for manual steps. Choose "Latest processed" for the lowest RTO, or "Latest" for the lowest RPO.
4. **Scale and move users.** Scale out the warm web tier. Traffic Manager sees the primary endpoint fail its health checks and answers with the secondary.
5. **Fail back.** Commit the failover, then reprotect: Site Recovery starts replicating from the secondary region back to the primary. Then fail over in the other direction. Microsoft's worked example of a reprotect takes at least three hours, so treat failback as a planned change.

## RTO, RPO and cost

Microsoft gives figures for the database: a failover group with customer-managed failover typically recovers in under 60 seconds, with an RPO of zero or more, depending on what had not replicated yet. For VMs, Site Recovery's crash-consistent points come every five minutes. Geo priority replication keeps block blob RPO at or under 15 minutes. Measure VM boot and warm-up time in drills.

You pay a Site Recovery licence for each VM, egress for replicating disk changes (built-in compression cuts this by about half), and storage for the replicas and recovery points. A DR-only geo-secondary database can be a licence-free standby replica. Warm standby adds the always-on web instances.

## Choosing and trade-offs

- **Traffic Manager or Front Door.** Traffic Manager fails over through DNS, which clients cache, so it is slower. Azure Front Door is faster and works at layer 7, but costs more.
- **Warm or pilot light.** Running nothing but replication saves the warm instances but adds the time to create every VM at failover.
- **Test it.** A test failover builds the VMs in an isolated network while replication carries on. Microsoft suggests a test for each app every quarter.
- **Watch capacity and security.** Check target-region VM quota, and copy network rules, identity and keys there early.

## When not to use it

- Your RTO is measured in seconds and you need writes in both regions. Use active/active.
- The workload is PaaS throughout. Use each service's own geo-replication rather than VMs.
- Hours of downtime are acceptable. Backup and restore costs far less.

## How to draw it in archhy

1. Open the **Services** drawer, choose the Azure pack and place two Region containers, one above the other. Add a Virtual network and two Subnets inside each.
2. Draw the primary region, duplicate it and relabel the secondary web scale set "1 instance (warm)".
3. Put Traffic Manager on the left with two rails to the load balancers, and make the priority 2 rail dashed.
4. Colour the replication rails green to set data apart from user traffic.
5. Add an info box to the Recovery Services vault with the recovery point interval and drill schedule, then use File ▸ Download PNG for the runbook.

## The series

This post is part of **Disaster recovery across AWS, Azure and Google Cloud**:

1. [RTO, RPO and the four disaster recovery strategies](https://archhy.com/blog/disaster-recovery-rto-rpo-strategies)
2. [Backup and restore (cold DR) on AWS](https://archhy.com/blog/aws-backup-and-restore-disaster-recovery)
3. [Pilot light vs warm standby on AWS](https://archhy.com/blog/aws-pilot-light-warm-standby)
4. [Multi-site active/active on AWS](https://archhy.com/blog/aws-multi-site-active-active)
5. Warm standby on Azure with Site Recovery
6. [Active/active on Azure with Front Door and Cosmos DB](https://archhy.com/blog/azure-active-active-front-door-cosmos-db)
7. Cold, warm and hot DR on Google Cloud
8. From your data centre to the cloud: DR into AWS, Azure and Google Cloud
9. DR building blocks compared: AWS vs Azure vs Google Cloud

## Frequently asked questions

### What does Azure Site Recovery replicate?

Between regions, it replicates Azure VM disks. Disk writes go through a cache storage account to replica managed disks in the target region, and VMs are created from a recovery point at failover.

### How often does Site Recovery create recovery points?

Crash-consistent points every five minutes, which you cannot change. App-consistent points only at the frequency you set in the replication policy.

### Do I have to use Azure paired regions for disaster recovery?

No. Many newer regions have no pair. Pairs help with recovery order, staggered updates and GRS storage, but you can fail over to any region that suits you.

### How do I fail back after a Site Recovery failover?

Commit the failover, reprotect the VMs so they replicate back to the primary region, then fail over again once replication is healthy.

*Based on:* Redrawn and discussed from [Multitier web application built for high availability and disaster recovery](https://learn.microsoft.com/en-us/azure/architecture/example-scenario/infrastructure/multi-tier-app-disaster-recovery) (Azure Architecture Center, principal author Sujay Talasila), with Microsoft Learn's Site Recovery, Azure SQL Database, Azure Storage and Well-Architected disaster recovery pages. The diagram, the warm-standby variant and the commentary are archhy's own.
