azureblog.co.uk
← AZ-104 study plan
AZ-104 · Implement and manage storage

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. 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. 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 -secondary endpoint.

    Remember: Replication to the secondary is asynchronous, so a failover can lose the most recent writes.

  3. 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. 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. 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 copy or azcopy 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

OptionPrimary regionSecondary regionRead secondary anytime?
LRSOne datacentreNoneNo
ZRSThree or more zonesNoneNo
GRSOne datacentreCopy, LRSNo, only after failover
RA-GRSOne datacentreCopy, LRSYes
GZRSThree or more zonesCopy, LRSNo, only after failover
RA-GZRSThree or more zonesCopy, LRSYes
The secondary region always uses LRS. Azure Files doesn't support read access to the secondary.

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.

  1. Which account type should you choose for most scenarios?

  2. Data must stay available if one availability zone fails, with no copy in another region. Which option fits?

  3. With GRS, when can you read data from the secondary region?

  4. What does object replication need on the source account?

  5. Can you turn off encryption at rest for a storage account?

Sources

Facts in this lesson are from Microsoft Learn. This site isn't affiliated with Microsoft.