Skip to content
Visual explainer 3h to learn 5 steps

Azure backup and disaster recovery choices

Choose a recovery pattern from RPO and RTO, and run a restore drill with Azure Backup.

By Invicly Tech, , in Microsoft Azure Cloud Engineering. About 14 minutes to read.

Topic 26 of 33

In short

Recovery planning starts with two numbers: RPO, how much recent data you can afford to lose, and RTO, how long you can afford to be down. Azure Backup keeps point-in-time copies in a vault so you can restore after deletion, corruption or ransomware, while Azure Site Recovery continuously replicates machines to another region so you can fail over after a regional outage. A plan is only real once you have run a restore drill and timed it.

Think of it like this: A spare tyre (replication) gets you moving again fast, but only the photo album in the loft (backup) brings back last year's pictures after you delete them.

Explained simply

Things go wrong in two different ways. Sometimes a machine, a data centre or a whole region fails. Other times people or software damage the data itself: someone deletes a table, a bug overwrites records, or ransomware encrypts files. Each problem needs a different kind of protection.

Before choosing tools, agree on two numbers with the people who own the service. RPO, the recovery point objective, is how much recent data you can lose, for example 15 minutes. RTO, the recovery time objective, is how long the service can be down, for example 4 hours. Smaller numbers cost more.

Azure Backup takes copies at set times and keeps them in a vault, so you can go back to yesterday or last week. Azure Site Recovery copies whole machines to another region all the time, so if the region fails you can start them there within minutes. Backup undoes mistakes; replication survives outages.

A backup you have never restored is only a hope. A restore drill means actually restoring into a safe place, timing how long it takes, and checking the app works. Doing this a few times a year is the only way to know your RPO and RTO are real.

Press Play on a diagram to walk through it one step at a time.

CompareAvailability, backup and disaster recovery
High availability
  • Zones or redundant instances
  • Survives a machine or zone failure
  • Copies mistakes instantly too
  • RTO near zero, no history
Azure Backup
  • Point-in-time recovery points in a vault
  • Survives deletion, corruption, ransomware
  • RPO from the backup schedule
  • RTO = restore time, often hours
Azure Site Recovery
  • Continuous replication to another region
  • Survives a regional outage
  • RPO of seconds to minutes
  • RTO = failover time, often minutes
MapPick a recovery tool by what failed
What went wrong?
  • One server or zone failed
    • Availability zones
    • Multiple instances
    • Zone-redundant services
  • Data deleted or corrupted
    • Azure Backup recovery point
    • Database point-in-time restore
    • Blob soft delete and versioning
  • Ransomware
    • Immutable vault
    • Multi-user authorisation
    • Restore to clean, isolated network
  • Whole region down
    • Site Recovery failover for VMs
    • Geo-replication for databases
    • Geo-redundant storage failover

In depth

Setting RPO and RTO

Start from business impact, not technology. Ask what an hour of downtime costs and what losing an hour of orders means. Write targets per workload, because a marketing site and a payments database deserve different answers. Then check what each design really achieves. A daily backup gives an RPO of up to 24 hours. Point-in-time restore on Azure SQL or Azure Database for PostgreSQL can bring RPO down to minutes. Site Recovery replication typically keeps RPO in seconds to minutes. RTO includes everything: noticing the problem, deciding to recover, restoring data, reconfiguring DNS and secrets, and testing. Restoring a 500 GB database can take hours on its own, so measure it.

  • RPO: how much data loss, measured in time
  • RTO: how long until service is back
  • Set per workload with the business owner
  • RTO includes detection and decision time

How Azure Backup is organised

Backups live in vaults that are separate from the protected resources, so deleting a VM does not delete its backups. Recovery Services vaults protect Azure VMs, Azure Files, SQL Server and SAP HANA inside VMs, and on-premises machines through the MARS agent. Backup vaults protect newer data sources such as Azure Blobs, managed disks, Azure Database for PostgreSQL and AKS. A backup policy sets frequency and retention: VM standard policy runs once a day, while the enhanced policy allows several backups a day. Vault storage can be locally, zone or geo-redundant; with geo-redundant storage you can enable cross-region restore. Protect the vault itself with soft delete, immutability and multi-user authorisation, so an attacker with admin rights cannot quietly delete the backups.

  • Recovery Services vault: VMs, Files, SQL in VM, MARS
  • Backup vault: Blobs, disks, PostgreSQL, AKS
  • Policy = schedule + retention
  • Soft delete, immutability, multi-user authorisation

