In this article we will look into details of Azure Storage Accounts . Storage service should be planned carefully almost every service related to it
- Storage Accounts and Types
- Creating Azure Storage account
- Creating Storage Account using CLI
Azure storage account is a secure account that provides access to Azure storage services and a unique namespace for storage resources.
To able to create Blob, Table, Queue, Files first we need to create Storage Account.
There are different possibilities and use-cases about to store data in Azure
Azure Tables: stores structured, non-relational. key-value pair(up to 1 MB in size) semi-structured data ( schemaless storage).
Note: Semi-structured data doesn’t fit neatly into tables, rows, and columns. Instead, semi-structured data uses tags or keys that organize and provide a hierarchy for the data. Semi-structured data is also referred to as non-relational or NoSQL data.
Azure Blobs: storage is optimized for storing massive amounts of unstructured data. Especially used for
- Serving images or documents directly to a browser.
- Storing files for distributed access.
- Streaming video and audio.
- Writing to log files.
Note: Client applications can access objects in Blob storage via HTTP/HTTPS, from anywhere in the world
Blob storage service components:
Storage Account: provides the namespace and manages access and authorization to all associated containers
Containers: provides logical groupings for blobs
You can change the access level Private, Blob or Container
Blobs: are of three types (block blobs, page blobs, append blobs) and are always stored inside containers.
Currently Azure offers three storage tiers for blob object storage:
- Hot storage tier: optimized for storing data that is accessed frequently.
- Cool storage tier: optimized for data that is infrequently accessed and stored for at least 30 days.
- Archive storage tier: for data that is rarely accessed and stored for at least 180 days with flexible latency requirements.
Azure Queues: provides reliable messaging for asynchronous communication between decoupled components.
- Messages can be up to 64KB
- Queues contains messages
- Expiry maximum can be set to 7 days.
Note: when messages are delivered to consumers, Azure Storage Queues operates in a “at least once” message delivery model.
When you create a storage account you will have 3 different choice:
- Storage (general purpose v1): this gives you access to all Azure Storage services, such as blobs, tables, files, and queues, in a unified account. It has two performance tiers: standard and premium ( does not support the latest features )
- StorageV2 (general purpose v2):
- Blob storage account: (binary large object). In this type of service you can store almost everything, it stores unstructured data, such as documents, images and so on.
Every storage account must belong to an Azure resource group
A storage account can store data up to 500 TB
Creating Azure Storage account
1- Open the Azure portal : https://portal.azure.com/
Create Storage Account using CLI : First we need to download Azure CLI, you can download from here
First we need to login to azure subscription using below command.
> az login
a- Create storage account using CLI:
> az storage account create --name devopsmaniastorage --resource-group myResourceGroup --sku Standard_LRS --kind StorageV2
b- Check storage account using CLI:
> az storage account show --name devopsmaniastorage
c- Delete storage account using CLI:
> az storage account delete --name devopsmaniastorage