Back Up and Restore, Backup Reports and Alerts
30-second answer
With a VM protected, you can run Backup now with a retain until date, and every backup or restore shows up in Backup Jobs. To restore a VM you pick a recovery point and then Create new virtual machine, Restore disks (then build the VM yourself), or Replace existing (swap the disks of the existing VM). File Recovery mounts a recovery point through a script so you copy back single files. Deleted backup data stays in soft delete for 14 days and can be undeleted. Backup reports need the vault's logs sent to a Log Analytics workspace in resource-specific mode, and Azure Monitor alerts (built-in for job failures and security events, or metric alerts on backup health) notify people through action groups.
Simulate it » No Azure account neededExam objective: 5.2.4 Perform backup and restore operations by using Azure Backup. 5.2.7 Configure and interpret reports and alerts for backups. (Skills measured as of April 17, 2026)
Simulations
Feel it before you read it. No account needed, nothing leaves this page.
From the VM, open <strong>Backup + disaster recovery → Backup</strong>, pick the vault and the policy, and <strong>Enable backup</strong>.
👆 Click the glowing item in the portal to continue
Read the steps as text
- From the VM, open Backup + disaster recovery → Backup, pick the vault and the policy, and Enable backup.
- Don’t wait for 23:00. In Backup items, select Backup now.
- Set how long to keep this on-demand point. The job takes a snapshot first (instant restore), then copies it to the vault.
- Later, someone breaks the VM. Restore VM: pick a restore point, then either Create new (a new VM or just its disks) or Replace existing (swap the disks, keep the VM’s name and IP).
- Need one file? File Recovery mounts a recovery point as drives on a VM through a script. Copy the file, then unmount. Nothing else changes.
- Backup Jobs shows each backup and restore. For reports across vaults you need the vault’s logs in a workspace.
- Add a diagnostic setting with the Addon categories and Resource specific destination tables. That’s what Backup reports read.
- Backup Reports show summary, items, usage, jobs and policies across vaults. Failures also raise Azure Monitor alerts you can send to ag-ops.
🧪 Simulation for learning. Screens are simplified versions of the Azure portal; names, prices and IDs are examples. Nothing here touches real Azure.
🖱️ Drag to rotate · scroll or pinch to zoom
Restore, and soft delete
Restore files by mounting a recovery point, create a new VM, restore disks, or replace existing disks. Soft delete keeps deleted backup data for 14 days at no cost, so a mistake or an attacker can be undone.
🤔 What happens if…
Read this tour as text
- Platform metrics arrive on their own. Every Azure resource sends platform metrics (Percentage CPU, Transactions, Availability) to Azure Monitor about once a minute, with no agent and no setting. Metrics explorer charts them. Azure keeps them for 93 days.
- Resource logs need a diagnostic setting. Resource logs (StorageRead, AuditEvent, NSG events) are thrown away until a diagnostic setting routes them to a Log Analytics workspace, a storage account or Event Hubs. The activity log records who changed what in the subscription and keeps it 90 days.
- Ask the workspace with KQL. Logs land in tables in the workspace: AzureDiagnostics, StorageBlobLogs, AzureActivity, InsightsMetrics. KQL reads top to bottom through pipes:
wherefilters,summarize count() by bin(TimeGenerated, 5m)groups,render timechartdraws. - Alert rule fires into an action group. An alert rule watches a signal (a metric, a log query, the activity log) and fires when the condition holds. It hands the alert to an action group: email, SMS, push, voice, a webhook, a Logic App, a Function or an ITSM ticket.
- Alert processing rules. An alert processing rule acts on alerts that already fired. Suppress notifications during a maintenance window, or apply an action group to every alert in a scope. The alert still shows in Alerts; only the notifications change.
- Insights and Connection monitor. VM insights collects performance and a connection map through the Azure Monitor Agent and a data collection rule. Network Watcher Connection monitor runs TCP, HTTP or ICMP tests from an agent on the source VM and records failures and round-trip time.
- Back up to a vault on a schedule. A Recovery Services vault in the same region as the VM backs it up on a backup policy: when to run, how long to keep instant-restore snapshots and daily, weekly, monthly and yearly points. A Backup vault protects blobs, disks, PostgreSQL flexible servers and AKS.
- Restore, and soft delete. Restore files by mounting a recovery point, create a new VM, restore disks, or replace existing disks. Soft delete keeps deleted backup data for 14 days at no cost, so a mistake or an attacker can be undone.
- Site Recovery: replicate and fail over. Azure Site Recovery replicates a VM’s disks to another region, into a Recovery Services vault in the target region. A test failover builds a copy in an isolated network. A real failover is followed by commit and re-protect.
Contoso's ERP VM has no backup. Build a vault in the right region, give it a nightly policy with 60 days of retention, take the first backup, restore one file and a whole VM, send the vault's logs to a workspace for reports, then see how soft delete saves you when someone deletes the backups.
🎓 Education-only simulation. Your lab is saved in this browser, so you can leave and continue later.
😟 THE PROBLEM
Someone deleted one spreadsheet, and someone else deleted all the backups.
😊 THE SOLUTION
Restore just the file, and undelete the backups from soft delete.
- Whole-VM restore for one file✓ File Recovery
- Backups deleted by an attacker✓ Soft delete for 14 days
- No view across 40 vaults✓ Backup reports and Azure Monitor alerts
Start with a question
Your phone backs up every night. You lost one photo. Do you wipe the phone and restore everything?
Of course not. You open the backup, find the photo and save it back. You’d only restore the whole phone if it was broken or stolen, and if you were setting up a new phone you’d restore onto that one instead.
Azure Backup gives you the same choices for a VM: copy back one file, build a new VM next to the old one, restore just the disks, or replace the broken VM’s disks. And because a backup you never check isn’t worth much, Backup reports and alerts tell you when a night’s backup didn’t happen.
Explain it like I’m 10
The technical explanation
Back up now and watch the jobs
The policy runs backups on schedule, but you can start one any time: vault > Protected items > Backup items > Azure Virtual Machine > the VM > Backup now, and set Retain Backup Till. A VM backup has two phases: a snapshot (ready for instant restore in minutes) and the transfer to vault. Track both in Monitoring > Backup Jobs.
az backup protection backup-now -g rg-ops-bk --vault-name rsv-contoso-eus \
-c vm-prod01 -i vm-prod01 --backup-management-type AzureIaasVM --retain-until 31-12-2026
az backup job list -g rg-ops-bk --vault-name rsv-contoso-eus -o table
$item = Get-AzRecoveryServicesBackupItem -VaultId $v.ID -BackupManagementType AzureVM -WorkloadType AzureVM -Name vm-prod01
Backup-AzRecoveryServicesBackupItem -Item $item -VaultId $v.ID -ExpiryDateTimeUTC (Get-Date).AddDays(30)
Restore options for a VM
Select Restore VM, choose a restore point (crash-consistent, app-consistent or file-system consistent; snapshot tier, vault tier or both), then a configuration:
| Option | What happens | Pick it when |
|---|---|---|
| Create new > Create new virtual machine | A new VM with the name, resource group, VNet and subnet you choose | Fast side-by-side recovery, or a test copy |
| Create new > Restore disks | Managed disks plus a template land in a resource group | You need to change size, availability or network first, or attach disks to another VM |
| Replace existing | The existing VM’s disks are replaced; name, NIC and IP stay. Azure snapshots the current disks first | The VM is corrupted but its identity and network should stay the same |
| Cross Region Restore | Any of the above in the paired region | GRS vault with CRR enabled, and the primary region is unavailable or you want a copy there |
Restores need a staging storage account in the same region as the vault. Restores from the snapshot tier are much faster than from the vault tier.
az backup recoverypoint list -g rg-ops-bk --vault-name rsv-contoso-eus \
-c vm-prod01 -i vm-prod01 --backup-management-type AzureIaasVM -o table
az backup restore restore-disks -g rg-ops-bk --vault-name rsv-contoso-eus \
-c vm-prod01 -i vm-prod01 --rp-name <rp> --storage-account stopsrestore01 \
--target-resource-group rg-ops-bk --target-vm-name vm-prod01-restored \
--target-vnet-name vnet-prod --target-subnet-name app
# --restore-mode OriginalLocation replaces the existing VM's disks
File Recovery
File Recovery > pick a recovery point > Download Executable (Windows) or script (Linux), with a password shown once. Run it on the VM or any machine with a compatible OS. It mounts the recovery point’s volumes as local drives over iSCSI. Copy what you need, then Unmount Disks; the connection closes by itself after 12 hours. CLI: az backup restore files mount-rp and unmount-rp.
For Azure Files, restore the whole share or individual files and folders to the original or an alternate location. For blobs in a Backup vault, operational backup restores containers to a point in time; vaulted backup restores from vault copies.
Stop protection and soft delete
Stop backup either retains backup data (points stay, nothing new is taken) or deletes backup data. With soft delete on, deleted data stays in a soft-deleted state for 14 days by default at no charge. Undelete brings it back with all recovery points; then resume backup.
az backup protection disable -g rg-ops-bk --vault-name rsv-contoso-eus -c vm-prod01 -i vm-prod01 \
--backup-management-type AzureIaasVM --delete-backup-data true --yes
az backup protection undelete -g rg-ops-bk --vault-name rsv-contoso-eus -c vm-prod01 -i vm-prod01 \
--backup-management-type AzureIaasVM --workload-type VM
A vault can’t be deleted while it holds protected or soft-deleted items.
Backup reports
Backup reports are workbooks that read vault logs from Log Analytics, across vaults, subscriptions and tenants.
- Create (or reuse) a Log Analytics workspace.
- On each vault, add a diagnostic setting with CoreAzureBackup and the AddonAzureBackup* categories (Jobs, Alerts, Policy, Storage, ProtectedInstance), destination table Resource specific. Azure Policy has built-in definitions to deploy this to every vault.
- Open Business Continuity Center (or a vault’s Backup Reports blade), choose the workspaces, and read the tabs: Summary, Backup Items, Usage, Jobs, Policies, Optimize, Policy adherence.
Data can take up to 24 hours to appear the first time. You can also query the tables yourself, for example AddonAzureBackupJobs | where JobStatus == "Failed".
Backup alerts
- Built-in Azure Monitor alerts: Azure Backup raises alerts for security events (such as stopping backup with delete data, or soft delete being disabled) and job failures (backup and restore). They appear in Monitor > Alerts and Business Continuity Center. To get emails or SMS, create an alert processing rule that applies your action group to them.
- Metric alerts on the vault’s Backup Health Events and Restore Health Events metrics for custom conditions.
- Log search alerts on AddonAzureBackupJobs for anything else.
- The old classic backup alerts are being retired, so build on Azure Monitor alerts.
Architect level Test your restores
A backup that has never been restored is a guess. Schedule a quarterly restore test: restore a VM to an isolated VNet with Create new, check the app starts and the data is current, then delete the test VM. Track restore time against your recovery time objective. Restores from the snapshot tier take minutes; from the vault tier, longer, depending on disk size. If your RTO is tight, keep more days of instant restore snapshots or look at Site Recovery for that workload.
Real-world business scenario
Proseware Clinics (fictional)
- The problem
- A receptionist deleted a folder of referral letters on a file server VM, backups had silently failed for a week on another VM because its agent was broken, and nobody found out until a restore was needed.
- What they used
- File Recovery mounted the previous night's recovery point and the folder was copied back in fifteen minutes with the VM still running. All vaults got diagnostic settings (resource-specific) to one workspace through Azure Policy, Backup reports showed the failing VM, and an alert processing rule applied the infrastructure action group to built-in backup job failure alerts. Soft delete was set to always on.
- Why that choice
- Restore granularity matched the problem, and failures now raise an alert the same night instead of being found during an emergency.
- The result
- The next failed job was fixed the following morning, and the monthly report went to the practice manager automatically.
When to use it and when not to
✓ Use it when…
- A few files or folders are lost: File Recovery.
- A VM is broken and must keep its identity: Replace existing. Need a copy alongside: Create new.
- You run more than a couple of vaults: Backup reports through Log Analytics, and alerts through action groups.
✕ Think twice when…
- Full VM restores for single files. They take longer and risk overwriting good data.
- Replace existing when you're unsure which recovery point is good. Restore side by side first.
- Relying on someone opening Backup Jobs every morning instead of alerts.
↔ Alternatives to consider
- Azure Site Recovery when the need is minutes of downtime during a region outage.
- Blob point-in-time restore or share snapshots for quick undo inside storage.
- Log search alerts on AddonAzureBackupJobs for custom backup conditions.
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.
Interview preparation
Say your answer out loud first, then open the model answer. Interviewers care more about your reasoning than the exact words.
Beginner A user deleted one folder on a file server VM. Do you restore the whole VM?
Model answer
No. I'd use File Recovery: pick yesterday's recovery point, download the script, run it on the VM to mount the backup as a drive, copy the folder back and unmount. The VM keeps running the whole time.
Intermediate When would you pick Restore disks over Create new virtual machine?
Model answer
When I need to change something before the VM exists, like a different size, availability set, network or extra settings, or when I want to attach the disks to an existing VM. Restore disks gives me the disks plus a template I can edit and deploy.
Experienced developer How do you get one report of backup health across 40 vaults?
Model answer
Send each vault's logs to one Log Analytics workspace with a diagnostic setting, using the Addon categories in resource-specific mode. Azure Policy can deploy those settings to every vault. Then Backup reports in Business Continuity Center show summary, items, usage, jobs, policies and optimisation across all of them.
Scenario An attacker with admin rights stopped backup and deleted all recovery points for the ERP VM. What now?
Model answer
If soft delete was on, the data is still there for 14 days, or longer if we set it. I'd undelete the item, resume protection, and restore from a point before the attack. Then I'd make soft delete always on, enable multi-user authorization, and alert on the built-in security alerts so we hear about it the moment it happens.
Quick revision
Key points
- Backup now creates an on-demand recovery point with a retain-until date. Backup Jobs shows progress and failures.
- VM restore options - Create new VM, Restore disks, Replace existing, plus Cross Region Restore with GRS.
- File Recovery mounts a recovery point through a script; unmount when done (it closes itself after 12 hours).
- Soft delete keeps deleted backup data 14 days by default; undelete, then resume protection.
- Backup reports need vault diagnostic settings to a Log Analytics workspace in resource-specific mode. Alerts use built-in Azure Monitor alerts or metric alerts, plus action groups.
Important terminology
- Backup now
- An on-demand backup outside the policy schedule, kept until the retain-until date you choose.
- Recovery point
- One restorable copy, in the snapshot tier (instant restore), the vault tier, or both.
- Restore disks
- Restores managed disks and a template to a resource group so you can customise the VM before creating it.
- Replace existing
- Swaps the disks of the existing VM for those in the recovery point, keeping the VM's name and network settings.
- File Recovery
- Mounts a VM recovery point as drives on a machine through a script, so individual files can be copied back.
- Cross Region Restore
- Restoring from the paired region's copy of a GRS vault, on demand.
- Backup reports
- Workbook-based reports across vaults and subscriptions, built on vault logs in Log Analytics.
- Built-in Azure Monitor alerts for backup
- Alerts Azure Backup raises for job failures and security-sensitive events, routed with alert processing rules and action groups.
Common mistakes
- Restoring a whole VM to get one file back.
- Using Replace existing when you want a side-by-side copy. It overwrites the VM's disks.
- Sending vault logs in Azure diagnostics mode and wondering why Backup reports are empty.
Exam tips
- "Recover one file without affecting the VM" = File Recovery. "Change the VM size or network before it starts" = Restore disks.
- "Restore over the existing VM, same name and IP" = Replace existing.
- "Report on backups across vaults" = diagnostic settings to Log Analytics (resource-specific) + Backup reports.
Five quick revision questions
-
1.What do you set when you run Backup now?Show
A retain-until date for the on-demand recovery point.
-
2.Which restore option keeps the VM's name but swaps its disks?Show
Replace existing.
-
3.Where must the staging storage account for a VM restore be?Show
In the same region as the vault.
-
4.Which diagnostic setting mode do Backup reports need?Show
Resource-specific.
-
5.How long can you undelete backup data by default?Show
14 days.
Official references
Finished this lesson? Tick it off. Your progress is saved in this browser.
Next up: Azure Site Recovery: Replicate and Fail Over to Another Region
Lesson done? Make it stick with a quick gameSort It, Match the Pairs, Lightning Round and Who Am I? Earn XP and badges.