Objective: Understanding the types and properties of the Azure Storage account, Create storage account via the Azure portal.
Azure account, you can create for free
Azure Storage is a cloud storage service provided by Microsoft, which is highly available, scalable, durable, redundant, and secure.
Types of Azure Storage:
- Blobs (Binary large object)
- Data Lake Storage Gen2
Blobs stores a large amount of unstructured data like video, audio, text, and images in the cloud platform. There are three different types of blobs available
- Block blobs are made up of blocks with unique block ID, each block can be a different size. You can upload blocks in parallel and can set up it in sequence in your final commit step, each block includes an MD5 hash to verify upload progress. Operations used to modify block blobs are insert, replace, and delete.
- Maximum size of block is 100MB
- Maximum blocks in block blob are 50,000
- Maximum size of the block blob is 4.75 TB
- Page blobs are a collection of 512-byte pages, which are designed for frequent random read/write operations. It stores data like OS and data disks for virtual machine and database
- Maximum size of the page blob is 8 TB
- The operation can be performed in Page blob are read and write.
- Append blob is made up of blocks, it is used only for the append operations. When you modify an append blob, blocks are added to the end of the blob only.
- Maximum size of the block is 4 MB
- Maximum blocks in append blob are 50,000
- Maximum size of the append blob is 195 GB
Files service provides file shares in the cloud, it also supports SMB (Server Message Block) protocol which can be mounted by Windows, Linux and Mac OS. It is also useful to replace on-premises storage and left-shift your application which required file share.
Table storage stores large amounts of structured data NoSQL data in the cloud. Azure tables are ideal for storing structured and non-relational data.
Queue storage service is used to store messages. A queue can contain millions of messages up to the total capacity limit of a storage account. The maximum size of the Queue message is 64 KB.
Data Lake Storage Gen2 is built on blob storage, which is dedicated to big data analytics.
Create Azure storage account with unique name which can be accessed via HTTP or HTTPS. You can create by using Azure Portal, Azure PowerShell, Azure CLI or Azure Resource Manager template.
Storage account Creation
Log in to the Azure Portal -> Click on “All services” or “Create a resource” -> Search for storage account from the top search bar on the home page and click on Add or Create to create an account as shown below.
Subscription is to manage your deployed resources and costs based upon the subscription you have chosen.
Resource group manage all the related resources in one group, you can select existing resource group or create a new resource group
Storage account name your storage account with unique names, name must be 3 to 24 characters long and contains only lowercase letter and numbers.
Location is the region where you want to deploy your resource, preferred is to choose the nearest region.
Performance, there are two types of storage Standard storage where data stores on Hard Disk Drive (HDD) provide low cost per GB, suitable for mass storage and infrequent access to data. Premium storage designed for Azure Virtual Machines, stores data on Solid State Drive (SSD) provides consistency, low latency performance. Standard is selected by default, can be changed based upon your choice.
Account kind, there are 5 types of account.
- General purpose v2 provides storage for blobs, files, tables & queues.
- General purpose v1 provides storage for blobs, files, tables & queues, it doesn’t have access to choose Access tier.
- Blob storage provides storage only for the block and appends blobs.
- Block Blob Storage supports blob storage services with premium performance, it doesn’t support access tiers and provides redundancy for LRS and ZRS.
- File Storage supports file storage services with premium performance
Replication, Azure provides different types of replication strategies to avoid data loss from planned and unplanned events like, hardware failure, power outage, natural disasters or planned maintenance. It replicates your data multiple times to ensure your data is durable and highly available.
- Locally redundant storage (LRS), is the basic and lowest cost replication option, it replicates data three times to collection of racks within the same data centre.
- Zone-redundant storage (ZRS), replicates your data synchronously across three storage clusters in a single region, and it provides high availability.
- Geo-redundant storage (GRS) replicates your data into two different regions, synchronously to the primary region and asynchronously to secondary region, but you will not have access to read data from the secondary region until Microsoft initiates a failover from primary to secondary. Provides both durability and high availability.
- Read-access geo-redundant storage (RA-GRS) along with GRS options it also provides read access to a secondary region.
- Geo-zone-redundant storage (GZRS) (preview)it’s a combination of ZRS and GRS, it replicates data synchronously across three azure availability zones in the primary region and asynchronously to the secondary region.
- Read-access geo zone redundant storage (RA-GZRS) (preview) along with all the options in GZRS, it provides read access to a secondary region.
Availability zones are physically separated datacentre within the azure region.
Access tiers provide an option to store blob object data.
- Hot tier is to store data that is accessed frequently, selected by default while creating a storage account.
- Cool tier is to store data that is accessed less frequently.
- Archive tier is to store data that is rarely accessed. It can be set at blob level, not at account level.
Connectivity method choose how to connect to your storage account, you can connect via public endpoint which can be accessed through the internet or private endpoint, where you can create private IP address.
Secure transfer required allows to connect to your storage account by secure connections, enables by default while creating storage account via the portal.
Blob soft delete allows to recover deleted/modified data, the soft delete option is disabled by default. Soft delete option can be enabled or disabled at any time, but, when you enabled soft delete option, you must set the data retention period (1 to 365 days).
Tags are optional, it helps you to organize your resources with name-value pair, maximum characters for the name is 512 and value is 256 but, for storage account, maximum characters for the name is 128 and value is 256
Review + Create, review all the fields and click on create.
As shown in the below image you can select storage services based on your need.