Azure Storage is Microsoft’s storage solution in the cloud which can be scaled, durable and highly available. Azure Storage includes the following data services:
- Azure Blobs: A massively scalable object store for text and binary data.
- Azure Files: Managed file shares for cloud or on-premises deployments.
- Azure Queues: A messaging store for reliable messaging between application components.
- Azure Tables: A NoSQL store for schemaless storage of structured data.
Azure has several storage account types, each with its own features and pricing. The types of storage accounts are:
- General-purpose v2 accounts: Basic storage account type for blobs, files, queues, and tables. Recommended for most scenarios using Azure Storage.
- General-purpose v1 accounts: Legacy account type for blobs, files, queues, and tables.
- Block blob storage accounts: Blob-only storage accounts with premium performance characteristics.
Storage accounts can be replicated either within a data centre, between local datacentre or to another geographical location. Replication options for a storage account include:
- Locally-redundant storage (LRS): A simple, low-cost replication strategy. Data is replicated within a single storage scale unit (Within a datacentre).
- Zone-redundant storage (ZRS): Replication for high availability and durability. Data is replicated synchronously across three availability zones (Between local datacentre).
- Geo-redundant storage (GRS): Cross-regional replication to protect against region-wide unavailability (To another geographical location).
- Read-access geo-redundant storage (RA-GRS): Cross-regional replication with read access to the replica.
Creating a Storage account – Portal
- Log into the Azure portal
- Click Create a resource and search for Storage account
- On the Create Storage Account blade fill out the required information
– Resource Group
– Storage account name (Must be 3 and 24 characters in length, and can include numbers and lowercase letters only.)
– Account type
– Access tier
- Click next to go to Advanced to add security as well as tags.
- Click on Create
Creating a Storage account – PowerShell
- Connect via PowerShell with
- Store the Resource Group, Location and Account name as a variable
$resourceGroup = "RG1"
$location = "westus"
$accountname = "alastairhillstorage02"
- Use New-AzStorageAccount to create the storage account
New-AzStorageAccount -ResourceGroupName $resourceGroup `
-Name $accountname `
-Location $location `
-SkuName Standard_RAGRS `
The screenshot below is of the PowerShell inputs and the resulting output