Recovery Services Vaults, Backup Vaults and Backup Policies
30-second answer
Azure Backup stores data in two kinds of vault. A Recovery Services vault protects Azure VMs, SQL Server and SAP HANA in VMs, Azure Files, on-premises files through the MARS agent, and also hosts Azure Site Recovery. A Backup vault protects Azure Blobs, managed disks, Azure Database for PostgreSQL flexible server and AKS. For VM backup the vault must be in the same region as the VM, and you pick storage redundancy (geo-redundant by default, locally or zone-redundant) before protecting anything. A backup policy sets the schedule (Standard: daily; Enhanced: every few hours), instant restore snapshot retention and daily, weekly, monthly and yearly retention.
Simulate it » No Azure account neededExam objective: 5.2.1 Create a Recovery Services vault. 5.2.2 Create an Azure Backup vault. 5.2.3 Create and configure a backup policy. (Skills measured as of April 17, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
Search for <strong>Recovery Services vaults</strong>. You can also start from <strong>Business Continuity Center</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- Search for Recovery Services vaults. You can also start from Business Continuity Center.
- Type recovery services in the search bar and pick Recovery Services vaults under Services.
- Select + Create.
- Put the vault in the same region as the VMs it will back up. A vault in West US 2 won’t show up when you configure backup for an East US VM.
- Geo-redundant is the default and allows Cross Region Restore. Choose now: once items are protected, redundancy is locked.
- Soft delete is on by default and keeps deleted backup data for 14 days. Create, then go to the vault.
- Open Manage → Backup policies. Select + Add, then Azure Virtual Machine.
- Standard runs once a day; Enhanced can run every few hours and is required for Trusted Launch VMs. Daily retention can be 7 to 9999 days.
- For blobs, managed disks, PostgreSQL flexible servers and AKS you use a different vault type: a Backup vault, with its own policies and a managed identity that needs a role on each data source.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Back up to a vault on a schedule
A Recovery Services vault in the same region as the VM backs it up on a backup policy: when to run, how long to keep instant-restore snapshots and daily, weekly, monthly and yearly points. A Backup vault protects blobs, disks, PostgreSQL flexible servers and AKS.
🤔 What happens if…
Read this tour as text
- Platform metrics arrive on their own. Every Azure resource sends platform metrics (Percentage CPU, Transactions, Availability) to Azure Monitor about once a minute, with no agent and no setting. Metrics explorer charts them. Azure keeps them for 93 days.
- Resource logs need a diagnostic setting. Resource logs (StorageRead, AuditEvent, NSG events) are thrown away until a diagnostic setting routes them to a Log Analytics workspace, a storage account or Event Hubs. The activity log records who changed what in the subscription and keeps it 90 days.
- Ask the workspace with KQL. Logs land in tables in the workspace: AzureDiagnostics, StorageBlobLogs, AzureActivity, InsightsMetrics. KQL reads top to bottom through pipes:
wherefilters,summarize count() by bin(TimeGenerated, 5m)groups,render timechartdraws. - Alert rule fires into an action group. An alert rule watches a signal (a metric, a log query, the activity log) and fires when the condition holds. It hands the alert to an action group: email, SMS, push, voice, a webhook, a Logic App, a Function or an ITSM ticket.
- Alert processing rules. An alert processing rule acts on alerts that already fired. Suppress notifications during a maintenance window, or apply an action group to every alert in a scope. The alert still shows in Alerts; only the notifications change.
- Insights and Connection monitor. VM insights collects performance and a connection map through the Azure Monitor Agent and a data collection rule. Network Watcher Connection monitor runs TCP, HTTP or ICMP tests from an agent on the source VM and records failures and round-trip time.
- Back up to a vault on a schedule. A Recovery Services vault in the same region as the VM backs it up on a backup policy: when to run, how long to keep instant-restore snapshots and daily, weekly, monthly and yearly points. A Backup vault protects blobs, disks, PostgreSQL flexible servers and AKS.
- Restore, and soft delete. Restore files by mounting a recovery point, create a new VM, restore disks, or replace existing disks. Soft delete keeps deleted backup data for 14 days at no cost, so a mistake or an attacker can be undone.
- Site Recovery: replicate and fail over. Azure Site Recovery replicates a VM’s disks to another region, into a Recovery Services vault in the target region. A test failover builds a copy in an isolated network. A real failover is followed by commit and re-protect.
Contoso's ERP VM has no backup. Build a vault in the right region, give it a nightly policy with 60 days of retention, take the first backup, restore one file and a whole VM, send the vault's logs to a workspace for reports, then see how soft delete saves you when someone deletes the backups.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
The ERP VM has no backup and the contracts storage account has none either.
😊 THE SOLUTION
A Recovery Services vault for the VM, a Backup vault for blobs, each with a policy.
- Vault in the wrong region✓ Same region as the VM
- Backups whenever someone remembers✓ A scheduled backup policy
- Blobs and disks unprotected✓ A Backup vault
Start with a question
Where do you keep copies of the house keys, and how often do you check they're still there?
You don’t keep the spare keys inside the house; a fire would take both. You leave them with a neighbour on the same street so you can get them quickly, or with family in another town in case the whole street floods. And you agree a routine: check every Sunday, replace them when the locks change.
Azure Backup is that arrangement. The vault is the neighbour holding the copies, in the same region as your VM, with redundancy deciding whether a copy also sits in another region. The backup policy is the routine: when to copy and how long to keep each copy.
Explain it like I’m 10
The technical explanation
Two vault types
| Recovery Services vault | Backup vault | |
|---|---|---|
| Protects | Azure VMs, SQL Server in Azure VMs, SAP HANA in Azure VMs, Azure Files, on-premises files and folders (MARS agent), MABS and DPM | Azure Blobs (operational and vaulted backup), managed disks, Azure Database for PostgreSQL flexible server, AKS |
| Also does | Azure Site Recovery replication | — |
| Resource type | Microsoft.RecoveryServices/vaults | Microsoft.DataProtection/backupVaults |
| CLI | az backup … | az dataprotection … |
| Access to the data | Azure Backup service handles VM snapshots | The vault’s system-assigned managed identity needs roles on each data source |
Both appear in Business Continuity Center (which brings together the older Backup center views), so you can manage all of them from one place.
Create a Recovery Services vault
Portal path: search Recovery Services vaults > + Create. Tabs: Basics, Redundancy, Vault properties, Networking, Tags, Review + create.
- Region: for Azure VM backup, the vault must be in the same region as the VMs. You need one vault per region you protect.
- Backup Storage Redundancy: Geo-redundant (default), Locally-redundant or Zone-redundant. You can change it only before any item is protected.
- Cross Region Restore: needs GRS. Lets you restore into the paired region at any time, not only during a Microsoft-declared outage.
- Soft delete is on by default (14 days, configurable to 180). You can make it always on, which can’t be undone. Immutability and multi-user authorization (a Resource Guard in another tenant or subscription) protect the vault from someone with admin rights.
az backup vault create -g rg-ops-bk -n rsv-contoso-eus -l eastus
az backup vault backup-properties set -g rg-ops-bk -n rsv-contoso-eus \
--backup-storage-redundancy LocallyRedundant
New-AzRecoveryServicesVault -ResourceGroupName rg-ops-bk -Name rsv-contoso-eus -Location eastus
$v = Get-AzRecoveryServicesVault -Name rsv-contoso-eus
Set-AzRecoveryServicesBackupProperty -Vault $v -BackupStorageRedundancy LocallyRedundant
Create a Backup vault
Portal path: search Backup vaults > + Create. Tabs: Basics (name, region, Backup Storage Redundancy), Vault Properties (soft delete, immutability), Tags, Review + create. A system-assigned managed identity is created with it.
az dataprotection backup-vault create -g rg-ops-blob --vault-name bv-contoso-eus -l eastus \
--type SystemAssigned \
--storage-setting "[{type:LocallyRedundant,datastore-type:VaultStore}]"
Before a Backup vault can protect a data source, its identity needs a role there: Storage Account Backup Contributor on a storage account for blobs; Disk Backup Reader on a disk and Disk Snapshot Contributor on the resource group where snapshots go. The portal offers to grant these; from the CLI, az dataprotection backup-instance update-msi-permissions does it.
Backup policies for VMs
Portal path: vault > Manage > Backup policies > + Add > Azure Virtual Machine.
| Setting | Standard | Enhanced |
|---|---|---|
| Frequency | Daily (or weekly) | Every 4, 6, 8 or 12 hours, or daily |
| Instant restore snapshots | 1 to 5 days (default 2) | 1 to 30 days (default 7) |
| Needed for | Most VMs | Trusted Launch VMs, Premium SSD v2 and Ultra disks, more frequent backups |
Retention range: daily points 7 to 9999 days; weekly points on chosen days; monthly and yearly points on a chosen day or week. A vault starts with a DefaultPolicy (daily, 30 days, 2 days of instant restore) and an EnhancedPolicy. Each protected item follows exactly one policy, and changing a policy changes every item that uses it.
az backup policy show -g rg-ops-bk --vault-name rsv-contoso-eus -n DefaultPolicy > policy.json
# edit name, scheduleRunTimes, retention counts, instantRpRetentionRangeInDays
az backup policy create -g rg-ops-bk --vault-name rsv-contoso-eus -n DailyAt23-Keep60 \
--backup-management-type AzureIaasVM --policy policy.json
az backup protection enable-for-vm -g rg-ops-bk --vault-name rsv-contoso-eus \
--vm vm-prod01 --policy-name DailyAt23-Keep60
Backup policies in a Backup vault
Backup vault policies are per data source type. Blobs: operational backup keeps continuous, local point-in-time restore (up to 360 days) inside the storage account; vaulted backup copies data to the vault on a daily or weekly schedule. Disks: incremental snapshots every few hours or daily, kept in a snapshot resource group. Start from the default template:
az dataprotection backup-policy get-default-policy-template --datasource-type AzureBlob > blob-policy.json
az dataprotection backup-policy create -g rg-ops-blob --vault-name bv-contoso-eus \
-n blob-policy --policy blob-policy.json
Architect level Protecting the backups themselves
Ransomware crews go after backups first. Layer the defences: soft delete (14 to 180 days, set it to always on so nobody can switch it off), immutable vaults (recovery points can’t be deleted before they expire; lock immutability to make it permanent), and multi-user authorization, which puts critical operations such as disabling soft delete or reducing retention behind a Resource Guard owned by a different team. Add a CanNotDelete lock on the vault’s resource group and alerts on security events.
Cost has two parts: a protected instance fee per VM (about $10 a month for a VM up to 50 GB, illustrative) and backup storage per GB, which is higher for GRS than LRS. Instant restore snapshots are billed as managed disk snapshots, so long snapshot retention adds up.
Real-world business scenario
Litware Accounting (fictional)
- The problem
- Twelve VMs across East US and West Europe had no backups, client documents sat in blob storage with only soft delete on the containers, and the auditor wanted seven years of year-end copies.
- What they used
- One Recovery Services vault per region (GRS with Cross Region Restore), a Standard VM policy with daily backups at 23:00, 30 daily points, 12 monthly and 7 yearly, and an Enhanced policy for the two Trusted Launch VMs. A Backup vault protected the document storage account with operational and vaulted blob backup after its identity got Storage Account Backup Contributor. Soft delete was set to always on and a Resource Guard owned by the security team protected retention changes.
- Why that choice
- Each data source went to the vault type built for it, the region rule was respected, and nobody, including a compromised admin account, could quietly shorten retention.
- The result
- The auditor signed off the retention plan, and a test restore of a year-old spreadsheet took under ten minutes.
When to use it and when not to
✓ Use it when…
- Azure VMs, Azure Files or SQL in a VM need point-in-time copies: a Recovery Services vault in the same region.
- Blobs, managed disks, PostgreSQL flexible servers or AKS need backup: a Backup vault.
- You need different schedules or retention for different workloads: one policy per pattern, many items per policy.
✕ Think twice when…
- One vault for VMs in several regions. It won't work for VM backup.
- Choosing redundancy later. Decide before the first item is protected.
- Treating backups as disaster recovery for a region outage. Restores take hours; use Site Recovery for minutes.
↔ Alternatives to consider
- Azure Site Recovery for region-level failover in minutes.
- Blob soft delete and versioning for quick undo inside a storage account.
- Azure Files share snapshots for quick file-level undo, alongside vault backup.
Test yourself with exercises
5 original practice questions in the AZ-104 style. Pick your answers, then check them. You will see why each option is right or wrong. Score 75% or more and this topic is marked complete.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner Which vault do you use for an Azure VM, and which for blob storage?
Model answer
A Recovery Services vault for the VM, and a Backup vault for blobs. Managed disks on their own, PostgreSQL flexible servers and AKS clusters also go to a Backup vault. Recovery Services vaults also host Site Recovery for disaster recovery.
Intermediate You created a vault in West US 2 and it doesn't appear when you configure backup for an East US VM. Why?
Model answer
For Azure VM backup the Recovery Services vault has to be in the same region as the VM. I'd create a vault in East US. If the business wants copies in another region, I'd use geo-redundant storage with Cross Region Restore on that East US vault.
Experienced developer What would you decide before protecting the first item in a new vault?
Model answer
Storage redundancy, because it's locked once items are protected: GRS if we need Cross Region Restore, LRS or ZRS if not and cost matters. Also soft delete and its retention, whether to make soft delete always on, immutability, and multi-user authorization with a Resource Guard for the security-critical settings.
Scenario Finance wants daily VM backups kept 30 days, month-end kept a year, and year-end kept seven years. How do you set the policy?
Model answer
A Standard VM policy with a daily backup at a quiet hour, daily retention 30 days, monthly retention on the last day for 12 months and yearly retention on the last day of December for 7 years. Instant restore at 2 days keeps quick restores fast without paying for long snapshot retention.
Quick revision
Key points
- Recovery Services vault - Azure VMs, SQL/SAP HANA in VMs, Azure Files, MARS, MABS/DPM, and Site Recovery.
- Backup vault - Azure Blobs, managed disks, PostgreSQL flexible server, AKS. Its managed identity needs a role on each data source.
- VM backup needs the vault in the VM's region. Redundancy (GRS default, LRS, ZRS) is set before protecting items; Cross Region Restore needs GRS.
- VM policies - Standard (daily) or Enhanced (every few hours, Trusted Launch). Instant restore 1-5 days (Standard) or up to 30 (Enhanced). Daily retention 7 to 9999 days, plus weekly, monthly, yearly.
- Soft delete is on by default for 14 days (up to 180). Always-on soft delete, immutable vaults and multi-user authorization add protection.
Important terminology
- Recovery Services vault
- The Azure Backup and Site Recovery vault for Azure VMs, SQL and SAP HANA in VMs, Azure Files, MARS and MABS/DPM backups.
- Backup vault
- The Azure Backup vault (Microsoft.DataProtection) for Azure Blobs, managed disks, PostgreSQL flexible server and AKS.
- Backup policy
- The schedule and retention rules that one or more protected items follow.
- Standard and Enhanced policy
- VM backup policy types. Standard backs up once a day; Enhanced can back up every 4, 6, 8 or 12 hours and is needed for Trusted Launch VMs.
- Instant restore
- Snapshots kept next to the VM's disks for fast restores, 1 to 5 days on Standard and up to 30 days on Enhanced.
- Backup storage redundancy
- How the vault stores backup data (LRS, ZRS or GRS). It can only be changed before items are protected.
- Cross Region Restore
- A GRS vault option that lets you restore in the paired region at any time.
- Soft delete
- Keeps deleted backup data for 14 days by default (configurable up to 180) so it can be recovered.
Common mistakes
- Creating one vault for VMs in several regions.
- Trying to change storage redundancy after backups are configured.
- Putting blob or standalone disk backups in a Recovery Services vault.
Exam tips
- "Back up blob containers" or "managed disk snapshots on a schedule" = Backup vault. "Back up a VM", "Azure Files" or "Site Recovery" = Recovery Services vault.
- "Restore in the secondary region whenever we want" = GRS + Cross Region Restore.
- "Back up every 4 hours" or "Trusted Launch VM" = Enhanced policy.
Five quick revision questions
-
1.Which vault type hosts Azure Site Recovery?Show
The Recovery Services vault.
-
2.What's the default backup storage redundancy of a new Recovery Services vault?Show
Geo-redundant storage (GRS).
-
3.How long does soft delete keep deleted backup data by default?Show
14 days.
-
4.What's the minimum daily retention for an Azure VM backup policy?Show
7 days.
-
5.Which role does a Backup vault's identity need to back up blobs?Show
Storage Account Backup Contributor on the storage account.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Back Up and Restore, Backup Reports and Alerts
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.