Backup and disaster recovery
Protect VMs, file shares and blobs with Azure Backup, restore exactly what you need, and fail over whole workloads with Site Recovery.
In this lesson you'll learn
- Recovery Services vaults versus Backup vaults
- Backup policies, soft delete and restore options
- Site Recovery: replicate, test failover, fail over and fail back
- Backup reports and alerts
1. Backup or disaster recovery?
New to backup? Start here
Backup keeps copies of data from points in the past, so you can recover from deletion, corruption or ransomware. Disaster recovery keeps a live copy of whole systems running elsewhere, so you can switch over when a region fails. Most organisations need both.
| Item | Azure Backup | Azure Site Recovery |
|---|---|---|
| Purpose | Restore data from a point in time | Keep systems running after a disaster |
| Frequency | Usually daily or a few times a day | Continuous replication |
| Measures | Retention: days, weeks, years | RPO (data lost) and RTO (time to recover) |
2. Vaults and policies
| Vault | Protects |
|---|---|
| Recovery Services vault | Azure VMs, SQL Server and SAP HANA in VMs, Azure Files, on-premises via the MARS agent and MABS. Also hosts Site Recovery. |
| Backup vault | Newer workloads: Azure Blobs, Azure Disks, Azure Database for PostgreSQL, AKS |
- A vault must be in the same region as the resources it backs up.
- A backup policy sets the schedule and retention for one workload type. 120 VMs can share one VM policy, but VMs and file shares need separate policies.
- A VM can be protected by only one vault. To switch vaults, stop protection first.
- Soft delete keeps deleted backup data for 14 more days at no cost.
- A vault cannot be deleted while it still holds protected items or backup data.
Exam focus
Azure SQL Database (the PaaS service) has its own built-in backups, and needs no Azure Backup policy. SQL Server running inside a VM does.
3. Restore options
| Need | Restore option |
|---|---|
| A few files from a VM | File Recovery: mount the recovery point as a drive and copy files |
| A whole new VM | Create new virtual machine |
| Disks to build a custom VM | Restore disks |
| Roll the existing VM back | Replace existing |
| Restore in the paired region during an outage | Cross Region Restore (GRS vault with the feature enabled) |
Example
A SS Kaiser manager deletes a folder of supplier contracts from a VM. The admin opens File Recovery on last night's recovery point, runs the script to mount it as a drive, and copies the folder back in ten minutes. There is no need to restore the whole VM.
4. Site Recovery
- Test failover proves the DR plan works without affecting production. Clean it up afterwards.
- Planned failover is for moves with no data loss. Unplanned failover is for real disasters.
- Recovery plans order the failover, for example databases first, then app servers, then web servers.
5. Reports and alerts
The Business Continuity Center (formerly Backup center) shows the protection status of everything in one place. Backup reports need diagnostic settings sending vault data to a Log Analytics workspace. Built-in alerts warn about failed backup jobs, and can be routed to action groups like any Azure Monitor alert.
Exam traps to remember
- A vault backs up resources in its own region only.
- Azure Backup can back up stopped VMs.
- Backup data cannot be moved between vaults.
- To delete a resource group containing a vault, first stop backups and delete their data.
Test yourself: 3 check questions and exam-style practice questions on this topic are in the AZ-104 Azure Administrator app.
Practise in the app