Last updated: May 2026
Azure Virtual Machines Beginner AZ-104 ⏱ 12 min read

Azure Managed Disks

When you create a VM in Azure today, the disks attached to it are Managed Disks — Microsoft's recommended, fully managed storage solution for VMs. You don't manage the underlying storage account, replication, or placement. Azure handles all of that. This page covers what managed disks are, why they're better than the old way, and all the powerful features they offer.

What you'll learn What managed disks are · Managed vs unmanaged disks · Redundancy options (LRS, ZRS) · Disk snapshots · Disk images · Shared disks · Disk bursting · Incremental snapshots · Managing disks with CLI

What Are Managed Disks?

Azure Managed Disks are block-level storage volumes managed by Azure and used with Azure Virtual Machines. They're like virtual hard drives — you choose the size and type, and Azure handles everything else: where it's physically stored, how it's replicated, and how it recovers from failures.

ℹ️
Block Storage vs Object Storage Managed Disks are block storage — they appear as a raw disk to the VM's operating system, which then formats them and creates a file system. This is different from Azure Blob Storage (object storage), which stores files and is accessed via API.

Managed vs Unmanaged Disks

Before managed disks existed (pre-2017), Azure used unmanaged disks — VHD files stored in customer-managed Storage Accounts. This created many problems:

FeatureUnmanaged Disks (Old)Managed Disks (Current)
Storage managementYou manage the Storage AccountAzure manages everything
Storage Account limitsMax 40 disks per Storage AccountNo such limit
Availability Set supportManual placement requiredAutomatic placement across fault domains
SnapshotsComplex, manual processOne-click, incremental
RBACAt Storage Account level onlyPer-disk RBAC
Recommended?No — legacy onlyYes — always use managed disks
💡
Always Use Managed Disks Unmanaged disks are considered legacy. All new VMs use managed disks by default. If you see old tutorials using Storage Accounts for VM disks, ignore that approach — always use managed disks.

Disk Redundancy Options

Managed disks support different replication options to protect against hardware failures:

OptionFull NameCopiesProtection
LRSLocally Redundant Storage3 copies in one data centreHardware failures in one location
ZRSZone-Redundant Storage3 copies across 3 AZsData centre (zone) failures
ℹ️
ZRS for Managed Disks ZRS managed disks replicate synchronously across 3 Availability Zones. If an entire data centre (zone) fails, your disk is still available from the other two zones. ZRS is more expensive than LRS but provides zone-level resilience without needing to manage replication yourself.

Disk Snapshots

A snapshot is a point-in-time, read-only copy of a managed disk. Use snapshots to back up disks before making risky changes, or to create copies of disks for testing.

Incremental Snapshots

Azure supports incremental snapshots — each snapshot only stores the changes since the last snapshot, not a full copy of the disk. This dramatically reduces storage costs for large disks.

Azure CLI Create a disk snapshot
# Get the disk ID first
DISK_ID=$(az vm show \
  --resource-group myResourceGroup \
  --name myVM \
  --query "storageProfile.osDisk.managedDisk.id" \
  --output tsv)

# Create an incremental snapshot
az snapshot create \
  --resource-group myResourceGroup \
  --name myVM-snapshot-$(date +%Y%m%d) \
  --source "$DISK_ID" \
  --incremental true \
  --location centralindia
Azure CLI Create a new disk from a snapshot
az disk create \
  --resource-group myResourceGroup \
  --name myRestoredDisk \
  --source myVM-snapshot-20260507 \
  --sku Premium_LRS

Snapshot Best Practices

  • Take a snapshot before any major change — OS upgrades, software installs, configuration changes
  • Use incremental snapshots to minimise cost
  • Snapshots are billed per GB of changed data
  • Delete old snapshots you no longer need — they continue billing

Custom Images from Disks

You can create a custom VM image from a managed disk — useful for deploying multiple identical VMs (a "golden image" approach).

The process:

  1. Set up a VM exactly as you want it — install software, configure settings
  2. Run sysprep (Windows) or waagent -deprovision (Linux) to generalise the VM
  3. Deallocate and generalise the VM in Azure
  4. Capture the image
  5. Deploy new VMs from this image
