Azure Backup for Virtual Machines and Files: Recovery Services Vaults, Policies, Restore Options and Soft Delete
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
| Vault | Use |
|---|---|
| Recovery Services vault | VMs, Azure Files, SQL/SAP in VMs, on-premises |
| Backup vault | Disks, 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
| Option | Result |
|---|---|
| Create new VM | Restore to a new VM (safest, good for tests) |
| Restore disks | Restore disks only, then build a VM or replace disks |
| Replace existing | Swap disks of the existing VM |
| File recovery | Mount a recovery point as a drive using a script, then copy files |
| Cross-region restore | Restore 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
- Create a vault and back up a VM using the default policy
- Run Backup now and watch the job
- Use file recovery to restore one file
- 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.

