Azure Storage Access Tiers

Azure Storage offers different access tiers that you can use to store your data based on how frequently it's accessed. Choosing the right access tier can help you optimize costs and performance for your workloads.

Understanding Access Tiers

Access tiers are a feature of Azure Blob Storage. They allow you to provision your blob data to the most cost-effective tier. The primary difference between tiers lies in their access times, latency, and storage costs.

Hot Access Tier

Optimized for frequently accessed data.

The Hot tier is ideal for data that is accessed regularly and requires low-latency access. It has the highest storage costs but the lowest access costs.

  • Access Frequency: Frequent
  • Latency: Low
  • Availability: High
Use Cases: Active data, frequently read/written data, application data, content distribution.

Cool Access Tier

Optimized for infrequently accessed data.

The Cool tier is designed for data that is accessed less frequently but requires relatively quick access when needed. It has lower storage costs than the Hot tier but higher access costs.

  • Access Frequency: Infrequent
  • Latency: Moderate
  • Availability: High
Use Cases: Backups, disaster recovery data, archival data that needs occasional retrieval.

Archive Access Tier

Optimized for rarely accessed data, with flexible latency requirements.

The Archive tier is meant for data that is rarely accessed and has the longest retrieval times. It offers the lowest storage costs but the highest access costs and retrieval latency.

  • Access Frequency: Rare
  • Latency: High (hours for retrieval)
  • Availability: Low (requires retrieval process)
Use Cases: Long-term archival, compliance data, data that may never be accessed again but must be retained.

Managing Access Tiers

You can set the access tier for blobs when you upload them, or you can change the tier of existing blobs. Azure Storage supports rehydrating data from the Cool and Archive tiers back to the Hot tier.

Setting Tiers with Azure CLI:

To set the tier of a blob to Cool:

az storage blob set-tier --account-name  --container-name  --name  --tier Cool

To set the tier of a blob to Archive:

az storage blob set-tier --account-name  --container-name  --name  --tier Archive

Rehydrating Data:

Retrieving data from the Cool or Archive tier involves a rehydration process. This can take time, especially for the Archive tier, where retrieval can take several hours.

Choosing the Right Tier

Consider the following factors when deciding which access tier is best for your data:

By strategically using Azure Storage access tiers, you can effectively manage your storage costs while ensuring your data is readily available when you need it.