Azure Virtual Machines: Managed Disks

Comprehensive documentation on leveraging Managed Disks for your Azure VMs.

Managed Disks

Managed Disks are a new Azure storage service that uses Azure Resource Manager to manage the disks. With Managed Disks, you no longer need to manage the storage accounts that VMs use. You just specify the size and performance characteristics, and Azure handles the rest.

Diagram of Azure Managed Disks Simplified Azure Managed Disks Architecture

Key Benefits of Managed Disks

Types of Managed Disks

Azure offers several types of Managed Disks to cater to different performance and cost requirements:

1. Standard HDD (Hard Disk Drive)

2. Standard SSD (Solid State Drive)

3. Premium SSD (Solid State Drive)

4. Ultra Disk Storage

Creating and Managing Managed Disks

Managed Disks can be created and managed through the Azure portal, Azure CLI, PowerShell, or ARM templates.

Example: Creating a VM with Managed Disks using Azure CLI

To create a VM and automatically create Managed Disks for its OS and data, you can use a command similar to this:


az vm create \
  --resource-group MyResourceGroup \
  --name MyVM \
  --image UbuntuLTS \
  --admin-username azureuser \
  --admin-password 'YourPassword123' \
  --storage-sku Standard_LRS \
  --data-disk-sizes-gb 100 200
            

In this example:

Key Considerations

Tip: For production workloads, it is strongly recommended to use Premium SSD or Ultra Disk Storage for your operating system disk to ensure optimal performance and responsiveness.

Explore the official Azure documentation for more in-depth details and advanced configurations.