Configure and manage storage accounts
Create the right kind of storage account, choose its redundancy, replicate objects between accounts, control encryption and move data with Storage Explorer and AzCopy.
- 18 min
- 5 concepts
- Try it yourself
- 5-question check
Learn
A storage account is the container for Azure Blob Storage, Azure Files, Queue Storage and Table Storage. Its name forms part of every endpoint, such as contoso.blob.core.windows.net, so it must be globally unique, 3 to 24 characters, lower-case letters and numbers only.
When you create one you choose its type and performance, where its data is copied (redundancy), and how it's secured. Some of these can be changed later; others can't.
- 1
Create and configure storage accounts
Standard general-purpose v2 is the right choice for most scenarios and supports blobs, files, queues and tables. Premium accounts use SSDs for low latency and come as block blob, file share or page blob accounts.
Key settings include the region, performance, redundancy, the default access tier, secure transfer (HTTPS) required, the minimum TLS version and whether blob anonymous access is allowed.
Remember: You can't change Standard to Premium later. Create a new account and copy the data.
- 2
Configure Azure Storage redundancy
LRS keeps copies in one datacentre. ZRS spreads them across three or more availability zones in the region. GRS adds an asynchronous copy in a secondary region, and GZRS combines ZRS with that secondary copy.
With GRS or GZRS the secondary can't be read until a failover. RA-GRS and RA-GZRS let you read the secondary at any time through a
-secondaryendpoint.Remember: Replication to the secondary is asynchronous, so a failover can lose the most recent writes.
- 3
Configure object replication
Object replication copies block blobs asynchronously from a container in one account to a container in another, which can be in another region. Use it to keep data close to users or to separate processing.
It needs blob versioning on both accounts and change feed on the source. Replication is driven by rules in a replication policy.
Remember: Object replication is for block blobs, not files or page blobs.
- 4
Configure storage account encryption
All data is encrypted at rest automatically with 256-bit AES and you can't turn it off. By default Microsoft manages the keys.
You can use customer-managed keys in Azure Key Vault or Managed HSM so you control rotation and can revoke access. You can also turn on infrastructure encryption for a second layer.
Remember: Customer-managed keys need the storage account to have a managed identity with access to the key.
- 5
Manage data by using Azure Storage Explorer and AzCopy
Azure Storage Explorer is a free desktop app for browsing and managing blobs, files, queues and tables, with drag-and-drop uploads.
AzCopy is a command-line tool for copying data to, from and between accounts, for example
azcopy copyorazcopy sync. It authenticates with Entra ID or a SAS and is good for scripts and large transfers.Remember: Storage Explorer uses AzCopy behind the scenes for transfers.
Redundancy options
| Option | Primary region | Secondary region | Read secondary anytime? |
|---|---|---|---|
| LRS | One datacentre | None | No |
| ZRS | Three or more zones | None | No |
| GRS | One datacentre | Copy, LRS | No, only after failover |
| RA-GRS | One datacentre | Copy, LRS | Yes |
| GZRS | Three or more zones | Copy, LRS | No, only after failover |
| RA-GZRS | Three or more zones | Copy, LRS | Yes |
Try it
Tell it what the data needs and it picks the redundancy option and access tier, with the reasoning.
This interactive part needs JavaScript.
In the portal
- Create a storage accountAzure portal: Storage accounts > Create
- Change redundancyAzure portal: Storage accounts > your account > Data management > Redundancy
- Object replicationAzure portal: Storage accounts > your account > Data management > Object replication
- Encryption keysAzure portal: Storage accounts > your account > Security + networking > Encryption
Key terms
Click a card to see the definition.
Check your understanding
5 questions. Score 80% or more and these skills are marked as confident in your AZ-104 study plan.
Which account type should you choose for most scenarios?
GPv2 supports all core services and access tiers.
Data must stay available if one availability zone fails, with no copy in another region. Which option fits?
ZRS replicates synchronously across zones in the primary region.
With GRS, when can you read data from the secondary region?
Reading the secondary any time needs RA-GRS or RA-GZRS.
What does object replication need on the source account?
Object replication relies on versioning and the change feed.
Can you turn off encryption at rest for a storage account?
Azure Storage encryption can't be disabled. You can choose who manages the keys.
Sources
- Microsoft Learn: Storage account overview
- Microsoft Learn: Azure Storage redundancy
- Microsoft Learn: Object replication for block blobs
- Microsoft Learn: Azure Storage encryption for data at rest
- Microsoft Learn: Get started with AzCopy
Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.