Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Lesson 45 of 47
❮Prev Next❯

Recovery Services Vaults, Backup Vaults and Backup Policies

Module 5: Monitor & Backup ⏱ 12 min read Updated

Your note

My notes for this lesson

Select any text in the lesson to highlight it or add a note. Saved in this browser.

    No highlights yet. Select a sentence in the lesson, then pick a colour or add a note.

    All my bookmarks and notes

    Reading settings

    For every lesson, saved in this browser.

    Text size
    Line spacing
    Font

    With IaaS you rent the virtual machine. Microsoft looks after the building, power and hardware; you patch the operating system.

    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 needed

    Exam 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.

    Azure portal: Create a Recovery Services vault and a backup policy Create a vault, set redundancy and build a backup policy.
    </> Embed

    Embed this simulation

    Free for trainers, teachers and bloggers. Paste this into your page:

    Loading the portal…

    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
    1. Search for Recovery Services vaults. You can also start from Business Continuity Center.
    2. Type recovery services in the search bar and pick Recovery Services vaults under Services.
    3. Select + Create.
    4. 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.
    5. Geo-redundant is the default and allows Cross Region Restore. Choose now: once items are protected, redundancy is locked.
    6. Soft delete is on by default and keeps deleted backup data for 14 days. Create, then go to the vault.
    7. Open Manage → Backup policies. Select + Add, then Azure Virtual Machine.
    8. 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.
    9. 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.

    😟 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
    🛠️ Solved with: Backup vaults and policies

    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 vaultBackup vault
    ProtectsAzure VMs, SQL Server in Azure VMs, SAP HANA in Azure VMs, Azure Files, on-premises files and folders (MARS agent), MABS and DPMAzure Blobs (operational and vaulted backup), managed disks, Azure Database for PostgreSQL flexible server, AKS
    Also doesAzure Site Recovery replication—
    Resource typeMicrosoft.RecoveryServices/vaultsMicrosoft.DataProtection/backupVaults
    CLIaz backup …az dataprotection …
    Access to the dataAzure Backup service handles VM snapshotsThe 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.

    SettingStandardEnhanced
    FrequencyDaily (or weekly)Every 4, 6, 8 or 12 hours, or daily
    Instant restore snapshots1 to 5 days (default 2)1 to 30 days (default 7)
    Needed forMost VMsTrusted 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

    Professional services

    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.
    Ready for more?The full lesson adds the technical explanation, when to use it, interview questions and revision notes.

    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.

    Question 1

    Question 1 of 5

    You have virtual machines in the East US and West Europe regions. You need to back up all the virtual machines by using Azure Backup. What is the minimum number of Recovery Services vaults that you must create?

    Question 2

    Question 2 of 5 · Select 2

    You create a Recovery Services vault. You must be able to restore virtual machines in the paired region at any time. Which two settings should you configure before you protect any items? Each correct answer presents part of the solution.

    Question 3

    Question 3 of 5

    You need to back up the blobs in a storage account and several managed disks that are not attached to protected virtual machines. What should you create?

    Question 4

    Question 4 of 5

    You configure blob backup in a Backup vault named BV1 for a storage account named st1. Configuration fails with a permissions error. What should you do?

    Question 5

    Question 5 of 5

    You need a backup policy for Azure virtual machines that backs up every four hours and supports Trusted Launch virtual machines. Instant restore snapshots must be kept for 10 days. What should you configure?

    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. 1.Which vault type hosts Azure Site Recovery?Show

      The Recovery Services vault.

    2. 2.What's the default backup storage redundancy of a new Recovery Services vault?Show

      Geo-redundant storage (GRS).

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

      14 days.

    4. 4.What's the minimum daily retention for an Azure VM backup policy?Show

      7 days.

    5. 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

    Studying with a friend? Send them this lesson

    It's free and needs no sign-up. Their progress saves in their own browser.

    Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges. Play ❯

    Install MSDEVBUILD Azure

    Free · no account · works offline

    Save the whole course for offline ›

    Hi, I’m your Nimbus

    Your study buddy. Pick what we do next.

    MSDEVBUILD · Multi-Stack Dev Build

    Sign in to MSDEVBUILD

    One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.