Lesson 21 — Azure Backup & Recovery Services Vault
Why You Need This
Monitoring tells you when something goes wrong. Backup is what saves you after it does. Azure Backup is the cloud-native backup service that protects virtual machines, file shares, databases, and on-premises servers — all managed through a unified vault model. Understanding the two vault types, the backup policy parameters, and the restore options is essential for the AZ-104 exam and for day-to-day Azure administration.
In production, the question is never whether to back up — it is always how long you can afford to lose data (RPO) and how fast you need to recover (RTO). Those two numbers drive every backup policy decision you will make.
Two Vault Types — Know Which to Use When
Azure Backup uses two different vault resource types. They are not interchangeable. The exam will test this distinction directly.
| Feature | Recovery Services Vault | Backup Vault |
|---|---|---|
| Resource type | Microsoft.RecoveryServices/vaults |
Microsoft.DataProtection/backupVaults |
| Azure VM backup | Yes — primary use case | No |
| Azure Disk backup | No | Yes |
| Azure Blob backup | No | Yes |
| Azure Files backup | Yes | No |
| SQL in Azure VM | Yes | No |
| SAP HANA in Azure VM | Yes | No |
| On-premises via MARS/MABS | Yes | No |
| Azure Database for PostgreSQL | No | Yes |
| Maturity | Original, full-featured | Newer, simplified API-based model |
Azure VM Backup
Backing up an Azure VM with Azure Backup requires no agent for a basic VM snapshot — the Backup service uses the Azure fabric to take a snapshot of the managed disks. For application-consistent backups (SQL, etc.), the VM Snapshot extension is installed automatically.
Application-consistent backups
A crash-consistent backup captures the exact disk state at the moment of the snapshot. An application-consistent backup goes further: it quiesces in-flight transactions before the snapshot so the resulting backup can be restored to a clean state without transaction log replay.
- Windows: uses VSS (Volume Shadow Copy Service) — coordinates quiescing across all VSS-aware writers (SQL Server, Exchange, etc.)
- Linux: uses pre-script and post-script hooks configured per VM — the pre-script freezes the application, the backup runs, the post-script thaws it
Backup policy parameters
| Parameter | Options / Range | Notes |
|---|---|---|
| Backup frequency | Daily or weekly | Daily is the standard for production VMs |
| Backup time | Specific UTC time | Schedule during low-traffic windows to minimise VSS impact |
| Instant restore snapshot retention | 1–5 days | Snapshots retained locally in the storage account for fast restore. Longer retention = higher cost. |
| Daily recovery point retention | Up to 9,999 days | One recovery point per day kept for this many days |
| Weekly recovery point retention | Up to 5,163 weeks | Which day of the week to designate as the weekly recovery point |
| Monthly recovery point retention | Up to 1,188 months | For long-term retention (LTR) / compliance archiving |
| Yearly recovery point retention | Up to 99 years | Regulatory requirements may mandate 7-year retention |
Restore options
When restoring an Azure VM backup, you have three distinct options — each suited to a different recovery scenario:
| Restore option | What it does | When to use |
|---|---|---|
| Create new VM | Provisions a completely new VM from the recovery point — new resource IDs, new NIC, new disk | Full VM failure; you need a clean replacement VM quickly |
| Restore disks | Restores the OS and data disks to a storage account as VHDs, which you then attach to an existing VM | You want to control VM configuration post-restore; good for testing before cutting over |
| File recovery | Mounts the backup recovery point as a file system on a running VM using a script; you browse and copy individual files, then unmount | Restoring one or a few files without full VM restore — fastest for partial recovery |
| Replace existing disk | Replaces an existing disk of the backed-up VM in place with the recovery point disk | VM still exists but you need to roll back the OS disk to a previous state |
Instant restore
When a backup runs, Azure Backup first takes a snapshot of the VM's managed disks and retains it in the source storage account for 1–5 days (configurable). Restoring from a snapshot is dramatically faster than restoring from the vault because the data never leaves the storage account — there is no transfer from vault storage to compute.
After the snapshot retention period expires, the backup data is transferred to vault storage and the snapshot is deleted. Restores from vault storage take significantly longer, proportional to disk size.
Soft Delete
Soft delete is a critical security feature that protects backup data from ransomware attacks and accidental deletion by administrators.
When backup data is deleted (by stopping protection and deleting backup data, or by deleting a backup item), Azure Backup retains the data in a soft-deleted state for 14 additional days. During this period:
- The backup data is marked as "soft deleted" and cannot be permanently purged
- Storage costs still apply during the soft delete period
- The data can be recovered ("undeleted") at any time within the 14 days
- After 14 days, data is permanently deleted and cannot be recovered
Azure Files Backup
Azure Backup for Azure Files uses share snapshots stored in the same storage account as the file share itself. These snapshots appear in the storage account as point-in-time copies and can be managed directly through Azure Backup policies.
- Backup is coordinated through a Recovery Services Vault, but the snapshot data lives in the storage account (not transferred to vault storage)
- Restore: full share restore, or individual file/folder restore to the original or an alternate location
- Maximum backup frequency: 4 backups per day
- Maximum retention: 200 recovery points per share
CanNotDelete resource lock to storage accounts that hold Azure Files backups.
MARS Agent — On-Premises Backup to Azure
The Microsoft Azure Recovery Services (MARS) agent enables backing up on-premises Windows Server machines directly to a Recovery Services Vault in Azure — without requiring any Azure infrastructure (no Azure VMs, no Azure Backup Server).
What MARS backs up
- Files and folders (file-level granularity — not a full disk image)
- Windows System State (registry, boot files, COM+ database, Active Directory for domain controllers)
What MARS does NOT back up
- Linux systems — MARS is Windows-only
- Full disk/VM images — for those, use Microsoft Azure Backup Server (MABS) or DPM
- Application-consistent backups of SQL Server — SQL in Azure VM requires the dedicated SQL backup solution
Backup Center and Backup Reports
Backup Center
Backup Center is the unified management console for Azure Backup across all vault types, subscriptions, and regions. From one blade you can:
- View all backup jobs across all vaults and subscriptions in one grid
- Monitor backup health — which VMs have protection configured, which do not
- Create and manage backup policies centrally
- Configure backup for new resources at scale
- View compliance against backup policies (which resources have not had a successful backup in the last 24 hours)
Backup Reports
Backup Reports is an Azure Monitor Workbook that provides historical reporting on backup jobs, protected instances, policy compliance, and cost estimation. It requires:
- Routing backup diagnostic logs to a Log Analytics workspace via diagnostic settings on each vault
- Waiting for data to populate (typically 24 hours before meaningful data is available)
Without the Log Analytics routing, Backup Reports shows no data. This is an extremely common misconfiguration — always configure diagnostic settings when deploying a Recovery Services Vault.
Vault Storage Redundancy
Recovery Services Vaults can be configured with three storage redundancy options, selected at vault creation. The configuration cannot be changed after backup data has been stored.
| Redundancy type | Copies | Cross-region restore | Use when |
|---|---|---|---|
| LRS (Locally Redundant) | 3 within a single datacenter | No | Dev/test; when regulatory requirements prohibit data leaving the region |
| GRS (Geo-Redundant) | 3 locally + 3 in secondary region | Yes (requires explicit enablement) | Production workloads needing DR capability. Default for new vaults. |
| ZRS (Zone-Redundant) | 3 across availability zones within the region | No | When zone resiliency within a single region is the primary requirement |
RPO and RTO for Azure Backup
These two metrics define the business requirements that your backup design must satisfy. Getting these numbers from the business is the first step in any backup strategy.
| Metric | Definition | Azure Backup reality |
|---|---|---|
| RPO (Recovery Point Objective) |
Maximum data loss tolerated — how far back in time can you afford to restore? | With daily backup: up to 24 hours of data loss. A failure just before the next scheduled backup = worst case RPO. |
| RTO (Recovery Time Objective) |
Maximum downtime tolerated — how fast must the service be back online? | Instant restore (from snapshot): fastest — minutes. Restore from vault storage: slower, proportional to disk size and bandwidth. |
Check Your Understanding
Click any option to see immediate feedback.
1. You back up a Windows VM running SQL Server using Azure Backup. What mechanism ensures the SQL database is in a consistent state in the backup?
2. A developer accidentally deleted a single configuration file from a production VM. How should you recover it using Azure Backup without restoring the entire VM?
3. A junior admin stops protection on a VM and deletes its backup data. Fifteen minutes later, you discover the error. Can you recover the backup data?
4. Your primary Azure region (East US) is experiencing a widespread outage. You need to restore a VM backup to the West US paired region. What vault configuration must be in place for this to be possible?
5. You restore a VM from a recovery point taken 2 days ago. The recovery takes 8 minutes. What does this tell you about the recovery point used?
6. Your SLA for a critical business application requires RPO of 5 minutes. Can Azure Backup meet this requirement?
Walk through the support matrix article to understand exactly which workloads each vault type supports — the exam tests this at a detailed level. Also review the backup policy design guide to understand retention hierarchy design for LTR (Long-Term Retention) scenarios.
This lesson covered Azure Backup fundamentals. Go deeper on:
- Walk me through designing a backup policy that meets a 7-year legal retention requirement for financial data on Azure VMs.
- What is the difference between stopping protection and retaining data vs. stopping protection and deleting data — and when would you use each?
- How do I configure Backup Reports to show backup compliance across 50 subscriptions in a single dashboard?
- When should I use MABS (Microsoft Azure Backup Server) instead of the MARS agent, and what does MABS add?