Your profile

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

Lesson 46 of 47
❮Prev Next❯

Back Up and Restore, Backup Reports and Alerts

Module 5: Monitor & Backup ⏱ 11 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

    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 needed

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

    Azure portal: Back up a VM, restore it and read Backup reports Back up now, restore a VM and open Backup reports.
    </> Embed

    Embed this simulation

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

    Loading the portal…

    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
    1. From the VM, open Backup + disaster recovery → Backup, pick the vault and the policy, and Enable backup.
    2. Don’t wait for 23:00. In Backup items, select Backup now.
    3. Set how long to keep this on-demand point. The job takes a snapshot first (instant restore), then copies it to the vault.
    4. 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).
    5. 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.
    6. Backup Jobs shows each backup and restore. For reports across vaults you need the vault’s logs in a workspace.
    7. Add a diagnostic setting with the Addon categories and Resource specific destination tables. That’s what Backup reports read.
    8. 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.

    😟 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
    🛠️ Solved with: Restore, reports and 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:

    OptionWhat happensPick it when
    Create new > Create new virtual machineA new VM with the name, resource group, VNet and subnet you chooseFast side-by-side recovery, or a test copy
    Create new > Restore disksManaged disks plus a template land in a resource groupYou need to change size, availability or network first, or attach disks to another VM
    Replace existingThe existing VM’s disks are replaced; name, NIC and IP stay. Azure snapshots the current disks firstThe VM is corrupted but its identity and network should stay the same
    Cross Region RestoreAny of the above in the paired regionGRS 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.

    1. Create (or reuse) a Log Analytics workspace.
    2. 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.
    3. 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

    Healthcare

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

    A user deleted a folder on an Azure virtual machine that is backed up by Azure Backup. You must recover the folder without affecting the running virtual machine. What should you use?

    Question 2

    Question 2 of 5

    A virtual machine named VM1 is corrupted. You must restore VM1 from last night's recovery point and keep its name, network interface and IP address. Which restore option should you use?

    Question 3

    Question 3 of 5

    An administrator stopped backup for a virtual machine and deleted the backup data three days ago. Soft delete is enabled with default settings. What should you do to recover the backups?

    Question 4

    Question 4 of 5 · Select 2

    You need to view Backup reports for 15 Recovery Services vaults. Which two actions should you perform? Each correct answer presents part of the solution.

    Question 5

    Question 5 of 5

    The operations team must receive an email whenever a backup job fails in any Recovery Services vault in a subscription. The built-in Azure Monitor alerts for Azure Backup are enabled. What should you configure to send the email?

    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. 1.What do you set when you run Backup now?Show

      A retain-until date for the on-demand recovery point.

    2. 2.Which restore option keeps the VM's name but swaps its disks?Show

      Replace existing.

    3. 3.Where must the staging storage account for a VM restore be?Show

      In the same region as the vault.

    4. 4.Which diagnostic setting mode do Backup reports need?Show

      Resource-specific.

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

    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.