Azure Backup Fundamentals
Enable Azure Backup for VMs and Azure Files, configure daily backup schedules and retention policies in a Recovery Services vault, and verify backup jobs.
Azure Backup Fundamentals is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 1 of 4. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the Cloud & IT Cert Prep learning path, one of 4 lessons in the course, and your progress syncs across the web and the CoddyKit app.
Why Backup Is Non-Negotiable
Even in the cloud, data can be lost through accidental deletion, ransomware encryption, application bugs, or configuration errors. Cloud providers protect you from hardware failure but not from mistakes in your own account. Azure Backup is Microsoft's native, fully managed backup service that protects VMs, Azure Files shares, SQL databases running on VMs, Azure SQL Databases, and more — with zero infrastructure to manage.
Recovery Services Vault
A Recovery Services vault is the top-level management object for both Azure Backup and Azure Site Recovery. It stores backup data, holds backup policies, and provides a single pane of glass for monitoring backup jobs. Each vault is tied to a region — backup data stays in the same region as the vault unless you configure geo-redundant storage. You need at least one vault per region where you have workloads to protect.
# Create a Recovery Services vault
az backup vault create \
--resource-group myRG \
--name myRecoveryVault \
--location eastusBackup Policies
A backup policy defines the schedule (when backups run — daily, weekly, hourly) and the retention rules (how long recovery points are kept — daily, weekly, monthly, yearly). Azure Backup supports Enhanced policies that allow multiple backups per day and longer-term YYYY/MM retention tiers. The policy is linked to each protected item independently so different VMs can have different schedules.
# Show the default backup policy for a vault
az backup policy list \
--vault-name myRecoveryVault \
--resource-group myRG \
--output tableEnabling Backup for Azure VMs
Enabling Azure Backup for a VM takes three steps: register the VM with the vault, create or assign a backup policy, and trigger the first backup. Azure Backup uses the VM Agent (pre-installed on all Azure Marketplace images) to coordinate application-consistent snapshots via Volume Shadow Copy Service (VSS) on Windows or pre/post scripts on Linux. No additional software installation is required for basic file-system-consistent VM backup.
# Enable backup for a VM
az backup protection enable-for-vm \
--resource-group myRG \
--vault-name myRecoveryVault \
--vm myVM \
--policy-name DefaultPolicyApplication-Consistent vs Crash-Consistent
Application-consistent backups quiesce the application (flush write buffers and freeze I/O) before taking the snapshot, ensuring the database or application can recover cleanly from the backup. Crash-consistent backups capture the disk state at a point in time without coordinating with the application — equivalent to pulling the power plug. For databases, always aim for application-consistent backups to avoid manual recovery steps after restore.
Backup Storage Redundancy Options
When creating a Recovery Services vault you choose the backup storage redundancy before protecting any items. Locally Redundant Storage (LRS) keeps three copies within one data centre — cheapest but single-region risk. Geo-Redundant Storage (GRS) replicates to a paired region — the default and recommended for most production workloads. Zone-Redundant Storage (ZRS) replicates across availability zones within the same region. You cannot change redundancy after protecting items.
# Set backup storage redundancy BEFORE protecting any item
az backup vault backup-properties set \
--name myRecoveryVault \
--resource-group myRG \
--backup-storage-redundancy GeoRedundantMonitoring Backup Jobs
Every backup and restore operation creates a backup job that you can track in the Recovery Services vault under the Backup Jobs blade. Each job shows its status (In Progress, Completed, Failed, Warning), start time, duration, and any error details. You can configure alert notifications via Azure Monitor to send email when a backup job fails. Azure Backup Center provides a unified cross-vault, cross-subscription monitoring view.
# List recent backup jobs for a vault
az backup job list \
--vault-name myRecoveryVault \
--resource-group myRG \
--status Failed \
--output tableSoft Delete Protection
Soft delete is a vault-level security feature enabled by default that retains deleted backup data for 14 additional days at no extra cost. If an attacker or accidental deletion removes a backup item from the vault, the data is not immediately purged — it enters a soft-deleted state and can be undeleted. Soft delete is enabled by default on all new vaults and is strongly recommended as a defence against ransomware targeting backup infrastructure.
Azure Backup for Azure Files
Azure Backup integrates natively with Azure Files to take share-level snapshots. Unlike VM backups that require a Recovery Services vault agent, Azure Files snapshots are pure storage-layer operations with no agent. You can schedule up to 200 snapshots per share and restore individual files or the entire share from any snapshot. The backup data stays within the storage account, making restores very fast.
# Enable backup for an Azure Files share
az backup protection enable-for-azurefileshare \
--resource-group myRG \
--vault-name myRecoveryVault \
--storage-account myStorageAccount \
--azure-file-share myFileShare \
--policy-name DefaultPolicyOn-Demand Backup and Backup Centre
In addition to scheduled backups, you can trigger an on-demand backup at any time — for example, before a major application change or patch deployment. On-demand recovery points have their own configurable retention independent of the schedule policy. Azure Backup Center is a unified management portal that provides a cross-subscription, cross-region view of all backup items, jobs, policies, and compliance status without switching between individual vaults.
# Trigger an on-demand backup for a VM
az backup protection backup-now \
--resource-group myRG \
--vault-name myRecoveryVault \
--container-name myVM \
--item-name myVM \
--retain-until 2026-12-31Backup Costs and Pricing Model
Azure Backup pricing has two components: a protected instance fee (charged per VM or workload based on the front-end size of the data) and a backup storage fee (charged per GB of consumed storage). For small VMs (under 50 GB front-end), the protected instance fee is lower. Geo-redundant storage costs more than locally redundant storage. Cross-region restore (needed for geo-failover scenarios) incurs an additional data transfer charge.
Quick Check
Test your understanding of Microsoft Azure Fundamentals (AZ-900) concepts from this lesson.
Lesson Recap
In this lesson you learned: Recovery Services vaults are the management hub for Azure Backup and Site Recovery, backup policies define schedule and retention independently per protected item, and soft delete provides a 14-day safety net against accidental or malicious removal of backup data. Next up we explore how to restore data from Azure Backup in different recovery scenarios.
Frequently asked questions
Is the “Azure Backup Fundamentals” lesson free?
Yes — the full text of “Azure Backup Fundamentals” is free to read here on the web, and the Cloud & IT Cert Prep course includes 4 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the Cloud & IT Cert Prep course, upgrade to CoddyKit PRO.
What will I learn in “Azure Backup Fundamentals”?
Enable Azure Backup for VMs and Azure Files, configure daily backup schedules and retention policies in a Recovery Services vault, and verify backup jobs. You practise Cloud & IT Cert Prep with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.
Do I need any experience to start Cloud & IT Cert Prep?
No prior experience is required. Cloud & IT Cert Prep on CoddyKit is structured for beginners through advanced learners; this is — lesson 1 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Azure Backup Fundamentals” lesson take?
Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.
Can I write and run code in this Cloud & IT Cert Prep lesson?
Yes. Every Cloud & IT Cert Prep lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.
All lessons in this course
- Azure Backup Fundamentals
- Restoring from Azure Backup
- Azure Site Recovery Replication
- Testing and Running Failover