Blob Storage and Cloud Storage
Object storage translates almost one-to-one: buckets hold objects, objects have keys, there are cheaper tiers for cold data, lifecycle rules move data between them. Azure adds one level, the storage account, and that changes naming, networking and redundancy settings.
On AWS this is… Amazon S3, S3 Storage Classes and S3 Versioning and Lifecycle.
The shape
| AWS S3 | Azure Blob Storage | Google Cloud Storage | |
|---|---|---|---|
| Top container | bucket (global name) | storage account (global name, 3–24 lowercase letters/digits) → container | bucket (global name) |
| URL | https://bucket.s3.eu-west-1.amazonaws.com/key |
https://account.blob.core.windows.net/container/blob |
https://storage.googleapis.com/bucket/object, gs://bucket/object |
| Redundancy chosen at | always multi-AZ (except One Zone classes) | the account: LRS, ZRS, GRS, RA-GRS, GZRS, RA-GZRS | the bucket location: region, dual-region, multi-region |
| Classes / tiers | Standard, IA, One Zone-IA, Glacier tiers, Intelligent-Tiering | access tiers Hot, Cool, Cold, Archive (per blob, default per account) | storage classes Standard, Nearline, Coldline, Archive; Autoclass |
| Minimum storage duration (cold tiers) | 30 days (IA), 90–180 days (Glacier) | Cool 30, Cold 90, Archive 180 days | Nearline 30, Coldline 90, Archive 365 days |
| Archive retrieval | restore before read (minutes to hours) | rehydrate before read (hours) | readable directly (higher retrieval cost) |
| Access control | IAM + bucket policies; Block Public Access | Entra ID RBAC (data roles), SAS tokens, account keys; "allow blob public access" off | IAM on bucket; uniform bucket-level access; public access prevention |
| Hierarchical namespace | S3 directory buckets / Express | Data Lake Storage (hierarchical namespace on the account) | hierarchical namespace buckets |
Azure storage accounts also host Files (SMB/NFS shares), Queues and Tables. One account name, four services, each with its own endpoint (blob, file, queue, table).
Access: keys, SAS, identities
An Azure storage account comes with two account keys: full control of everything in the account, the equivalent of the root user's access keys for that account. Shared Access Signatures (SAS) are signed URLs derived from a key (or, better, a user delegation SAS signed with Entra ID credentials). The modern setup is:
--allow-shared-key-access falseon the account, so only Entra ID (RBAC data roles) and user delegation SAS work;--allow-blob-public-access false;- clients use managed identities with
Storage Blob Data Reader/Contributor.
Google Cloud's equivalent of turning off ACL complexity is uniform bucket-level access (IAM only, no per-object ACLs), plus public access prevention. Signed URLs exist there too (V4 signing, ideally via a service account's signBlob rather than a key).
Model: picking a tier
Cold tiers trade cheaper storage for retrieval fees and minimum durations. Prices below are made up for illustration, chosen only to have realistic proportions; check current pricing for your region.
# ILLUSTRATIVE prices per GB-month and per GB read, NOT real list prices
tiers = {
# storage retrieval min days
"hot": (0.020, 0.000, 0),
"cool": (0.010, 0.010, 30),
"cold": (0.004, 0.030, 90),
"archive": (0.001, 0.050, 180),
}
def monthly_cost(tier, gb, reads_per_month, months_kept):
store, read, min_days = tiers[tier]
billed_months = max(months_kept, min_days / 30) # early deletion is billed up to the minimum
total = gb * store * billed_months + gb * reads_per_month * read * months_kept
return total / months_kept
scenarios = [
("app assets, read daily", 500, 30, 12),
("logs, read once a month", 500, 1, 12),
("backups, never read", 500, 0, 12),
("temp export, kept 1 month", 500, 0, 1),
]
for name, gb, reads, months in scenarios:
costs = {t: monthly_cost(t, gb, reads, months) for t in tiers}
best = min(costs, key=costs.get)
row = " ".join(f"{t} {c:7.2f}" for t, c in costs.items())
print(f"{name:<27} {row} -> {best}")app assets, read daily hot 10.00 cool 155.00 cold 452.00 archive 750.50 -> hot
logs, read once a month hot 10.00 cool 10.00 cold 17.00 archive 25.50 -> hot
backups, never read hot 10.00 cool 5.00 cold 2.00 archive 0.50 -> archive
temp export, kept 1 month hot 10.00 cool 5.00 cold 6.00 archive 3.00 -> archive
Two lessons hold whatever the real prices are: data you read often belongs in the hot tier, and the "temp export" case shows minimum duration charges at work (the cold tier costs more than cool for a one-month object). Google Cloud's Autoclass and Azure's lifecycle rules with daysAfterLastAccessTimeGreaterThan (access tracking) automate this decision.
Creating storage
Azure, sample session:
az storage account create -g rg-shop-prod-data -n stshopprod -l westeurope \
--sku Standard_ZRS --kind StorageV2 --access-tier Hot \
--min-tls-version TLS1_2 --allow-blob-public-access false --allow-shared-key-access false
az storage container create --account-name stshopprod -n invoices --auth-mode login
az storage blob upload --account-name stshopprod -c invoices -n 2026/10/inv-1001.pdf \
-f inv-1001.pdf --auth-mode login--auth-mode login makes the CLI use your Entra ID identity (which needs a data role such as Storage Blob Data Contributor) instead of fetching an account key.
Google Cloud, sample session:
gcloud storage buckets create gs://shop-prod-invoices --location=europe-west1 \
--default-storage-class=STANDARD --uniform-bucket-level-access --public-access-prevention
gcloud storage cp inv-1001.pdf gs://shop-prod-invoices/2026/10/
gcloud storage buckets update gs://shop-prod-invoices --lifecycle-file=lifecycle.jsonA Cloud Storage lifecycle file (move to Coldline after 90 days, delete after 7 years):
{
"rule": [
{ "action": { "type": "SetStorageClass", "storageClass": "COLDLINE" },
"condition": { "age": 90, "matchesStorageClass": ["STANDARD"] } },
{ "action": { "type": "Delete" }, "condition": { "age": 2555 } }
]
}The Azure equivalent is a lifecycle management policy on the account:
{
"rules": [{
"enabled": true, "name": "invoices-aging", "type": "Lifecycle",
"definition": {
"filters": { "blobTypes": ["blockBlob"], "prefixMatch": ["invoices/"] },
"actions": { "baseBlob": {
"tierToCold": { "daysAfterModificationGreaterThan": 90 },
"delete": { "daysAfterModificationGreaterThan": 2555 }
} }
}
}]
}az storage account management-policy create -g rg-shop-prod-data --account-name stshopprod --policy @policy.jsonTest yourself
Where is redundancy (LRS, ZRS, GRS) chosen for Azure Blob Storage?
- Per blob
- Per container
- On the storage account
- Per region automatically
You delete an object from a cold tier after 10 days. What usually happens?
- Nothing extra is billed
- You are billed as if it had stayed the minimum storage duration
- It is restored automatically
- The bucket is locked
What does --allow-shared-key-access false do on an Azure storage account?
- Disables all access
- Blocks account-key and account-key SAS authorisation, so only Entra ID (and user delegation SAS) work
- Makes the account public
- Enables versioning