Storage Account in Azure: Types, Features, and Real-World Uses
An Azure Storage Account is the top-level container that provides a unique namespace for all the data services Azure offers — Blob, File, Queue, and Table storage — accessible over HTTP or HTTPS.
Types of Storage Accounts
- Standard general-purpose v2 — supports Blob, File, Queue, and Table storage, suitable for most workloads
- Premium block blobs — optimized for high-transaction, low-latency workloads
- Premium file shares — high-performance SMB and NFS file shares
- Premium page blobs — designed for frequently accessed, small read/write operations
Key Features
- Redundancy options like LRS, ZRS, GRS, and RA-GRS for durability and disaster recovery
- Access tiers — Hot, Cool, and Archive — to balance cost against access frequency
- Security through encryption at rest, shared access signatures, and role-based access control
- Lifecycle management policies to automatically move or delete aging data
Real-World Uses
- Hosting static website assets and backup files in Blob Storage
- Storing application logs and telemetry data cost-effectively
- Serving as the backing store for Azure VMs' managed disks
- Sharing files across teams using Azure File Shares
Ready to master Microsoft Azure?
Join Microsoft Azure Training Course at Uncodemy and learn with hands-on projects and mentor support.
Creating a Storage Account Step by Step
You can create an account in the Azure Portal under Storage accounts > Create, but the Azure CLI makes the choices visible and repeatable. The account name must be globally unique, between 3 and 24 characters, and use only lowercase letters and numbers, because it becomes part of the public endpoint URL.
# Sign in and create a resource group
az login
az group create --name rg-demo-storage --location centralindia
# Create a general-purpose v2 account with secure defaults
az storage account create \
--name stdemoapp01 \
--resource-group rg-demo-storage \
--location centralindia \
--sku Standard_ZRS \
--kind StorageV2 \
--access-tier Hot \
--min-tls-version TLS1_2 \
--allow-blob-public-access false \
--https-only true
# Create a private container
az storage container create \
--account-name stdemoapp01 \
--name invoices \
--auth-mode login
Once created, each service gets its own endpoint, for example https://stdemoapp01.blob.core.windows.net for blobs and https://stdemoapp01.file.core.windows.net for file shares.
Picking Redundancy and Tier for Your Workload
The SKU you choose is mainly a redundancy decision. A simple way to reason about it:
| Question | If yes, consider |
|---|---|
| Can the data be recreated easily, such as temporary processing files? | LRS |
| Must the app keep working if one datacenter in the region fails? | ZRS |
| Do you need a copy in a second region for disaster recovery? | GRS or GZRS |
| Should that secondary copy be readable during an outage? | RA-GRS or RA-GZRS |
Access tiers are a separate choice made per blob or as the account default. Keep frequently read data in Hot, data read occasionally in Cool or Cold, and long-term archives in Archive. Remember that Archive blobs are offline: they must be rehydrated before they can be read, which can take hours.
Automating tier changes with a lifecycle rule
This policy moves log blobs to Cool after 30 days without modification, to Archive after 180 days, and deletes them after a year:
{
"rules": [
{
"enabled": true,
"name": "age-out-logs",
"type": "Lifecycle",
"definition": {
"filters": { "blobTypes": ["blockBlob"], "prefixMatch": ["logs/"] },
"actions": {
"baseBlob": {
"tierToCool": { "daysAfterModificationGreaterThan": 30 },
"tierToArchive": { "daysAfterModificationGreaterThan": 180 },
"delete": { "daysAfterModificationGreaterThan": 365 }
}
}
}
}
]
}
Securing Access the Right Way
- Prefer Microsoft Entra ID over account keys. Give apps a managed identity and assign a role such as Storage Blob Data Reader, so no secret sits in your configuration.
- Keep SAS tokens short-lived and narrow. Grant only the permissions and container needed, and favour user delegation SAS where possible.
- Disable shared key access once every client uses Entra ID, and rotate keys regularly while they are still in use.
- Restrict the network. Use firewall rules or private endpoints so the account is reachable only from your virtual network.
- Turn on soft delete and versioning for blobs and containers to recover from accidental deletion or overwrites.
Mistakes Teams Commonly Make
- Leaving containers with anonymous public access when only a few files need to be shared.
- Storing account keys in source code or front-end apps.
- Putting everything in Archive to save money, then discovering urgent reads are slow and incur retrieval charges.
- Choosing LRS for critical data without checking recovery requirements.
- Using one account for unrelated apps, which mixes permissions, monitoring and limits.
Check Azure's official pricing page for current storage, transaction and retrieval costs before deciding on a tier mix.