Azure Storage Accounts and Blob Storage: Redundancy, Access Tiers, Lifecycle, Data Lake and Static Websites
Storage Account Services
| Service | Use |
|---|---|
| Blob Storage | Objects: images, backups, logs, data lakes |
| Azure Files | Managed SMB and NFS file shares |
| Queue Storage | Simple message queue |
| Table Storage | Simple NoSQL key-value (Cosmos DB for Table is the premium option) |
| Managed disks | VM disks (separate resource type) |
- Use Standard general-purpose v2 for most needs. Premium accounts use SSD for low latency (block blobs, file shares, page blobs)
- The account name is globally unique, 3 to 24 lowercase letters and numbers
- Endpoints look like
https://stshopprod.blob.core.windows.net
Redundancy Options
| Option | Copies | Protects against |
|---|---|---|
| LRS (locally redundant) | 3 copies in one datacenter | Disk and rack failure |
| ZRS (zone-redundant) | 3 copies across 3 zones in one region | Datacenter (zone) failure |
| GRS (geo-redundant) | LRS in primary + LRS in a paired region | Regional disaster (data available after Microsoft or customer failover) |
| RA-GRS | GRS plus read access to the secondary | Read during regional outage |
| GZRS | ZRS in primary + LRS in the secondary region | Zone and region failure |
| RA-GZRS | GZRS plus read access to secondary | Highest durability and availability |
Remember Geo replication is asynchronous, so recent writes may be lost in a regional disaster (RPO is not zero). ZRS is synchronous inside the region.
bash
az storage account create -g rg-data -n stshopprod482 -l centralindia --sku Standard_ZRS --kind StorageV2 \
--min-tls-version TLS1_2 --allow-blob-public-access false --https-only true
az storage container create --account-name stshopprod482 -n reports --auth-mode login
az storage blob upload --account-name stshopprod482 -c reports -n 2026/report.pdf -f report.pdf --auth-mode logi
Access Tiers
| Tier | For | Notes |
|---|---|---|
| Hot | Frequent access | Highest storage cost, lowest access cost |
| Cool | Infrequent, kept at least 30 days | Lower storage cost |
| Cold | Rare, kept at least 90 days | Lower again |
| Archive | Almost never, kept at least 180 days | Cheapest, offline: rehydrate (hours) before reading |
bash
az storage blob set-tier --account-name stshopprod482 -c reports -n 2024/old.pdf --tier Archive --auth-mode login
az storage blob set-tier --account-name stshopprod482 -c reports -n 2024/old.pdf --tier Hot --rehydrate-priority Standard --auth-mode logi
Lifecycle Management
json
{"rules": [{
"name": "age-out", "enabled": true, "type": "Lifecycle",
"definition": {
"filters": {"blobTypes": ["blockBlob"], "prefixMatch": ["reports/"]},
"actions": {"baseBlob": {
"tierToCool": {"daysAfterModificationGreaterThan": 30},
"tierToArchive": {"daysAfterModificationGreaterThan": 180},
"delete": {"daysAfterModificationGreaterThan": 2555}}}}}]}
bash
az storage account management-policy create --account-name stshopprod482 -g rg-data --policy @policy.jso
Protecting Data
| Feature | Purpose |
|---|---|
| Soft delete (blobs and containers) | Recover deleted data for a retention period |
| Versioning | Keep previous versions on overwrite |
| Point-in-time restore | Restore block blobs to an earlier time |
| Immutable storage (WORM) | Time-based retention and legal hold for compliance |
| Resource locks | Stop account deletion |
| Object replication | Copy blobs asynchronously between accounts or regions |
| Encryption | Always on with Microsoft-managed keys. Optional customer-managed keys in Key Vault |
bash
az storage account blob-service-properties update -n stshopprod482 -g rg-data --enable-delete-retention true --delete-retention-days 14 \
--enable-versioning true --enable-container-delete-retention true --container-delete-retention-days 14
Data Lake Storage Gen2
- Turn on hierarchical namespace to get real folders, POSIX-style ACLs and fast directory operations for analytics (Synapse, Databricks, Fabric, Spark)
- Same Blob account with analytics features. Decide before creating the account (it can be enabled by upgrade in some cases)
Static Website
bash
az storage blob service-properties update --account-name stshopprod482 --static-website --index-document index.html --404-document 404.html --auth-mode login
az storage blob upload-batch --account-name stshopprod482 -s ./site -d '$web' --auth-mode logi
- For HTTPS on a custom domain and caching, put Azure Front Door or CDN in front
Practice
- Create a ZRS account with public access disabled
- Upload a file, change its tier to Cool and back
- Add a lifecycle rule and soft delete
- Choose a redundancy option for: dev files, regional-critical data, global compliance archive
Conclusion
Storage accounts provide Blob, Files, Queue and Table. Pick redundancy by failure you must survive (ZRS for zones, GZRS for regions), tier data by access frequency, automate with lifecycle rules and protect with soft delete, versioning and immutability.
Quick Summary: services; redundancy; tiers; lifecycle; protection; Data Lake; static website.

