Backup & Restore
VM backup · Standard and Enhanced policies · Instant Restore · restore options · roles · alerts · reports
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
How Azure VM backup works
- A snapshot is taken, then the data is transferred to the Recovery Services vault. Backups are incremental (changed blocks) and disks are processed in parallel.
- The first backup installs a backup extension if the VM is running: VMSnapshot (Windows) or VMSnapshotLinux (Linux). Windows uses VSS for app-consistent snapshots.
- Backups run even when the VM is shut down. The recovery point is crash-consistent. The temporary disk and memory state aren't backed up.
- A scheduled backup starts within 2 hours of the scheduled time. The daily backup takes under 24 hours (the first can take longer). Billing starts after the first successful backup.
| Consistency | When you get it |
|---|---|
| Application-consistent | VSS writers (Windows) or pre/post scripts (Linux) |
| File-system consistent | Default fallback, and Linux without scripts |
| Crash-consistent | VM is stopped, app or file backups fail, or the agentless option is used |
Standard vs Enhanced policy
| Standard | Enhanced | |
|---|---|---|
| Frequency | Minimum RPO 1 day | Hourly, daily or weekly. Hourly: every 4, 6, 8, 12 or 24 hours (minimum RPO 4 hours) |
| Instant Restore snapshot retention | Default 2 days, range 1–5 | Default 7 days, range 1–30; can't exceed vault retention |
| Ultra Disk, Premium SSD v2 | Not supported | Supported |
| Other | Weekly policies: snapshot retention fixed at 5 days | Zone resiliency (ZRS) for Instant Restore snapshots. Default retention: daily 180 days, weekly 12 weeks, monthly 60 months, yearly 10 years |
- Instant Restore keeps snapshots locally. It can't be disabled. Restoring from a "snapshot and vault" recovery point uses the local snapshot, which is faster.
- With Enhanced hourly backups, the maximum snapshot retention shrinks as snapshots per day grow: 17 days at a 4-hour interval, 22 days at 6 hours, 30 days at 12 hours.
- The Instant Restore page also contains an older sentence saying Enhanced retention varies from 5 to 20 days. Microsoft's own policy pages say 1–30, so use 1–30.
- An Enhanced VM can't go back to Standard. The Enhanced policy page says a non-Trusted Launch VM on Standard can't start using Enhanced in the CLI section, but also that migration from Standard to Enhanced is in preview, so Microsoft's page differs here.
- For hourly backups, the last backup of the day is transferred to the vault.
- Minimum daily retention is 7 days. Each policy can protect up to 100 VMs.
- Modifying a policy: extending retention keeps existing points under the new policy; reducing retention prunes points at the next cleanup (garbage collection about every 24 hours).
Enable backup and roles
- Portal: Recovery Services vault › Backup (or VM › Backup) › choose a policy › select VMs › Enable backup. The list shows only VMs in the vault's region that aren't already backed up.
- Enable VM backup: Backup Operator on the vault's resource group plus Virtual Machine Contributor on the VM. Across subscriptions: Backup Operator in the vault subscription, Virtual Machine Contributor on the VM.
- Create, modify or delete policies, and stop backup: Backup Contributor on the vault.
- On-demand backup and restore: Backup Operator on the vault.
- Restore a VM also needs Contributor on the target resource group, Virtual Machine Contributor on the source VM, and Storage Account Contributor on the staging or target storage account.
- On-demand backup needs a scheduled policy attached. You choose the retention when you trigger it (the portal default is 30 days).
- Don't put a lock on the service-owned resource group
AzureBackupRG_<geo>_<number>: locks break backups.
Restore options
| Option | Notes |
|---|---|
| Create new VM | Quick basic VM. Doesn't add the VM to an availability set |
| Restore disks | The VM isn't created: restore the disks, then use a template or create a VM. Use this to customize the VM or place it in an availability set |
| Replace existing | The VM must still exist and be powered off, or the pre-check fails with UserErrorVmNotShutDown. Use it only after the Transfer Data to Vault subtask has finished for that point |
| Cross Region Restore | Restore into the secondary region. The staging storage account must be in the secondary region |
| Cross Subscription Restore | Enable it on the vault first. Not supported from snapshot-tier recovery points or for encrypted VMs |
| Cross Zonal Restore | Needs a ZRS vault (or CRR). Not supported from snapshot-tier recovery points or for encrypted VMs |
| File recovery (script) | Restoring files or folders from an encrypted VM backup isn't supported: restore the whole VM |
- Portal steps: vault › Backup items › Azure Virtual Machine › the VM › Restore VM › choose a recovery point › Create new or Replace existing › restore type (Create virtual machine or Restore disks) › staging location › Restore. Watch progress in Backup jobs.
- The staging storage account must be in the same region as the vault (the secondary region for CRR). Blob Storage accounts aren't supported. Premium accounts with network rules aren't supported for managed-VM restore.
- Restoring to the original location keeps the backup configuration. Restoring to an alternate location doesn't: you must set a policy.
- A restore job can be cancelled until the data transfer phase ends. A VM can be restored 20 times per 24 hours.
- Restore disks with PowerShell needs
TargetResourceGroupNamefor managed disks.
Stop protection and move a VM
- Stopped protection with retained data stays until you delete it, and billing continues while data is kept. You can't change retention of stopped backups: resume protection and assign a policy instead.
- To move a protected VM to another resource group: stop backup with retain data, delete the restorePointCollection in
AzureBackupRG_<location>_1(show hidden types), move the VM, resume. After the move it is a new item for Backup.
Monitoring, alerts and reports
- Built-in monitoring is on the Resiliency, Recovery Services vault or Backup vault Overview panes (alerts, jobs, security, usage).
- Built-in Azure Monitor alerts are generated by default for deletion of backup data, disabling of soft delete, backup failures and restore failures. Backup alerts aren't created by alert rules. To notify people, attach an action group with an alert processing rule. Use suppression in a processing rule for maintenance windows.
- Alert categories: Datasource alerts (tied to a datasource, such as a VM backup failure) and Global alerts (not tied to one, such as disabling soft delete). Each is split into Security alerts (deleting backup data, disabling soft delete) and Configured alerts (backup failure, restore failure).
- Five severity levels: Critical, Error, Warning, Informational, Verbose. Job-failure alerts are on by default and can be turned off in the vault's Monitoring Settings.
- Alerts for critical operations are free; email notifications above 1000 a month are charged. A built-in alert is generated for every backup failure.
- Classic alerts are the older solution. Microsoft tells you to migrate to Azure Monitor alerts, which needs Backup Contributor and Monitoring Contributor on the subscription.
- Reports use Azure Monitor Logs and workbooks. Send the vault's diagnostic settings to a Log Analytics workspace (any subscription or region; a built-in Azure Policy can configure this at scale). The default workspace retention is 30 days: raise it to keep more history.
- Reports exclude the current partial day. The first data can take up to 24 hours; view reports after 2 days. SQL log jobs aren't shown.
- Out-of-the-box reports: Backup Configuration Status, Backup Job History, Backup Schedule and Retention, User Triggered Operations, Azure Site Recovery Job History and Replication History. The Power BI template app is on a deprecation path.
Commands
| Task | Azure CLI | PowerShell |
|---|---|---|
| Enable backup | az backup protection enable-for-vm --policy-name P --resource-group RG --vault-name V --vm VM (pass the full ARM ID for a VM in another subscription) | Enable-AzRecoveryServicesBackupProtection -Policy $Pol -Name VM -ResourceGroupName RG -VaultId $id |
| Restore disks | az backup restore restore-disks --container-name C --item-name I --resource-group RG --rp-name RP --storage-account SA --vault-name V | — |
| Stop protection and delete data | az backup protection disable ... --delete-backup-data true | Disable-AzRecoveryServicesBackupProtection -Item $item -RemoveRecoveryPoints |
| Instant Restore retention | — | $pol.SnapshotRetentionInDays=5 then Set-AzRecoveryServicesBackupProtectionPolicy -policy $pol |
| Diagnostics for reports | az monitor diagnostic-settings create on the vault | New-AzDiagnosticSetting |
Limits
| Item | Value |
|---|---|
| Minimum daily retention | 7 days |
| Maximum retention | Daily 9999 days; weekly 5163 weeks; monthly 1188 months; yearly 99 years |
| VMs per policy | 100 |
| Restores of the same VM per 24 hours | 20 |
| Disk size | Up to 64 TB each; 512 TB total per VM |
| Tags restored | Up to 50 |
| Free space for the first backup with Instant Restore on premium storage | 50% recommended |
Exam Tips
Tick each tip once you can answer it without looking.
“Back up VMs more than once a day” → Enhanced policy (hourly, every 4, 6, 8, 12 or 24 hours). Trap: Standard, whose minimum RPO is 1 day.
“Default Instant Restore retention with a Standard policy” → 2 days (range 1–5). Trap: 7 days, which is the Enhanced default (range 1–30).
“Daily retention shorter than 7 days” → Not allowed: the minimum is 7 days. Trap: a 1-day policy.
“Back up a VM that is shut down” → Works, with a crash-consistent recovery point. Trap: assuming the backup fails.
“Restore a VM with a custom size and place it in an availability set” → Restore disks, then deploy a template. Trap: Create new VM, which doesn't add the VM to an availability set.
“Replace the disks of an existing VM” → Replace existing: the VM must exist and be powered off. Trap: using it after the VM was deleted.
“The VM was deleted; recover it” → Restore from a recovery point in the vault as a new VM. Trap: Replace existing, which needs the VM to exist.
“Restore fails with UserErrorVmNotShutDown” → Power off the VM before replacing disks. Trap: stopping the backup.
“Restore into another subscription in the same tenant” → Enable Cross Subscription Restore on the vault; not possible from snapshot-tier points or for encrypted VMs. Trap: Cross Region Restore.
“Restore a zone-pinned VM into a different zone” → Cross Zonal Restore from a ZRS vault. Trap: an LRS vault.
“Restore into the paired region during an outage test” → Cross Region Restore, with the staging storage account in the secondary region. Trap: staging storage in the primary region.
“Restore single files from an encrypted VM backup” → Not supported: restore the whole VM. Trap: the file recovery script.
“Backups fail after a delete lock on AzureBackupRG_*” → Remove the lock and clean up the restore point collection. Trap: increasing policy retention.
“Stop protection but retain data: cost?” → Billing continues until the data is deleted. Trap: assuming billing stops.
“More than 100 VMs on one policy” → Create additional policies (limit is 100 VMs per policy). Trap: assuming the limit is unlimited.
“VM missing from the Enable backup wizard” → The wizard lists only VMs in the vault's region that aren't already backed up. Trap: a missing permission.
“Keep 6 months of backup report history” → Send vault diagnostics to Log Analytics and raise the workspace retention (default 30 days). Trap: expecting reports to keep data on their own.
“Email the team on VM backup failures” → Built-in alerts plus an alert processing rule that applies an action group. Trap: building an alert rule on a backup alert: backup alerts aren't created by alert rules.
“Can run restores but must not delete backup data or stop backup” → Backup Operator. Trap: Backup Contributor, which creates, modifies and deletes policies and stops backup.
“After restoring to an alternate location, the VM isn't backed up” → Alternate-location restore doesn't keep the policy: configure backup. Trap: expecting the original-location behavior.
Sources
- About Azure VM backup
- Restore VMs by using the Azure portal
- FAQ: backing up Azure VMs
- Azure Instant Restore capability
- Back up Azure VMs with the Enhanced policy
- Manage backups with Azure RBAC
- Monitor Azure Backup protected workloads
- Azure Backup alerts
- Move to Azure Monitor based alerts
- Configure Azure Backup reports
- Delete a Recovery Services vault
- Alert processing rules
Checked against Microsoft Learn on November 13, 2026.