Azure Storage Cheat Sheet
Overview of Azure Storage services including Blob, Table, Queue, and File storage with CLI commands and access tiers.
2 PagesBeginnerJan 28, 2026
Blob Storage CLI
Create containers and manage blobs.
bash
az storage container create \ --account-name mystorageacct --name mycontaineraz storage blob upload \ --account-name mystorageacct --container-name mycontainer \ --name file.txt --file ./file.txtaz storage blob download \ --account-name mystorageacct --container-name mycontainer \ --name file.txt --file ./file.txtaz storage blob list \ --account-name mystorageacct --container-name mycontainer --output table
Generate a SAS Token
Create a time-limited, scoped access token for a blob.
bash
az storage blob generate-sas \ --account-name mystorageacct \ --container-name mycontainer \ --name file.txt \ --permissions r \ --expiry 2026-12-31T00:00:00Z \ --output tsv
Python SDK: Upload Blob
Upload a file using the azure-storage-blob SDK.
python
from azure.storage.blob import BlobServiceClientclient = BlobServiceClient.from_connection_string(conn_str)container = client.get_container_client("mycontainer")with open("file.txt", "rb") as data: container.upload_blob(name="file.txt", data=data, overwrite=True)
Storage Service Types
The four main data services under a storage account.
- Blob Storage- Unstructured object storage for files, images, backups
- Table Storage- NoSQL key-value store for structured, schemaless data
- Queue Storage- Simple message queuing for decoupling application components
- File Storage- Fully managed SMB/NFS file shares mountable by VMs and on-prem
Blob Access Tiers & Redundancy
Key blob access tiers & redundancy to know.
- Hot Tier- Optimized for frequently accessed data, higher storage cost
- Cool Tier- Lower storage cost, higher access cost, for infrequent access
- Archive Tier- Cheapest, offline storage, requires rehydration before read
- LRS- Locally redundant storage: 3 copies in one datacenter
- GRS- Geo-redundant storage: replicates to a secondary paired region
Pro Tip
Use a SAS token scoped to the minimum required permissions and a short expiry instead of sharing storage account keys — keys grant full account access and cannot be revoked individually.
Was this cheat sheet helpful?
Explore Topics
#AzureStorage#AzureStorageCheatSheet#CloudComputing#Beginner#BlobStorageCLI#GenerateASASToken#Python#SDK#DataStructures#CommandLine#CheatSheet#SkillVeris
Advertisement
Sri Hayavadhana Info-Tech
Professional Web Designing Services
- Responsive Websites
- E-commerce Solutions
- SEO Friendly Design
- Fast & Secure
- Support & Maintenance