azureblog.co.uk
← AZ-104 study plan
AZ-104 · Monitor and maintain Azure resources

Implement backup and recovery

Create Recovery Services and Backup vaults, write backup policies, restore data, replicate VMs with Azure Site Recovery and report on backups.

  • 20 min
  • 7 concepts
  • Try it yourself
  • 5-question check

Learn

Azure Backup takes copies of data so you can restore it after deletion, corruption or ransomware. Azure Site Recovery keeps a running copy of VMs in another region so you can fail over when a whole region is down.

Backup answers 'how do I get my data back?'. Site Recovery answers 'how do I keep running?'.

  1. 1

    Create a Recovery Services vault

    A Recovery Services vault stores backups for Azure VMs, SQL Server and SAP HANA in VMs, Azure Files and on-premises machines through the MARS agent or MABS. It also holds Azure Site Recovery replication.

    Set the vault's storage redundancy (LRS, ZRS or GRS) before protecting anything; it can't be changed afterwards. Enable Cross Region Restore on a GRS vault to restore in the paired region.

    Remember: Choose redundancy first. It locks once items are protected.

  2. 2

    Create an Azure Backup vault

    A Backup vault is the newer vault type for workloads such as Azure Blobs, Azure Disks, Azure Database for PostgreSQL and AKS.

    Both vault types are managed together in Backup center (Business Continuity center), which gives one view of jobs, policies and protected items.

    Remember: VMs and Files: Recovery Services vault. Blobs and Disks: Backup vault.

  3. 3

    Create and configure a backup policy

    A policy sets when backups run and how long they're kept: daily, weekly, monthly and yearly retention points. The Enhanced policy for VMs supports several backups a day and Trusted launch VMs.

    Instant restore snapshots stay with the VM for a few days for fast restores, then recovery points live in the vault.

    Remember: Policy = schedule + retention.

  4. 4

    Perform backup and restore operations by using Azure Backup

    For a VM you can create a new VM, restore disks and attach them, replace the existing VM's disks, or recover individual files by mounting the recovery point.

    Soft delete keeps deleted backup data for 14 days at no extra cost, so a deleted backup can be recovered. Immutable vaults and multi-user authorisation add further protection against ransomware.

    Remember: Need one file? File recovery, not a full restore.

  5. 5

    Configure Azure Site Recovery for Azure resources

    Site Recovery replicates Azure VMs continuously to another region. You set a replication policy with recovery point retention and app-consistent snapshot frequency, and Site Recovery creates the target resource group, VNet and storage.

    Recovery plans group VMs and order how they fail over, with scripts or manual steps between groups.

    Remember: Site Recovery is for disaster recovery, not backup.

  6. 6

    Perform a failover to a secondary region by using Site Recovery

    A test failover brings up VMs in an isolated network so you can check DR without affecting production. Clean it up afterwards.

    A real failover starts VMs in the target region from a chosen recovery point. Then commit, re-protect to replicate back, and later fail back to the original region.

    Remember: Test failover changes nothing in production. Run it regularly.

  7. 7

    Configure and interpret reports and alerts for backups

    Backup reports use a Log Analytics workspace (send vault diagnostics there) to show backup items, jobs, storage used and policy compliance over time.

    Built-in Azure Monitor alerts cover failed backups and restores and security events such as deleted backup data. Route them through action groups.

    Remember: Reports need the vault's diagnostic data in a Log Analytics workspace.

Azure Backup or Azure Site Recovery?

Azure Backup
  • Copies data on a schedule
  • Restore files, disks or whole VMs
  • Recovers from deletion, corruption, ransomware
  • Measured in recovery points kept for days to years
Azure Site Recovery
  • Replicates VMs continuously
  • Fail over to another region
  • Recovers from a region or datacentre outage
  • Measured in minutes of data loss and downtime

Try it

What do you need to protect against, and what are you protecting?

This interactive part needs JavaScript.

In the portal

  • Create a vaultAzure portal: Business Continuity Center > Vaults > Vault
  • Back up a VMAzure portal: Virtual machines > your VM > Backup + disaster recovery > Backup
  • Replicate a VM to another regionAzure portal: Virtual machines > your VM > Backup + disaster recovery > Disaster recovery
  • Backup reportsAzure portal: Business Continuity Center > Monitoring + Reporting > Reports

Key terms

Click a card to see the definition.

Check your understanding

5 questions. Score 80% or more and these skills are marked as confident in your AZ-104 study plan.

  1. Which vault type protects Azure Blobs?

  2. When must you set a Recovery Services vault's storage redundancy?

  3. You need to check DR works without affecting production. What do you run?

  4. A user needs one file back from last Tuesday's VM backup. What's quickest?

  5. How long does soft delete keep deleted backup data by default?

Sources

Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.