OS Disk
The OS disk acts as the primary storage device where the operating system resides. This disk is a Virtual Hard Disk (VHD) stored in Azure Blob Storage, ensuring both persistence and durability of your OS.Temporary Disk
The temporary disk is located on the host machine and provides storage for ephemeral data, such as swap or page files.Data stored on the temporary disk may be lost during maintenance events or when the VM is redeployed, so use it only for data that does not require persistence.
Data Disks
Data disks offer persistent storage for your applications and their data. The number of data disks you can attach depends on the VM size and family. For example, one VM family might support up to two data disks, while another may allow three. Choose a VM size that meets your application’s storage needs.Performance Tiers
Selecting the right disk performance tier is essential to align with your application’s workload requirements. Consider the following options:- Standard HDDs: Suitable for basic workloads with moderate performance needs.
- Standard SSDs: Ideal for applications requiring better performance than HDDs.
- Premium SSDs: Recommended for I/O-intensive tasks that need high throughput and low latency.
Managed vs. Unmanaged Disks
Azure offers two primary methods for managing your VM disks: managed and unmanaged.Managed Disks
Managed disks provide a simplified storage solution by abstracting the complexities of storage account management. Azure takes care of disk provisioning and storage account scalability, which helps avoid concerns about IOPS limits. Managed disks offer several built-in features, including:- Snapshots and backups
- Site recovery support
- Integration with Azure availability sets to eliminate single points of failure