Azure Hot vs Cool vs Archive Tier: Key Differences and Usage
Hot, Cool, and Archive tiers to balance cost and access speed. Hot is for frequently accessed data, Cool for infrequent access with lower cost, and Archive for rarely accessed data with the lowest cost but highest retrieval time.Quick Comparison
Here is a quick overview of the main differences between Azure storage tiers.
| Factor | Hot Tier | Cool Tier | Archive Tier |
|---|---|---|---|
| Access Frequency | Frequent | Infrequent | Rare |
| Storage Cost | Highest | Lower than Hot | Lowest |
| Access Cost | Lowest | Higher than Hot | Highest |
| Latency | Lowest (milliseconds) | Low (milliseconds) | High (hours) |
| Data Retrieval Time | Immediate | Immediate | Up to hours |
| Use Case | Active data, apps | Backup, disaster recovery | Long-term archive |
Key Differences
The Hot tier is designed for data that you access very often. It has the highest storage cost but the lowest cost to read or write data, making it ideal for active applications and workloads.
The Cool tier is for data accessed less frequently but still needs to be available quickly. It offers lower storage costs than Hot but charges more when you access the data. This tier suits backups and disaster recovery data.
The Archive tier is the cheapest for storing data but has the highest cost and latency when retrieving it. Data in Archive is offline and can take hours to restore, so it is best for long-term retention of data you rarely need.
Code Comparison
Here is how you set the access tier to Hot using Azure CLI for a blob storage container.
az storage blob update --container-name mycontainer --name myblob --account-name mystorageaccount --tier Hot
Cool Tier Equivalent
To set the access tier to Cool for the same blob, you change the tier value.
az storage blob update --container-name mycontainer --name myblob --account-name mystorageaccount --tier Cool
When to Use Which
Choose Hot tier when you need fast, frequent access to your data, such as for live applications or analytics. Pick Cool tier for data you access less often but still need quickly, like backups or logs. Use Archive tier for data you rarely access and want to store cheaply for long periods, such as compliance archives or old records.