Lesson 2 of 5 Azure Blob Storage Data Management

Choosing Blob Access Tiers

Access tiers lower the cost of rarely read data. This lesson explains the Hot, Cool, Cold and Archive tiers, how tiers are changed and how archived data is rehydrated.

Learning outcomes

After completing this lesson, you will be able to:

  • Distinguish between the Hot, Cool, Cold and Archive tiers and their minimum retention periods.
  • Explain how to set the default and per-blob tiers.
  • Describe rehydration from the Archive tier.

The four tiers

Hot is optimized for frequently accessed data, with the highest storage cost and the lowest access cost. Cool is for infrequently accessed data stored for at least 30 days, with lower storage and higher access costs. Cold is for rarely accessed data stored for at least 90 days, still online with millisecond latency. Archive is an offline tier for data stored for at least 180 days, with the lowest storage cost and the highest retrieval cost; archived blobs cannot be read or modified until they are rehydrated.

Hot
Minimum retentionNone
LatencyMilliseconds
Storage costHighest
Choose when Active data
Cool
Minimum retention30 days
LatencyMilliseconds
Storage costLower
Choose when Short-term backups, older content
Cold
Minimum retention90 days
LatencyMilliseconds
Storage costLower still
Choose when Rarely read data kept for months
Archive
Minimum retention180 days
LatencyHours (rehydration)
Storage costLowest
Choose when Long-term retention, compliance archives

Moving a blob out of Cool, Cold or Archive, or deleting it, before its minimum period incurs an early deletion charge for the remaining days.

The following diagram shows the tiers over a backup's life.

Access tiers over a backup's seven-year life. New backups are infrequently read and kept over 30 days, so they start in Cool; after 30 days they move to Archive, because audits give two days' notice for standard rehydration and the retention far exceeds the 180-day minimum. A lifecycle management rule automates both steps.
The timeline is not to scale.
Sort into groups

Which tier?

Exam skills 2.3.3

Choose the cheapest tier that still meets each access pattern.

Log in to try this activity Interactive activities are free with an account.

Setting and changing tiers

The account's default access tier (Hot, Cool or Cold) applies to blobs that have no explicit tier. Each block blob can be given its own tier on upload or later, in the portal (Change tier), with az storage blob set-tier, with AzCopy's --block-blob-tier, or by lifecycle management rules. Archive can be set only per blob, never as the account default. Tiers apply to block blobs in general-purpose v2 accounts; premium accounts have no tiers.

To read an archived blob, rehydrate it by changing its tier to Hot, Cool or Cold, or copy it to a new blob in an online tier. Rehydration has Standard priority (up to 15 hours) or High priority (under one hour for blobs smaller than 10 GB, at a higher cost). An Event Grid event can notify an application when rehydration completes.

Scenario questions

Changing tiers and rehydrating

Exam skills 2.3.3

Work out how tiers are set and how archived data is read.

Log in to try this activity Interactive activities are free with an account.
Worked example

Tiering backups

A company stores database backup files as blobs. Backups from the last week are restored occasionally, backups older than a month are needed only for audits a few times a year with a notice of two days, and all backups must be kept for seven years. Which tiers should the backups use over their life?

Keep new backups in Cool, since they are infrequently read and kept more than 30 days, then move them to Archive after 30 days, because two days' notice allows standard rehydration and the seven-year retention exceeds the 180-day minimum. A lifecycle management rule can apply both transitions and delete blobs after seven years. Hot would cost more for rarely read data, and Archive for the newest backups would make occasional restores slow.

Check yourself

Can the Archive tier be set as a storage account's default access tier?

Show answer

No. The default can be Hot, Cool or Cold; Archive is set per blob.

Exam Tips

Remember for the exam

  • Minimums: Cool 30 days, Cold 90 days, Archive 180 days.
  • Archive is offline; rehydrate to an online tier before reading.
  • High-priority rehydration takes under an hour for blobs under 10 GB.
  • The account default tier can be Hot, Cool or Cold, never Archive.