Almost every Azure project needs somewhere cheap and durable to store files: backups, images, logs, exports and media. Azure Blob Storage is Microsoft’s object storage service, designed to hold massive amounts of unstructured data at a very low cost per gigabyte. This guide explains how Azure Blob Storage works, then walks you through creating a storage account, containers and your first uploads with the Azure CLI. This article covers Azure Blob Storage Basics in detail.
How Azure Blob Storage Is Organized – Azure Blob Storage Basics
Three concepts explain almost everything:
- Storage account — the top-level namespace that provides a unique endpoint, for example
https://mystorage.blob.core.windows.net/. - Container — roughly equivalent to a folder or an S3 bucket; it groups blobs together.
- Blob — the actual object. Block blobs store files up to roughly 190 TB, append blobs are optimized for logging, and page blobs back Azure VM disks.
Azure Blob Storage Access Tiers Explained – Azure Blob Storage Basics
Each blob lives in an access tier that trades storage price against retrieval price and speed:
- Hot — highest storage cost, lowest access cost. For data used frequently.
- Cool — cheaper storage, pricier reads, minimum retention of 30 days. Great for monthly backups.
- Cold — even cheaper, minimum 90 days, for rarely touched data.
- Archive — the cheapest tier, but data is offline and takes hours to rehydrate. Minimum 180 days. Ideal for compliance archives.

Prerequisites
- An Azure subscription and a resource group
- Azure CLI installed and signed in with Storage Blob Data Contributor rights on the account
Step 1: Create a Storage Account
az storage account create \
--name kblinuxbackups01 \
--resource-group rg-linux-prod \
--location eastus \
--sku Standard_LRS \
--kind StorageV2
Storage account names must be globally unique, 3–24 characters, lowercase letters and numbers only. Standard_LRS keeps three copies inside one datacenter — the cheapest redundancy option. Use Standard_GRS if you need a second region copy.
Step 2: Create a Container in Azure Blob Storage
az storage container create \
--name server-backups \
--account-name kblinuxbackups01 \
--auth-mode login
Using --auth-mode login authenticates with your Microsoft Entra ID identity instead of the account key, which is the recommended practice. By default the container is private — no anonymous access at all.
Step 3: Upload, List and Download Blobs
az storage blob upload \
--account-name kblinuxbackups01 \
--container-name server-backups \
--name db-2026-10-20.sql.gz \
--file ./db-2026-10-20.sql.gz \
--auth-mode login
az storage blob list \
--account-name kblinuxbackups01 \
--container-name server-backups \
--auth-mode login \
--output table
az storage blob download \
--account-name kblinuxbackups01 \
--container-name server-backups \
--name db-2026-10-20.sql.gz \
--file ./restore.sql.gz \
--auth-mode login
This pairs well with local backup automation: our guide on automating Linux backups with rsync and cron shows the scheduling side, and you can push the resulting archives into a container afterwards.
Step 4: Change a Blob’s Access Tier
az storage blob set-tier \
--account-name kblinuxbackups01 \
--container-name server-backups \
--name db-2026-10-20.sql.gz \
--tier Cool \
--auth-mode login
For hands-off management, lifecycle management policies can move blobs to Cool after 30 days and to Archive after 180 days automatically.
Step 5: Share a File Securely with a SAS Token
Need to give someone temporary access to one file without sharing keys? Generate a Shared Access Signature:
az storage blob generate-sas \
--account-name kblinuxbackups01 \
--container-name server-backups \
--name db-2026-10-20.sql.gz \
--permissions r \
--expiry 2026-10-21T12:00Z \
--auth-mode login \
--as-user
Append the output to the blob URL. When it expires, access ends — no cleanup required. The Microsoft Learn introduction to Azure Blob Storage covers SAS delegation and security in more depth.
Protecting Data: Versioning and Soft Delete
Two storage account features deserve to be switched on from day one. Blob versioning automatically keeps a previous version every time a blob is overwritten, so an application bug that corrupts a file at 2 p.m. can be rolled back to the 1 p.m. version. Soft delete retains deleted blobs and containers for a configurable window (7–365 days), protecting you from both accidents and ransomware-style mass deletions. Enable soft delete with:
az storage account blob-service-properties update \
--account-name kblinuxbackups01 \
--enable-delete-retention true \
--delete-retention-days 14
Combined with lifecycle rules that push aging backups from Hot to Cool to Archive, these settings turn a plain container into a genuinely resilient backup target. One caution: versioning multiplies storage consumption on frequently overwritten blobs, so scope it to containers where recovery matters most.
Troubleshooting
- AuthenticationFailed / 403: your account lacks a data-plane role. Assign yourself Storage Blob Data Contributor on the storage account and wait a few minutes for propagation.
- The specified container does not exist: check for typos in the container name with
az storage container list. - Early deletion fees on Cool/Cold/Archive: deleting or moving a blob before its minimum retention period still bills you for the full period. Plan tier changes carefully.
Conclusion
Azure Blob Storage gives you durable, inexpensive object storage with granular control through containers, access tiers and SAS tokens. Start with a private container in the Hot tier, automate uploads from your backup jobs, and let lifecycle policies move aging data to cheaper tiers automatically.