What Site Recovery replicates

Azure Site Recovery replicates whole machines: Azure VMs from one region to another, and VMware, Hyper-V or physical servers from a data centre to Azure. It copies disk writes continuously and creates crash-consistent recovery points every few minutes, plus optional app-consistent points that flush application data first. During failover it creates VMs in the target region from a chosen recovery point. Recovery plans order the start-up of machines and run scripts, for example starting the database before the API. Site Recovery does not replicate platform services such as Azure SQL or Storage; those use their own options like failover groups, geo-replication or geo-redundant storage. Test failover starts copies in an isolated virtual network without stopping replication, so you can rehearse safely.

CycleSite Recovery lifecycle
  1. 1
    Replicate

    Continuous disk replication to the target region

  2. 2
    Test failover

    Start copies in an isolated network, then clean up

  3. 3
    Failover

    Start VMs in the target region from a recovery point

  4. 4
    Commit and reprotect

    Replicate back from the new primary

  5. 5
    Failback

    Return to the original region when healthy

  6. Back to step 1

Running a restore drill

Plan the drill like a change. Prerequisites: a protected item with at least one recovery point, a separate target resource group or isolated network, and a written runbook. Steps: note the start time, pick a recovery point, restore to the new location (never over production in a drill), reconnect any secrets or identities the app needs, and run a smoke test such as a known query returning the expected row count. Evidence: the restore job completes in the Backup jobs list, the app or database answers correctly, and you record the total elapsed time against the RTO. Cleanup: delete the restored resources and the staging data so they do not keep billing, and update the runbook with every surprise you hit.

FlowRestore drill timeline
  1. 1
    Declare

    Start the clock, open the runbook

  2. 2
    Choose point

    Pick a recovery point before the incident

  3. 3
    Restore

    Into a separate resource group or network

  4. 4
    Reconnect

    Secrets, identities, DNS, firewall rules

  5. 5
    Verify

    Smoke test and data check, stop the clock

  6. 6
    Clean up

    Delete drill resources, update the runbook

Availability is not recoverability

Availability features keep a service running through hardware failures: availability zones, zone-redundant storage, multiple instances behind a load balancer, or a database with a standby replica. They copy every write, including bad ones, within seconds. That is exactly what you want for a failed server and exactly wrong for a deleted table or encrypted files. Recoverability features keep older versions you can go back to: backups, point-in-time restore, blob versioning and soft delete. A production design needs both, and a regional disaster plan adds a third: a copy in another region. When someone says the data is replicated three times, ask whether you can restore last Tuesday.

Learn it in 5 short steps

About 35m each. Track them with a timer in your plan.

  1. 1
    Set RPO and RTO targets~35m
  2. 2
    Back up with Azure Backup~35m
  3. 3
    Know what Site Recovery replicates~35m
  4. 4
    Run a restore drill~35m
  5. 5
    Separate availability from recovery~35m

Key points

  • Set RPO and RTO per workload with the business owner before choosing any service.
  • Zone redundancy is availability, not recovery: a deleted table is deleted in every zone.
  • Recovery Services vaults and Backup vaults hold recovery points with soft delete; consider immutability for ransomware.
  • Site Recovery test failover runs in an isolated network so you can rehearse without touching production.
  • Time every restore drill and compare the result with your RTO.

Key terms

Tap a card to flip it. 0/6 known

Examples

bash
# list recovery points for a protected VM
az backup recoverypoint list -g rg-lab --vault-name rsv-lab \
  --container-name vm-api01 --item-name vm-api01 \
  --backup-management-type AzureIaasVM -o table
# restore its disks to a separate resource group (never overwrite in a drill)
az backup restore restore-disks -g rg-lab --vault-name rsv-lab \
  --container-name vm-api01 --item-name vm-api01 \
  --rp-name <recovery-point-name> \
  --storage-account stlabstaging01 \
  --target-resource-group rg-restore-drill

A restore drill restores into a separate resource group and is timed from start to a working check.

Choosing recovery for the sample app

