Blob Tiers & Lifecycle
Containers · Hot · Cool · Cold · Archive · rehydration · lifecycle management rules
By the tools4free.dev team · Last reviewed November 13, 2026
Practice questions for this topic →
Containers
- Container names: 3 to 63 characters; lowercase letters, numbers and hyphens; start and end with a letter or number; no consecutive hyphens; unique in the account. A bad name returns 400.
- Blob names: 1 to 1,024 characters, case-sensitive.
- Anonymous access is Private by default. Levels: Private, Blob (read blobs, no listing), Container (list and read). It's set on the container only, never on a single blob, and only if the account allows blob public access.
- A container can get a default encryption scope at creation only.
Access tiers
| Tier | State | Minimum retention |
|---|---|---|
| Hot | Online; default account tier | No minimum listed |
| Cool | Online | 30 days |
| Cold | Online | 90 days |
| Archive | Offline: can't be read or modified | 180 days |
- Tiers apply to block blobs (including versions and snapshots), not append or page blobs.
- Early deletion charge: deleting, overwriting or moving a blob before the minimum is billed for the remaining days (a cool blob deleted at day 21 is charged 9 days). Minimums apply to general-purpose v2 accounts.
- Archive is supported only on LRS, GRS and RA-GRS accounts, not ZRS, GZRS or RA-GZRS. A blob with an encryption scope can't be archived. Premium block blob accounts can't be tiered.
- On an archived blob you can: Copy Blob, Delete, Undelete, Find Blobs by Tags, Get Blob Metadata (read-only), Get or Set Blob Tags, Get Blob Properties, List, Set Blob Tier. You can't read the content.
- Moves to a cooler tier, and cool or cold to hot, are instant. Archive to online can take up to 15 hours.
Rehydrating from Archive
| Method | Result |
|---|---|
| Set Blob Tier | Same blob changes tier. It stays archived until done and the request can't be cancelled. |
| Copy Blob to a new blob (different name or container) in an online tier | The source stays archived and the new blob is an independent copy. Can't copy archive to archive. |
- Priority Standard (default): up to 15 hours for objects under 10 GB. Priority High: might complete in under 1 hour for objects under 10 GB, costs more and can take longer. You can raise Standard to High while pending, not lower it.
- Status shows
rehydrate-pending-to-hotorrehydrate-pending-to-cool. You can use Event Grid to get an event when rehydration completes. - Archived snapshots and previous versions can only be rehydrated by copy.
- Lifecycle policies can't rehydrate. Trap: Set Blob Tier doesn't change last-modified time, so a lifecycle rule can send a rehydrated blob straight back to archive. Add
daysAfterLastTierChangeGreaterThantotierToArchive, or rehydrate by copy.
Lifecycle management
- A policy is a JSON document with up to 100 rules. Adding or editing rules can take up to 24 hours to go into effect and for the first run to start. Read and write the policy in full.
- Supported for block and append blobs in general-purpose v2, premium block blob and Blob Storage accounts. Tiering actions don't work on premium block blob accounts or append blobs.
- Filters:
blobTypes(required),prefixMatch(up to 10, case-sensitive, must start with the container name, no wildcards),blobIndexMatch(up to 10 conditions). Filters combine with AND and can only include, not exclude. No prefix means the whole account. - Actions:
tierToCool,tierToCold,tierToArchive,delete,enableAutoTierToHotFromCool. They can target the base blob, previous versions and snapshots. - Conditions:
daysAfterModificationGreaterThan,daysAfterCreationGreaterThan,daysAfterLastAccessTimeGreaterThan,daysAfterLastTierChangeGreaterThan(tierToArchive only). - Last access time conditions need access time tracking enabled first.
enableAutoTierToHotFromCoolneeds the last-access condition and moves a blob back to hot at most once per 30 days. - If several actions apply to a blob, the cheapest wins: delete beats archive, archive beats cool.
- A current-version delete doesn't run until previous versions and snapshots are deleted, so include them in the delete action.
- The policy is free; you pay for the tier operations. Delete operations are free. Delete doesn't work on blobs in immutable containers.
CLI and PowerShell
| Task | Azure CLI | PowerShell |
|---|---|---|
| Create a container | az storage container create --account-name <n> --name <c> --auth-mode login | New-AzStorageContainer -Name <c> -Context $ctx -Permission Off |
| Set anonymous access level | az storage container set-permission --name <c> --account-name <n> --public-access container --auth-mode key | Set-AzStorageContainerAcl -Container <c> -Permission Container -Context $ctx |
| Change tier or rehydrate | az storage blob set-tier --account-name <n> --container-name <c> --name <b> --tier Hot --rehydrate-priority Standard --auth-mode login | $blob.BlobClient.SetAccessTier("Hot", $null, "Standard") |
| Rehydrate by copy | az storage blob copy start --source-container <sc> --source-blob <sb> --destination-container <dc> --destination-blob <db> --account-name <n> --tier hot --rehydrate-priority standard --auth-mode login | Start-AzStorageBlobCopy ... -StandardBlobTier Hot -RehydratePriority Standard |
| Create a lifecycle policy | az storage account management-policy create --account-name <n> --policy @policy.json --resource-group <rg> | Set-AzStorageAccountManagementPolicy -ResourceGroupName <rg> -StorageAccountName <n> -Rule $rule1 |
| Enable last access tracking | az storage account blob-service-properties update --resource-group <rg> --account-name <n> --enable-last-access-tracking true | Enable-AzStorageBlobLastAccessTimeTracking -ResourceGroupName <rg> -StorageAccountName <n> -PassThru |
Exam Tips
Tick each tip once you can answer it without looking.
“Archive blob must be readable within an hour in an emergency” → Rehydrate with High priority (under 1 hour for objects under 10 GB). Trap: Standard priority can take up to 15 hours.
“Read an archived blob right now” → Not possible: rehydrate to an online tier first. Trap: a lifecycle rule to rehydrate: lifecycle can't rehydrate.
“Rehydrate an archived blob and keep the archived original” → Copy Blob to a new blob in an online tier. Trap: Set Blob Tier changes the original blob.
“Rehydrated blob keeps going back to archive” → Add daysAfterLastTierChangeGreaterThan to tierToArchive, or rehydrate by copy. Trap: turning off soft delete.
“Account is ZRS; set a blob to Archive” → Not supported: archive needs LRS, GRS or RA-GRS. Trap: GZRS also doesn't support it.
“Cool blob deleted at day 21” → Early deletion charge for the remaining 9 days of the 30-day minimum.
“Move append or page blobs to Cool” → Not possible: tiers apply to block blobs only.
“Cool after 30 days, archive after 90, delete after 365” → One rule with daysAfterModificationGreaterThan 30, 90 and 365 on base blobs. Trap: separate containers or accounts for each stage.
“Rule based on when a blob was last read” → Enable last access time tracking, then use daysAfterLastAccessTimeGreaterThan. Trap: daysAfterModification.
“Cool blobs should return to hot when accessed” → enableAutoTierToHotFromCool. Trap: a tierToHot action: it doesn't exist.
“Limit a rule to logs/2026 blobs” → prefixMatch starting with the container name. Trap: wildcards in the prefix.
“Exclude one folder from a rule” → Filters can only include: list prefixes that leave it out. Trap: an exclude filter.
“New lifecycle rule has done nothing yet” → Wait: a new or edited rule can take up to 24 hours to go into effect. Trap: the rule being invalid.
“Delete rule leaves current blobs that have versions” → Include previous versions and snapshots in the delete action. Trap: deleting base blobs only.
“Premium block blob account: tier to Cool by policy” → Not supported. Trap: lifecycle tiering works on all accounts.
“Delete and archive conditions both true for a blob” → The cheapest action wins: delete. Trap: archive first.
“Container named MyContainer_1” → Invalid: uppercase and underscore; use lowercase letters, numbers and hyphens, 3 to 63 characters. Trap: underscores are allowed.
“Anonymous read of one blob without listing” → Container level Blob. Trap: setting access on the blob: not possible.
Sources
- Access tiers for blob data
- Blob rehydration from the archive tier
- Rehydrate an archived blob to an online tier
- Lifecycle management overview
- Lifecycle management policy structure
- Configure a lifecycle management policy
- Naming containers, blobs and metadata
- Configure anonymous read access
Checked against Microsoft Learn on November 13, 2026.