2.1AZ-104Intermediate
Est: ~15 mins•Verified: 2026-08
Storage Accounts: Blob Access Tiers & Lifecycle
Deploy and optimize Azure Storage accounts, configure Hot/Cool/Cold/Archive tiers, automated lifecycle management rules, and immutable blob storage.
Tags:#Azure Storage#Blob#Lifecycle Management#Archive#Cost Optimization#AZ-104
01
Overview
Azure Blob Storage is Microsoft's massively scalable object storage solution for unstructured data. Optimizing storage performance and cost requires mastering Blob Access Tiers:
- Hot Tier: Optimized for data that is in active, frequent use. Lowest access cost; highest storage cost.
- Cool Tier: Optimized for data that is infrequently accessed and stored for at least 30 days. Lower storage cost; higher access cost.
- Cold Tier: Optimized for infrequently accessed data stored for at least 90 days.
- Archive Tier: Offline tier for data stored for at least 180 days (backups, legal records). Lowest storage cost; highest retrieval cost. Rehydration takes up to 15 hours (or under 1 hour with High Priority).
Lifecycle Management Rules automate tier transitions and deletions based on file age or last modified date.
---
02
When to Use: Tier Cost Trade-off Matrix
| Access Tier | Min Retention Period | Data Access Latency | Best Used For |
|---|---|---|---|
| Hot | None | Milliseconds | Active web assets, daily working files. |
| Cool | 30 days | Milliseconds | Short-term backups, raw telemetry logs accessed monthly. |
| Cold | 90 days | Milliseconds | Quarterly reports, secondary disaster recovery replicas. |
| Archive | 180 days | Hours (Offline rehydration) | Compliance archives, legal evidence, long-term regulatory logs. |
---
03
Prerequisites
Azure Resources:
- General-purpose v2 (standard) storage account or Blob storage account.
- Contributor or Storage Blob Data Owner permissions.
---
04
Portal Path
TEXT
Azure Portal (https://portal.azure.com)
└── Storage accounts > [Target Storage Account]
└── Data management
├── Containers (Create containers, set public access level)
└── Lifecycle management (Add automated tiering & deletion rules)---
05
Step-by-Step Implementation
Step 1: Configure Automated Lifecycle Management Rule
- In the Azure portal, navigate to your storage account.
- Under Data management, select Lifecycle management > Click Add a rule.
- Rule name:
Archive-After-30-Delete-After-365. - Rule scope:
Apply rule to all blobs in the storage account. - Blob type: Check
Block blobs>Base blobs. - Configure rules:
- If base blobs were Last modified more than
30 days ago> Move to Cool storage. - If base blobs were Last modified more than
90 days ago> Move to Archive storage. - If base blobs were Last modified more than
365 days ago> Delete the blob.
- Click Add to save.
---
06
PowerShell Automation
Create Lifecycle Management Policy via Azure PowerShell:
PowerShell
# Define lifecycle rule action
$Action = Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToCool -daysAfterModificationGreaterThan 30 `
| Add-AzStorageAccountManagementPolicyAction -BaseBlobAction TierToArchive -daysAfterModificationGreaterThan 90 `
| Add-AzStorageAccountManagementPolicyAction -BaseBlobAction Delete -daysAfterModificationGreaterThan 365
# Create rule filter
$Filter = New-AzStorageAccountManagementPolicyFilter -PrefixMatch @("logs/", "backups/") -BlobType blockBlob
# Compile rule and apply to storage account
$Rule = New-AzStorageAccountManagementPolicyRule -Name "AutoArchiveRule" -Action $Action -Filter $Filter
Set-AzStorageAccountManagementPolicy -ResourceGroupName "rg-data" -StorageAccountName "storproduction001" -Rule $Rule---
07
Verification Checklist
VERIFICATION CHECKLIST
0/4 (0%)
Lifecycle management rule displays active status in storage account.
Blobs older than 30 days automatically shift access tier from Hot to Cool.
Blobs in Archive tier display status Archive and cannot be read without rehydration.
Deletion rules successfully purge files exceeding 365 days.
08
Troubleshooting Matrix
| Error Code / Symptom | Root Cause | Exact Resolution |
|---|---|---|
| Early Deletion Penalty Fee | Blob moved to Cool and deleted before 30 days, or Archive before 180 days. | Adhere to minimum retention durations before deleting or re-tiering blobs. |
| Cannot download Archived blob | Archive tier is offline storage. Blob must be rehydrated to Hot/Cool first. | Initiate Rehydrate blob action in Azure portal; select Standard or High Priority. |
---
09
AZ-104 Exam Notes
Exam Blueprint & High-Yield Traps
High-Frequency Exam Objectives & Traps:
- Early Deletion: Cool has a 30-day minimum, Cold has 90-day, and Archive has 180-day minimum. Deleting or changing tier before this period incurs a pro-rated early deletion fee.
- Archive Rehydration: Archive blobs cannot be read directly by applications. You must rehydrate them to Hot or Cool first.
- Hierarchical Namespace: Enabling Data Lake Gen2 (Hierarchical Namespace) allows directory-level ACLs.
---
10