Restoring from Azure Backup
Perform a full VM restore and an item-level file recovery from a backup snapshot, and understand recovery point objectives for different workload types.
Restoring from Azure Backup is a free Cloud & IT Cert Prep lesson on CoddyKit — lesson 2 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.
Recovery Points and Restore Options
Each successful backup run creates a recovery point — a point-in-time snapshot of the protected resource. Azure Backup retains recovery points according to the backup policy's retention rules. When you need to restore, you select a recovery point and choose a restore type. The available types depend on the resource: for VMs you can do a full VM restore, disk restore, or file-level item recovery. Understanding these options helps you choose the fastest path to recovery.
# List recovery points for a VM
az backup recoverypoint list \
--resource-group myRG \
--vault-name myRecoveryVault \
--container-name myVM \
--item-name myVM \
--workload-type VM \
--output tableFull VM Restore
A full VM restore recreates the entire virtual machine — OS disk, data disks, and network interface — from a recovery point. You can restore to the original location (replacing the existing VM) or to an alternate location (creating a new VM with a different name or in a different resource group or region). Full restore is the slowest option but recovers a completely broken or deleted VM. Cross-region restore is also supported if the vault uses GRS storage.
# Trigger a full VM restore to alternate location
az backup restore restore-azurevm \
--resource-group myRG \
--vault-name myRecoveryVault \
--container-name myVM \
--item-name myVM \
--rp-name <recovery-point-name> \
--restore-to-staging-storage-account myStorageAccount \
--storage-account-resource-group myRGDisk Restore
Disk restore exports the managed disks from a recovery point to a specified storage account without creating a new VM. This is useful when you only need to recover specific data from a disk, or when you want to attach the recovered disk to an existing VM for investigation. After the disks are exported, you can mount them, browse the file system, and copy only the files you need — faster than spinning up a full VM restore.
File-Level Item Recovery
Item-level recovery (ILR) lets you browse and recover individual files and folders from a VM backup without restoring the entire disk. Azure Backup mounts the recovery point as a local iSCSI target on a Windows or Linux machine. You connect using a provided script, browse the mounted disk as if it were a local drive, and copy only the specific files you need. The mount session expires after 12 hours to limit exposure.
# Download the ILR mount script (run on the recovery machine)
# 1. In the portal: Backup items > VM > Recovery points > File Recovery
# 2. Download the executable script for Windows or Linux
# 3. Run the script on a target machine — it mounts the disks via iSCSI
# 4. Browse the mounted drive and copy the needed files
# 5. Unmount after recovery to release the recovery point lockRecovery Point Objectives and Recovery Times
When evaluating backup strategies, two metrics matter: RPO (Recovery Point Objective) is the maximum tolerable data loss expressed as time — if your backup runs daily, your RPO is up to 24 hours. RTO (Recovery Time Objective) is how long the restore process itself takes. Full VM restores can take 30 minutes to several hours depending on disk size. File-level recovery is much faster. Matching your RPO and RTO to business requirements drives your backup schedule and restore strategy choice.
Restoring Azure Files Share
For Azure Files backed up via Azure Backup, you have two restore options. Original location restore overwrites the current share contents with the snapshot. Alternate location restore restores to a different file share or storage account, preserving the current share unchanged. You can also do item-level restore to recover specific files or folders from the snapshot, which is the most common and lowest-impact recovery type for file shares.
# Restore a specific file from an Azure Files backup
az backup restore restore-azurefiles \
--resource-group myRG \
--vault-name myRecoveryVault \
--container-name 'StorageContainer;myStorageAccount' \
--item-name 'AzureFileShare;myFileShare' \
--rp-name <recovery-point-name> \
--restore-mode ItemLevelRecovery \
--target-storage-account myStorageAccount \
--target-file-share myFileShare \
--target-folder restored-filesCross-Region Restore
Cross-region restore (CRR) allows you to restore VMs to a secondary (paired) region when the primary region experiences an outage. CRR is only available for vaults configured with Geo-Redundant Storage. You must explicitly enable CRR in vault properties — it is not on by default. CRR adds a cost premium but is essential for scenarios where you need to restore workloads in the secondary region before Azure Site Recovery completes failover.
# Enable cross-region restore on an existing vault
az backup vault backup-properties set \
--name myRecoveryVault \
--resource-group myRG \
--cross-region-restore-flag trueMonitoring Restore Jobs
Every restore operation creates a backup job with type Restore that you can monitor in the vault's Backup Jobs blade. Large disk restores can run for hours. If a restore fails partway through (e.g. due to a permissions issue on the target storage account), Azure Backup provides a detailed error message and a link to documentation. You can retry the restore once the underlying issue is fixed — a partially completed restore does not corrupt the recovery point.
# Monitor a specific restore job
az backup job show \
--vault-name myRecoveryVault \
--resource-group myRG \
--name <job-id>Restoring SQL Databases in VMs
When SQL Server is running on an Azure VM and protected with the Azure Backup for SQL Server solution, you get additional restore granularity. You can restore to a specific point in time (based on transaction log backups that run every 15–60 minutes) rather than only to a full backup recovery point. This dramatically lowers RPO for SQL workloads compared to file-system-level VM backup alone.
Verifying Backup and Testing Restores
Many organisations never test their backups until disaster strikes — and then discover the backups are corrupted, incomplete, or take far longer to restore than expected. Best practice requires regular restore drills: restore to a test resource group, verify application functionality, and document the actual RTO achieved. Azure Backup Center's Backup Reports workbook provides a compliance view showing the last successful backup date for every protected item.
Instant Restore from Snapshots
Azure Backup for VMs maintains a local instant restore snapshot for 1–5 days (configurable in the policy) in the resource group alongside the VM. Restoring from this local snapshot is much faster than restoring from the vault because data does not need to be transferred from the vault's storage. After the instant restore tier expires, the recovery point is stored only in the vault. Using instant restore for recent accidents significantly reduces your RTO.
Quick Check
Test your understanding of Microsoft Azure Fundamentals (AZ-900) concepts from this lesson.
Lesson Recap
In this lesson you learned: Azure Backup offers multiple restore types — full VM, disk, and file-level item recovery — each with different speed and granularity trade-offs, cross-region restore requires GRS vaults and must be explicitly enabled, and regular restore drills are essential to verify your actual RTO matches business requirements. Next up we explore Azure Site Recovery for replicating entire workloads to a secondary region.
Frequently asked questions
Is the “Restoring from Azure Backup” lesson free?
Yes — the full text of “Restoring from Azure Backup” 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 “Restoring from Azure Backup”?
Perform a full VM restore and an item-level file recovery from a backup snapshot, and understand recovery point objectives for different workload types. 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 2 of 4, so you can start here or from the beginning and move at your own pace.
How long does the “Restoring from Azure Backup” 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