Backup Vaults
Recovery Services vault · Backup vault · redundancy · Cross Region Restore · soft delete · customer-managed keys · deleting a vault
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Recovery Services vault vs Backup vault
| Recovery Services vault | Backup vault | |
|---|---|---|
| Backs up | Azure VMs (Windows and Linux), SQL Server in Azure VMs, SAP HANA in Azure VMs, Azure Files, MARS agent, DPM, MABS | Newer workloads: Azure Blobs, Azure Database for PostgreSQL, disks (and others added later) |
| Also hosts | Azure Site Recovery | — |
| Cross Region Restore | Azure VMs, SQL and SAP HANA in VMs | Azure Database for PostgreSQL |
| Access to sources | — | Managed identity (system-assigned or user-assigned) for source resources. For encryption keys, Microsoft's page says Azure Backup uses the Backup Management Service app to reach Key Vault, not the vault's managed identity |
Both vault types are Azure Resource Manager based, support Azure RBAC (three built-in backup roles) and keep data isolated: backup data is stored in a Microsoft-managed subscription and tenant.
Create a Recovery Services vault
- Portal: search Resiliency › Vault › + Vault › Recovery Services vault › Continue › subscription, resource group, vault name, region › Review + create › Create.
- Name: unique in the subscription, 2–50 characters, starts with a letter, letters, numbers and hyphens only.
- Region: the vault must be in the same region as the data source. Workloads in several regions need one vault per region.
- Microsoft's pages differ on which role can create a vault. The Azure Backup RBAC page lists Backup Contributor on the resource group as the minimum role to create a Recovery Services vault, but the built-in roles page describes Backup Contributor as unable to create vaults (while its role definition includes the vault write action). The Site Recovery tutorial says admin or owner permissions on the subscription are enough to create a vault.
- Backup vault creation is not covered by the pages used for this topic, so no portal steps or commands are listed here.
Storage redundancy and Cross Region Restore
- Default redundancy is geo-redundant (GRS). Options: GRS, LRS, ZRS.
- Set it at Settings › Properties › Backup Configuration › Update, and only before you configure a backup. Once items are protected the option is disabled.
- To move GRS to LRS after backups exist, either delete protection and data in the GRS vault and reconfigure in a new LRS vault, or stop protection with retain data, move the VM to another resource group and protect it in the new vault.
- Cross Region Restore (CRR) lets you restore from the secondary region at any time, for example for a drill. Without it, GRS secondary data is used only when Microsoft declares a disaster.
- Enable CRR at Properties › Backup Configuration › Update › Cross Region Restore. It needs a GRS vault. It can't be reverted to GRS or LRS after protection starts. Items can take up to 48 hours to appear in the secondary region.
- With CRR, the worst-case secondary-region RPO for an Azure VM is up to 36 hours (24 hours primary plus 12 hours replication, Standard policy).
- Cross Subscription Restore is enabled at Properties › Cross Subscription Restore › Update.
- For Azure Files snapshot backup, the snapshots stay in the source storage account, so the vault redundancy setting is irrelevant to them.
Protecting the vault
| Feature | What it does | Key points |
|---|---|---|
| Soft delete | Deleted backup data is kept and can be recovered | 14 days by default at no cost; configurable 14–180 days (enhanced soft delete); extra days are billed. Enforced by default (secure by default) |
| Immutable vault | Prevents deleting recovery points before they expire | Immutability can be made irreversible |
| Customer-managed keys | Encrypt with your RSA keys in Key Vault instead of platform-managed keys | Set before any item is protected; once enabled it can't be reversed (Recovery Services vault) |
Soft delete is on and can't be turned off
- The newer secure-by-default article (page dated Aug 14, 2026) says soft delete is enforced and a soft-delete state can no longer be modified from the Azure portal. You can't disable it where secure-by-default is in preview or GA. For Recovery Services vaults, where secure by default is GA, disabling soft delete is not allowed for any module or API version.
- Recovery Services vault: GA in all Azure public regions and national clouds. Backup vault: GA in Australia East, West Central US and East Asia, public preview elsewhere. In the other regions you can still disable soft delete from the portal for a Backup vault.
- Microsoft's pages differ here. The secure-by-default intro still says enforcement is in preview for Recovery Services vaults, while its region table says GA. The older delete a vault article (Dec 9, 2025) still lists a step to disable soft delete "if enabled". Treat that step as applying only where soft delete can still be disabled.
Customer-managed key setup
- Order: enable a managed identity on the vault › give it key permissions in Key Vault › enable soft delete and purge protection in Key Vault › assign the key to the vault.
Deleting a Recovery Services vault
- You can't delete a vault that still has protected items, backup data, soft-deleted data (14 days by default), or registered storage accounts. Site Recovery replicated items must also be cleaned up before deletion.
- Order: get multi-user authorization approval if enabled › disable soft delete and security features only where that is still possible (see above) › stop backup and delete data for each item › unregister MARS, MABS and DPM servers › unregister storage accounts › remove private endpoints › Delete.
- With secure by default, a vault that is empty or holds only soft-deleted items can enter a soft-deleted state. Before deleting, stop backups, clean up registrations, disable replication of Site Recovery items and remove private endpoints.
- The security PIN used to delete MARS, DPM or MABS backups is valid for 5 minutes.
Commands
| Task | Azure CLI | PowerShell |
|---|---|---|
| Delete vault | az backup vault delete --name V --resource-group RG --force --yes (VM backups only) | Remove-AzRecoveryServicesVault -Vault $vault |
| Stop protection and delete data | az backup protection disable --container-name C --item-name I --delete-backup-data true --vault-name V --resource-group RG --yes | Disable-AzRecoveryServicesBackupProtection -Item $item -RemoveRecoveryPoints -Force |
| Unregister MARS or MABS | — | Unregister-AzRecoveryServicesBackupContainer, Unregister-AzRecoveryServicesBackupManagementServer |
Limits
| Item | Value |
|---|---|
| Vault name | 2–50 characters, starts with a letter |
| Soft delete retention | 14 days default (no cost), up to 180 |
| Maximum retention (VM backup) | Daily 9999 days; weekly 5163 weeks; monthly 1188 months; yearly 99 years |
| VMs per backup policy | 100 |
| Configure or modify protections per vault per day | 1000 |
Exam Tips
Tick each tip once you can answer it without looking.
“Back up Azure VMs, SQL Server in a VM or Azure Files” → Recovery Services vault. Trap: a Backup vault holds the newer workloads (blobs, PostgreSQL, disks).
“Back up Azure Blobs or Azure Database for PostgreSQL” → Backup vault. Trap: a Recovery Services vault.
“VMs in two regions” → One vault per region, each in the same region as its data. Trap: a single vault for both regions.
“Default storage redundancy of a new Recovery Services vault” → GRS (options are GRS, LRS, ZRS). Trap: assuming LRS.
“Switch the vault to LRS after VMs are protected” → The option is disabled: delete protection and data and reconfigure in a new LRS vault, or stop protection with retain data, move the VM to another resource group and protect it in the new vault. Trap: changing it in Properties.
“Restore an Azure VM in the paired region on demand, for a drill” → GRS vault with Cross Region Restore enabled. Trap: GRS alone, whose secondary data is used only when Microsoft declares a disaster.
“Enable Cross Region Restore on an LRS vault” → Not supported: it needs a GRS vault. Trap: just ticking Enable.
“Cross Region Restore enabled; items missing in the secondary region” → They can take up to 48 hours to appear.
“When must customer-managed keys be configured?” → Before any item is protected; it can't be reversed. Trap: configuring it after the first backup.
“Customer-managed key setup order” → Managed identity › Key Vault permissions › Key Vault soft delete and purge protection › assign the key. Trap: skipping purge protection in Key Vault.
“Admin tries to disable soft delete on a new Recovery Services vault” → Not allowed (enforced by default); you can only change retention, 14–180 days. Trap: toggling soft delete off in Properties › Security Settings.
“A backup item was deleted by mistake yesterday” → Recover it from the soft-deleted state (14 days by default). Trap: treating the backup as permanently lost.
“Soft delete retention set to 60 days: what is free?” → 14 days are free; normal backup charges apply to the other 46 days. Trap: assuming all 60 days are free.
“Vault deletion fails because of soft-deleted items” → Let them expire or undelete and permanently delete them; also unregister storage accounts and remove private endpoints. Trap: deleting the VMs.
“Vault deletion fails because Site Recovery items exist” → Disable replication for the Site Recovery items first. Trap: only stopping backup.
“Stop recovery points being deleted before they expire” → Immutable vault. Trap: soft delete only, which lets you recover deleted data but doesn't block the delete.
“Vault name my_vault” → Invalid: letters, numbers and hyphens only, starting with a letter. Trap: assuming underscores are allowed.
“Vault redundancy for Azure Files snapshot backup” → Doesn't apply: the snapshots stay in the source storage account. Trap: expecting the vault GRS setting to replicate the snapshots.
Sources
- Overview of Recovery Services vaults
- Overview of Backup vaults
- Create and configure Recovery Services vaults
- Delete a Recovery Services vault
- Secure by default with soft delete
- Manage backups with Azure RBAC
- Azure built-in roles: Storage (Backup Contributor)
- FAQ: backing up Azure VMs
Checked against Microsoft Learn on November 13, 2026.