AZ-305: Microsoft Azure Solutions Architect Expert
Design a nonrelational data storage solution
Design for Azure Disks
This article outlines essential design considerations for Azure Disks, offering guidance on selecting the right disk type, implementing effective caching strategies, and ensuring robust security through encryption. Azure Disks serve as virtual hard disks for your virtual machines (VMs) and are available in managed and unmanaged options. With unmanaged disks, you must manage the underlying storage account, while managed disks are maintained as a service by Microsoft. Microsoft highly recommends using managed disks for enhanced performance and ease of management.
Azure Disk Types
Azure offers a range of disk types to match varying performance requirements and budget constraints. Choose the disk tier based on your workload's IOPS and throughput needs.
Ultra SSD
Ultra SSD delivers extremely high IOPS and throughput, making it ideal for I/O-intensive applications such as SAP or transaction-heavy databases like Oracle and SQL.Note
Ultra SSD can only be used as a data disk and is supported on select VM SKUs only.Premium SSD
Premium SSDs are designed for performance-sensitive workloads, offering throughput of up to 900 megabytes per second and between 160K to 20K IOPS. They are suitable for both operating system and data disks. Typically, a VM is provisioned with a Premium SSD by default, though alternative cost-effective options exist.Standard SSD
With up to 750 megabytes per second in throughput and 6K IOPS, Standard SSDs are an excellent choice for web servers and medium transaction workloads. They offer enhanced speeds compared to HDDs due to storage on SSDs, though with lower performance than Premium SSDs.Standard HDD
Standard HDDs offer the most economical solution with relatively low throughput and IOPS. They work best for backup solutions, non-critical workloads, or development environments.
Azure Disk Caching
Optimizing read and write operations is critical to enhancing performance on your virtual disks. Azure Disk Caching offers three configurable levels:
None
No caching is applied. Use this option for disks that are write-only or where cached reads are not required.Read-only
In read-only caching, data that is read from the disk is temporarily stored in the cache, which can accelerate subsequent read operations—similar to browser or DNS caching.Read-write
Ideal for applications with mixed read and write demands, this option writes data to the cache first before persisting it to disk. This strategy enhances both read and write efficiency.
Disk Encryption and Security Options
Ensuring that your data remains secure is paramount. Azure provides multiple encryption strategies to protect data on your disks:
Azure Disk Encryption (ADE)
ADE uses BitLocker for Windows VMs and DM-Crypt for Linux VMs to encrypt disk data. The encryption keys are securely stored in an Azure Key Vault, ensuring that even if a disk snapshot is obtained, unauthorized access is mitigated.Server-Side Encryption (SSE)
SSE automatically encrypts all data written to the storage account. Enabled by default for all storage accounts, SSE can use either Microsoft-managed keys or customer-managed keys (CMK).Warning
Choosing CMK may restrict the use of ADE or host-level encryption, so ensure compatibility based on your security requirements.Encryption at Host
This approach encrypts data at the VM host level, safeguarding data both at rest and in transit. However, if using a customer-managed key with SSE, ADE or encryption at host cannot be combined. With Microsoft-managed keys, combining SSE with ADE adds an extra layer of security through a defense-in-depth strategy.
Configuring Disk Settings in the Azure Portal
Follow these steps to configure disk caching and encryption through the Azure Portal:
Disk Caching
- Access your VM in the Azure Portal and navigate to the disk settings.
- Modify the caching option—switch between read-write, read-only, or none—depending on your workload's demands.
- The selected caching mode determines whether data is read directly from the disk or via a host-level cache, thereby impacting performance.
Azure Disk Encryption and SSE
- In the disk's additional settings, you can configure encryption options.
- The ADE section lets you select the disk for encryption and specify an Azure Key Vault for key management.
- SSE settings are visible by default, typically set to use a platform-managed key. Switching to customer-managed keys is possible when the VM is deallocated, though this can limit the use of other encryption options like ADE or encryption at host.
- To access further encryption configurations, open the disk details, locate the encryption settings, and review the key management options available.
Next Steps
Armed with an understanding of the different Azure disk types, caching strategies, and encryption methods, you are well-equipped to design secure and efficient storage solutions on Azure. In our next discussion, we will delve deeper into storage security design considerations and additional measures to protect your data.
This concludes our detailed guide on designing for Azure Disks.
Watch Video
Watch video content