Azure Backup for Virtual Machines and Files: Recovery Services Vaults, Policies, Restore Options and Soft Delete

Microsoft Certified Azure Administrator Associate AZ 103 60 min min read Updated: Nov 17, 2026 Intermediate
Azure Backup for Virtual Machines and Files: Recovery Services Vaults, Policies, Restore Options and Soft Delete
Intermediate Topic 1 of 3

What Azure Backup Protects

  • Azure VMs (whole VM or disks)
  • Azure Files shares
  • SQL Server and SAP HANA inside VMs
  • On-premises files and servers with the MARS agent, DPM or MABS
  • Blobs, managed disks, PostgreSQL, AKS (using a Backup vault)

Vaults

VaultUse
Recovery Services vaultVMs, Azure Files, SQL/SAP in VMs, on-premises
Backup vaultDisks, blobs, PostgreSQL, AKS
  • Create the vault in the same region as the VMs you back up (for Azure VM backup)
  • Choose storage redundancy before the first backup: LRS, ZRS or GRS (GRS can enable cross-region restore)
bash az backup vault create -g rg-bkp -n rsv-prod --location centralindia az backup vault backup-properties set -g rg-bkp -n rsv-prod --backup-storage-redundancy GeoRedundant --cross-region-restore-flag true

Policies

  • A policy defines schedule (daily or weekly, time) and retention (days, weeks, months, years)
  • Instant restore snapshots are kept for 1 to 5 days for fast restores
  • Use the Enhanced policy for multiple backups per day and Trusted Launch VMs (check current features)
bash az backup policy list -g rg-bkp -v rsv-prod -o table az backup protection enable-for-vm -g rg-bkp -v rsv-prod --vm $(az vm show -g rg-vm -n web01 --query id -o tsv) --policy-name DefaultPolicy az backup protection backup-now -g rg-bkp -v rsv-prod -c web01 -i web01 --backup-management-type AzureIaasVM --workload-type VM --retain-until 31-12-2026 az backup job list -g rg-bkp -v rsv-prod -o table

Restore Options for VMs

OptionResult
Create new VMRestore to a new VM (safest, good for tests)
Restore disksRestore disks only, then build a VM or replace disks
Replace existingSwap disks of the existing VM
File recoveryMount a recovery point as a drive using a script, then copy files
Cross-region restoreRestore in the paired region if the primary is down
bash az backup recoverypoint list -g rg-bkp -v rsv-prod -c web01 -i web01 --backup-management-type AzureIaasVM --workload-type VM -o table az backup restore restore-disks -g rg-bkp -v rsv-prod -c web01 -i web01 --rp-name <recovery-point-name> --storage-account stbkprestore482 --restore-mode AlternateLocatio

Azure Files and On-Premises

  • Azure Files backup uses share snapshots with policy-driven retention
  • MARS agent backs up files and folders from Windows servers to the vault. Use a passphrase and keep it safe, because you need it to restore

Protection From Deletion

  • Soft delete keeps deleted backup data for 14 days (default, extendable) at no extra cost
  • Immutable vaults and multi-user authorization (Resource Guard) stop malicious deletion
  • Alerts and reports on failed jobs. Use Backup center for a single view
Test restores A backup that was never restored is untested. Schedule restore drills and record how long they take.

Practice

  1. Create a vault and back up a VM using the default policy
  2. Run Backup now and watch the job
  3. Use file recovery to restore one file
  4. Restore a VM to a new name

Conclusion

Create a vault in the right region with the right redundancy, protect resources with policies, know the restore options and keep soft delete and immutability on. Test restores regularly.

Quick Summary: protected items; vaults; policies; restore; files and on-prem; protection.

Get Newsletter

Subscibe to our newsletter and we will notify you about the newest updates on Edugators