Azure Storage Documentation

Blob Access Tiers

Azure Blob Storage offers different access tiers to optimize costs by storing infrequently accessed data in a cost-effective manner. Choosing the right tier for your data can significantly reduce your storage expenses.

Understanding Access Tiers

Blob Storage provides three main access tiers:

Note: Access tiers apply to individual blobs, not to entire containers.

When to Use Each Tier

Here's a guide to help you decide which tier best suits your data:

Key Considerations for Access Tiers

When choosing an access tier, consider the following:

Feature Hot Tier Cool Tier Archive Tier
Storage Cost Highest Medium Lowest
Access Cost Lowest Medium Highest
Retrieval Latency Lowest (milliseconds) Moderate (milliseconds to seconds) High (hours)
Minimum duration None 30 days 180 days
Use Case Frequently accessed data Infrequently accessed data Rarely accessed data, long-term archival

Managing Blob Access Tiers

You can set the access tier for a blob when you upload it or change the tier of an existing blob. This can be done using:

Changing Blob Tier

To change the tier of an existing blob, you can use the Set Blob Tier operation. For example, using the Azure CLI:


az storage blob set-tier --account-name <your-storage-account-name> \
                         --container-name <your-container-name> \
                         --name <your-blob-name> \
                         --tier Hot|Cool|Archive
            

Tip: Consider using lifecycle management policies to automatically transition blobs between tiers based on their age or access patterns.

Rehydrating Archived Data

When data is stored in the archive tier, it is offline. To access archived data, you must first "rehydrate" it. This process involves copying the blob to either the hot or cool tier. Rehydration can take a few hours, depending on the amount of data and the capacity of the storage account.

Rehydration Methods

The following Azure CLI command demonstrates rehydrating an archive blob to the cool tier:


az storage blob set-tier --account-name <your-storage-account-name> \
                         --container-name <your-container-name> \
                         --name <your-blob-name> \
                         --tier Cool
            

Best Practices

↑