Backing up your VMs: the basics
What does an unprotected virtual machine actually expose you to?
A virtual machine without a backup is a single copy of state with no undo. The disks hold the operating system, the application binaries, the local data and the configuration that took weeks to get right, and if any of that is deleted, corrupted or encrypted by ransomware, there is nothing to restore from. Azure Advisor flags exactly this: its reliability recommendation 'Enable Backup on your virtual machines' lists every VM in the estate that has no protected backup configured, because an unbacked machine is a reliability gap waiting to become an outage.
Azure Backup closes that gap by taking scheduled, application-consistent snapshots of a VM's disks and storing the recovery points in a Recovery Services vault. The vault is a managed container that lives outside the VM, so even if the machine, its disks or its resource group are deleted, the recovery points survive. From a recovery point you can restore the whole VM, swap in individual disks, or pull back single files, which turns most data-loss scenarios from a rebuild into a routine restore.
Most unprotected machines are drift, not a decision. A VM spun up for a quick test that became load-bearing, a machine deployed by a module that never wired up backup, a workload migrated in a hurry. The work is to find every VM Advisor has flagged, decide which genuinely need protection, attach each to a Recovery Services vault with a backup policy that matches how much data loss the workload can tolerate, and then make backup the default for everything created next.
In this lesson you will learn what Azure Advisor's 'Enable Backup on your virtual machines' recommendation is actually checking, how to find every unprotected VM in a subscription, and how to bring them under a Recovery Services vault with a backup policy that matches each workload, without over-spending on machines that do not need it. You will see the exact az CLI to enable protection and a Bicep block that makes backup part of the deployment rather than an afterthought.
The machine that was load-bearing by accident
The VMs that hurt most when they fail are rarely the ones anyone planned to depend on. They are the test box that quietly became the licence server, the migration staging machine that ended up serving live traffic, the one-off that nobody put a backup on because it was 'temporary'. Azure Advisor exists partly to surface exactly these: it scans the estate regularly and lists every VM with no protected backup, so the machine that became load-bearing by accident does not stay unprotected by accident too. New vaults also enable soft delete by default, which retains deleted backup data for an extra recovery window, so even a deletion of the backup itself has a grace period.
Finding unprotected VMs across a subscription
Priya runs the platform team at a SaaS company whose estate grew faster than its guardrails. Azure Advisor's reliability tab shows the 'Enable Backup on your virtual machines' recommendation listing fourteen machines across two subscriptions with no protected backup.
Rather than enable backup blindly on all fourteen, Priya starts by listing every VM in the subscription and cross-checking which ones already appear as protected items in the Recovery Services vault, so the genuinely unprotected business-critical machines stand out from the throwaway ones before anything is configured.
List the VMs already protected in the vault, so you can subtract them from the full estate and see what Advisor is really flagging.
The protected-item list is the source of truth for what is actually covered. Subtract it from the full VM list to see exactly which flagged machines still have no recovery point.
How Azure Backup actually protects a VMdeep dive
Enabling backup on a VM creates a protected item that links three things: the VM, a Recovery Services vault, and a backup policy. The policy defines when the backup job runs and how long each recovery point is kept. The default policy runs a backup once a day and retains recovery points for 30 days, which is a sensible starting point that you tune per workload rather than accept blindly. When the scheduled job runs, Azure Backup takes a snapshot of the VM's disks, and for supported workloads it coordinates with the guest to get an application-consistent point rather than just a crash-consistent one.
The recovery points live in the vault, which is deliberately separate from the VM's own resource group and disks. That separation is the whole point: deleting the VM, its disks or even its resource group does not delete the recovery points, so you can restore the machine afterwards. The first backup is a full copy; every job after that is incremental, transferring only the blocks that changed, which keeps both the time and the storage cost down. By default a new vault uses geo-redundant storage, replicating recovery points to a paired region, and you can switch it to locally redundant where cross-region durability is not required and you want to lower the storage cost.
The strongest position pairs the per-VM protection with a deployment default, so new machines arrive backed up instead of relying on someone remembering. That is the difference between checking that today's estate is protected and guaranteeing that tomorrow's machines are protected the moment they exist. Advisor will keep listing any VM without a protected backup, so it doubles as an ongoing check that the default is holding.
What is the impact of leaving a VM unbacked?
The direct impact is recovery time. An unprotected VM that is deleted, corrupted, encrypted by ransomware or wrecked by a bad patch has no recovery point to restore from, so the only path back is to rebuild it: provision a new machine, reinstall and reconfigure everything, and recover whatever data can be found elsewhere. For a machine that was set up carefully over weeks, that rebuild is measured in hours or days, and the service it backs is down for all of it.
The second-order impact is the data you cannot rebuild. Configuration drift, local state, application data that never made it into a database: none of that is reproducible from a template. A backup captures the machine as it actually was, so a restore brings back the real state rather than an approximation. Without it, even a successful rebuild can leave you reconstructing data from memory and partial copies, which is exactly when mistakes compound.
On the resilience side, every modern operational standard expects recoverability to be designed in, not improvised. A Recovery Services vault with recent recovery points across the business-critical estate is the cheapest, most defensible evidence that a lost machine is a restore rather than an outage. Advisor flagging an unprotected production VM is a direct signal that a single accident on that machine becomes a full outage with no clean path back.
How do you protect the estate without over-spending?
Work the capability as one loop rather than enabling backup machine by machine in a panic. The order matters: decide what each machine is worth before you choose its policy, so you neither leave a critical VM exposed nor pay rich retention for a scratch box.
1. Inventory every VM against what is already protected
Pull Advisor's flagged list and the vault's protected-item list, and subtract one from the other. Treat that as the source of truth for what is genuinely unprotected, because a machine can be running fine for months and still have no recovery point behind it.
2. Classify each VM by cost-of-downtime
For each unprotected machine, decide what an hour of it being down costs and how much data loss the workload can tolerate. Customer-facing production machines justify a richer policy and frequent recovery points; internal tools are usually fine on a standard daily policy; genuine throwaways can be left unprotected on the record.
3. Attach each machine to a vault and a matching policy
Enable backup on the machines that need it, choosing or creating a policy whose schedule and retention match the workload's recovery expectation rather than defaulting every machine to the same setting. Each machine becomes a protected item in the vault immediately, and you can trigger an initial backup so there is a recovery point straight away.
4. Make backup a deployment default
Bake the protected item into the infrastructure template so new business-critical machines arrive backed up rather than relying on anyone remembering. Let Advisor keep flagging any VM that slips through, so the default is continuously checked rather than assumed.
# Enable a daily backup on a business-critical VM using the vault's default policy.
# DefaultPolicy backs up once a day and retains recovery points for 30 days.
az backup protection enable-for-vm \
--resource-group rsv-prod \
--vault-name rsv-prod-vault \
--vm orders-db-prod \
--policy-name DefaultPolicy
# Take an initial backup now so there is a recovery point immediately,
# rather than waiting for the first scheduled run.
az backup protection backup-now \
--resource-group rsv-prod \
--vault-name rsv-prod-vault \
--container-name orders-db-prod \
--item-name orders-db-prod \
--backup-management-type AzureIaaSVM \
--retain-until 31-12-2026
# Confirm the job is running.
az backup job list \
--resource-group rsv-prod \
--vault-name rsv-prod-vault \
--output table
# --- Make backup a deployment default (Bicep) ---
# Register the VM as a protected item so new machines arrive backed up.
#
# resource protectedItem 'Microsoft.RecoveryServices/vaults/backupFabrics/protectionContainers/protectedItems@2026-02-01' = {
# name: '${vaultName}/Azure/IaasVMContainer;iaasvmcontainerv2;${resourceGroup().name};${vm.name}/VM;iaasvmcontainerv2;${resourceGroup().name};${vm.name}'
# properties: {
# protectedItemType: 'Microsoft.Compute/virtualMachines'
# policyId: backupPolicy.id
# sourceResourceId: vm.id
# }
# } Quick quiz
Question 1 of 5Azure Advisor's reliability tab flags fourteen VMs under 'Enable Backup on your virtual machines'. What is the most efficient way to act on them?
You scored
0 / 5
Keep learning
Go deeper on how Azure Backup protects virtual machines and how to bring the estate under a Recovery Services vault.
- Quickstart: Back up a VM with the Azure CLI Create a Recovery Services vault, enable protection on a VM, and take the first recovery point from the command line.
- Back up Azure VMs in a Recovery Services vault How Azure Backup protects IaaS VMs, including policies, recovery points and restore options.
- Soft delete for virtual machines in Azure Backup The extra recovery window that protects backup data itself from accidental or malicious deletion.
You can now treat VM backup as one capability rather than a scatter of Advisor flags: inventory the unprotected machines against what the vault already covers, classify each by cost-of-downtime, attach the ones that matter to a Recovery Services vault with a policy that fits, and bake protection into your deployment templates so new critical machines arrive backed up. The result is an estate where a lost machine is a restore in a known window, not an open-ended outage.
Back to the library