Backup and disaster recovery

AZ-104 Azure AdministratorMonitor and maintainAbout 25 minutesBy Cloud Hands On

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

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.

ItemAzure BackupAzure Site Recovery
PurposeRestore data from a point in timeKeep systems running after a disaster
FrequencyUsually daily or a few times a dayContinuous replication
MeasuresRetention: days, weeks, yearsRPO (data lost) and RTO (time to recover)

2. Vaults and policies

VaultProtects
Recovery Services vaultAzure VMs, SQL Server and SAP HANA in VMs, Azure Files, on-premises via the MARS agent and MABS. Also hosts Site Recovery.
Backup vaultNewer 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

NeedRestore option
A few files from a VMFile Recovery: mount the recovery point as a drive and copy files
A whole new VMCreate new virtual machine
Disks to build a custom VMRestore disks
Roll the existing VM backReplace existing
Restore in the paired region during an outageCross 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

Site Recovery lifecycle: replicate, test failover, fail over, commit, re-protect and fail back UK SouthProduction VMs UK WestReplica disks 1. Continuous replication 2. Test failover into an isolated VNet3. Failover, then commit4. Re-protect, then fail back Recovery plans group VMs and scripts so a whole app fails over in the right order
Test failovers run alongside production and never interrupt replication.
  • 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

Keep going