0
0
AzureComparisonBeginner · 3 min read

Azure Hot vs Cool vs Archive Tier: Key Differences and Usage

Azure storage offers 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.

FactorHot TierCool TierArchive Tier
Access FrequencyFrequentInfrequentRare
Storage CostHighestLower than HotLowest
Access CostLowestHigher than HotHighest
LatencyLowest (milliseconds)Low (milliseconds)High (hours)
Data Retrieval TimeImmediateImmediateUp to hours
Use CaseActive data, appsBackup, disaster recoveryLong-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.

bash
az storage blob update --container-name mycontainer --name myblob --account-name mystorageaccount --tier Hot
Output
Blob tier updated to Hot
↔️

Cool Tier Equivalent

To set the access tier to Cool for the same blob, you change the tier value.

bash
az storage blob update --container-name mycontainer --name myblob --account-name mystorageaccount --tier Cool
Output
Blob tier updated to 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.

Key Takeaways

Use Hot tier for frequently accessed data with fast retrieval needs.
Cool tier balances lower storage cost with moderate access frequency.
Archive tier is best for rarely accessed data with long retrieval times.
Storage cost decreases from Hot to Archive, but access cost and latency increase.
Choose tiers based on your data access patterns and cost priorities.