Azure Storage Account
Last updated:
AZURESTORAGE
- Account name has to be globally unique
- Exists in a region
- Can have different types of [[202404071304 Resiliency Overview|resiliency]].
- Can impact intractability (SLA for storage accounts)
- Can impact durability ( [[202404091908 Azure Storage Redundancy]])
- LRS 11 9s
- ZRS 12 9s
- GRS 16 9s
- GZRS 16 9s
- Has API access
- Have 2 all powerful access keys (Protect them or disable them)
- Can be rotated if key is compromised
- Performance varies based on tier
Types of storage Accounts
Type of storage account | Supported storage services | Redundancy options | Usage |
---|---|---|---|
Standard general-purpose v2 | Blob Storage (including Data Lake Storage1), Queue Storage, Table Storage, and Azure Files | LRS, GRS, RA-GRS GRS,GZRS,RA-GZRS | Standard storage account type for blobs, file shares, queues, and tables. Recommended for most scenarios using Azure Storage. If you want support for network file system (NFS) in Azure Files, use the premium file shares account type. |
Premium block blobs | Blob Storage (including Data Lake Storage1) | LRS ZRS | Premium storage account type for block blobs and append blobs. Recommended for scenarios with high transaction rates or that use smaller objects or require consistently low storage latency. Learn more about example workloads. |
Premium file shares | Azure Files | LRS ZRS | Premium storage account type for file shares only. Recommended for enterprise or high-performance scale applications. Use this account type if you want a storage account that supports both Server Message Block (SMB) and NFS file shares. |
Premium page blobs | Page blobs only | LRS ZRS | Premium storage account type for page blobs only. Learn more about page blobs and sample use cases. |
Types based on performance tier
- Standard - good for most scenarios
- Premium - required for low latency
- Block blobs
- File shares
- Page blobs
Types based on access tier
Premium is just premium. For General purpose v2 : For blobs:
- Hot (Pay more to store/Pay less to retrieve)
- Cool (Pay less to store/Pay more to retrieve)
- Archive (Offline) For files:
- Transaction optimized
- Hot
- Cool
[[202404121117 Azure Storage Services]]
Money
- For standard cost is consumption-based
- For premium cost is provision-based
- [[202404121254 Azure Managed Disks|Managed Disks]] are always provision-based
- Operations and data transfer cost money too
- GRS etc will cost money too
Access
- Use [[202404011327 Entra ID|AAD]] (Preferred approach)
- Dataplane [[202404061249 Azure RBAC|RBAC]]
- Access keys (Do not use)
- Shared Access Signatures
- Types: Account and Service
- Can create adhoc
- Policy can be created by service
- Signed by Access Keys
- If access key disabled, then this does not work
- Can do time limit, ip limit, operations restrictions.
Encryption
- Encrypted at rest
- You can use your own key
- Cross-tenant CMK supported (if you are a SaaS service and customer wants to own the key)
- Encryption scopes enable container/blob level
Lifecycle management
- Based on [[202404091859 Azure Storage Account#Types based on performance tier]]
- you can decide to remove stuff after 90days for example
- Create rules and let it automatically remove stuff as needed based on when it was last modified, etc.
- Maybe regulatory requirement
Native Protection
- Snapshot
- Versioning for block blobs
- Change feed
- Soft delete
- Point-in-time-restore {Replacement for snapshots}
- Above 3 combine to form this
references:
Storage redundancy Create an account SAS Types of Azure Storage Accounts