Storing Data with Azure Storage
Azure Storage is a family of services for storing files, structured data, and messages at scale. The one you'll reach for most often is Blob Storage, built for unstructured files like images, videos, backups, and documents.
The hierarchy
- A storage account, the top-level container for all your storage services.
- Containers, similar to folders, group related blobs together.
- Blobs, the actual files themselves.
az storage account create --name kodstigenstorage --resource-group kodstigen-rg --sku Standard_LRS
az storage container create --name uploads --account-name kodstigenstorage
az storage blob upload --account-name kodstigenstorage --container-name uploads --name photo.jpg --file ./photo.jpg
When to use what
| Service | Best for |
|---|---|
| Blob Storage | Files: images, videos, backups, static website assets |
| Table Storage | Simple key-value / NoSQL data at massive scale |
| Queue Storage | Passing messages between parts of an application |
--sku Standard_LRS picks a pricing/redundancy tier, "Locally Redundant Storage", the cheapest option, keeping multiple copies within one data center.