The sample app has a container API, Blob Storage, PostgreSQL and a worker. The owner sets RPO 15 minutes and RTO 4 hours for orders data. Step 1: PostgreSQL flexible server takes automatic backups with point-in-time restore, which meets 15 minutes; enable geo-redundant backup so a restore in the paired region is possible. Step 2: Blob Storage gets soft delete, versioning and point-in-time restore for block blobs. Step 3: the API and worker are stateless containers rebuilt from Bicep and the image registry, so no backup is needed, only the pipeline. Step 4: a VM still running a legacy report job gets Azure Backup with daily policy, since its RPO is 24 hours. Site Recovery is not needed because nothing stateful runs on VMs that must fail over in minutes.

Timed restore drill for a VM (paid lab)

Azure Backup for VMs is a paid service (an instance fee plus storage), so use a tiny VM, keep the drill short and delete everything after. A free alternative is a PostgreSQL point-in-time restore on a trial credit or a blob version restore. Step 1: enable backup and trigger a first backup. Step 2: when the job completes, list recovery points. Step 3: restore disks to rg-restore-drill and create a VM from them, timing each step. Step 4: sign in or curl the app and check a marker file you created before the backup exists. Step 5: stop protection, delete backup data and delete both resource groups.

bash
az backup vault create -g rg-lab -n rsv-lab -l westeurope
az backup protection enable-for-vm -g rg-lab --vault-name rsv-lab \
  --vm vm-api01 --policy-name DefaultPolicy
az backup protection backup-now -g rg-lab --vault-name rsv-lab \
  --container-name vm-api01 --item-name vm-api01 \
  --backup-management-type AzureIaasVM
az backup job list -g rg-lab --vault-name rsv-lab -o table
# cleanup when done (soft delete keeps data 14 days unless disabled)
az backup protection disable -g rg-lab --vault-name rsv-lab \
  --container-name vm-api01 --item-name vm-api01 \
  --backup-management-type AzureIaasVM --delete-backup-data true --yes

Quick reference

  • RPO = acceptable data loss; RTO = acceptable downtime; set both per workload
  • Replication copies mistakes; backups let you go back in time
  • Recovery Services vault: VMs, Azure Files, SQL in VM; Backup vault: Blobs, disks, PostgreSQL, AKS
  • Site Recovery replicates VMs and servers, not PaaS data services
  • Test failover uses an isolated network and does not stop replication
  • Restore drills go to a separate resource group, are timed, then cleaned up
  • Protect vaults with soft delete, immutability and multi-user authorisation

Common mistakes

  • Calling geo-redundant storage a backup when it also replicates deletes and overwrites.
  • Never testing a restore, then finding the backup lacked a disk, a key or a connection string.
  • Promising a one hour RTO for a database that takes four hours to restore.

Quick quiz

Pick an answer to see if you're right and why.

Question 1

1The business can lose at most 15 minutes of orders. Which target is that?

Question 2

2A bug overwrote customer records an hour ago. The database is zone redundant. What restores the data?

Question 3

3Which does Azure Site Recovery replicate?

Question 4

4What is the main purpose of a test failover?

Question 5

5Why restore into a separate resource group during a drill?

0/5 answered

Practice exercises

Try each one yourself first. Use the hint if you get stuck, then compare with the solution.

  1. Exercise 1easy

    Write RPO and RTO targets for three parts of the sample app: the marketing site, the orders database and uploaded invoices in Blob Storage, with one line of reasoning each.

  2. Exercise 2medium

    Turn on soft delete and versioning on a lab storage account, delete and overwrite a blob, then recover both.

  3. Exercise 3hard

    Design the recovery plan for a region outage: API on Container Apps, PostgreSQL flexible server, Blob Storage with GRS, RTO 4 hours. List the order of steps and what you must have prepared in advance.

Check yourself

Answer in your head, reveal, then be honest with yourself.

Feel confident about this topic?

Frequently asked questions

Is geo-redundant storage a backup?
No. It keeps a copy in another region for disasters, but deletes and overwrites are copied too. Use soft delete, versioning or Azure Backup for recovery from mistakes.
How much does Azure Backup cost?
You pay a monthly fee per protected instance based on its size, plus the storage used by recovery points. Small lab VMs cost little, but remember to delete backup data afterwards.
Do I need Site Recovery if my app runs on PaaS services?
Usually not. Stateless containers are redeployed from code, and databases and storage have their own geo-replication or geo-restore features. Site Recovery is for virtual machines and servers.
How often should we run restore drills?
At least once or twice a year per critical workload, and after any major change to the architecture. Many teams rotate drills so one system is tested each month.

Go deeper

ShareXLinkedInWhatsApp