Azure CLI Capture a VM image
# Deallocate and generalise the VM
az vm deallocate --resource-group myRG --name myVM
az vm generalize --resource-group myRG --name myVM

# Create the image
az image create \
  --resource-group myRG \
  --name myGoldenImage \
  --source myVM \
  --os-type Linux

Shared Disks

Azure Shared Disks allow a single managed disk to be attached to multiple VMs simultaneously. This is designed for clustered applications like SQL Server Failover Cluster Instances or SAP ASCS.

⚠️
Not For General Use Shared disks require a cluster-aware application to manage concurrent access. Without proper clustering software (Windows Server Failover Clustering, Pacemaker on Linux), multiple VMs writing to the same disk simultaneously will cause data corruption.

Disk Bursting

Premium SSD managed disks support on-demand bursting — temporarily exceeding the disk's provisioned IOPS and throughput limits to handle spikes. This is similar to how B-series VMs handle CPU bursts.

  • Available for Premium SSD disks up to 512 GB
  • Can burst up to 3,500 IOPS and 170 MB/s
  • Useful for workloads with occasional spikes (boot storms, batch jobs)
  • No extra configuration needed — enabled automatically

Managing Disks with CLI

Azure CLI Common disk management commands
# List all managed disks in a resource group
az disk list \
  --resource-group myResourceGroup \
  --output table

# Create a standalone managed disk
az disk create \
  --resource-group myResourceGroup \
  --name myDataDisk \
  --size-gb 256 \
  --sku Premium_LRS \
  --location centralindia

# Resize a disk (VM must be deallocated first)
az disk update \
  --resource-group myResourceGroup \
  --name myDataDisk \
  --size-gb 512

# Delete a disk
az disk delete \
  --resource-group myResourceGroup \
  --name myDataDisk \
  --yes

Best Practices

  • Always use managed disks — Never use unmanaged (Storage Account) disks for new workloads
  • Take snapshots before changes — Snapshot OS disks before major updates or software installs
  • Separate OS and data — Keep application data on dedicated data disks
  • Use incremental snapshots — Significantly cheaper than full snapshots for large disks
  • Delete orphaned disks — After deleting a VM, check for leftover disks in the portal and delete them
  • Use ZRS for critical disks — Zone-redundant storage for production workloads needing higher availability
💡
AZ-104 Exam Tip Key managed disk facts: always encrypted at rest by default · support incremental snapshots · can be shared across VMs (with clustering software) · LRS replicates within one data centre, ZRS across 3 zones · all new VMs use managed disks by default.
📝 Practice Questions
Click an option to check your answer. AZ-104 style questions.
Q1. What is the key advantage of Azure Managed Disks over unmanaged disks?
A Managed disks are always cheaper than unmanaged disks
B Azure manages the underlying storage — no Storage Account management, no disk limits
C Managed disks automatically back up all data daily
D Managed disks are faster than unmanaged disks
Q2. What is an incremental snapshot?
A A full copy of the entire disk taken automatically every hour
B A snapshot that only stores the changes since the last snapshot, reducing storage costs
C A snapshot stored locally on the VM for faster restore
D A snapshot only available for disks smaller than 128 GB
Q3. What redundancy option replicates managed disk data across three Availability Zones?
A LRS (Locally Redundant Storage)
B ZRS (Zone-Redundant Storage)
C GRS (Geo-Redundant Storage)
D RA-GRS (Read-Access Geo-Redundant Storage)
Q4. A company wants to deploy 100 identical VMs all pre-configured with the same software and settings. What is the most efficient approach?
A Create and manually configure each VM one by one
B Create a custom image from a configured VM and deploy all 100 VMs from that image
C Take a snapshot of one VM and restore it 99 more times
D Copy the OS disk 99 times and attach to new VMs
Q5. Can an Azure managed disk be attached to multiple VMs simultaneously?
A Yes — any managed disk can be attached to multiple VMs at the same time
B Only with the Shared Disk feature enabled and clustering software managing concurrent access
C No — managed disks can never be shared between VMs
D Only if both VMs are in different regions
Comments
Disclaimer: RedKite Cloud is an independent educational resource and is not affiliated with, endorsed by, or officially connected to Microsoft Corporation. All product names, logos, and trademarks are property of their respective owners. Content is written independently for educational purposes only.