Lesson 1 of 5 Unstructured Data Solutions

Understanding Azure Storage Accounts and Redundancy

This lesson explains storage account types, redundancy options and the main unstructured data services.

Learning outcomes

After completing this lesson, you will be able to:

  • Identify the appropriate storage account type.
  • Compare LRS, ZRS, GRS and GZRS.
  • Explain what the read-access variants add.

Storage account types

A storage account is a namespace for data, with settings for redundancy, networking and access. Azure Storage offers Blob Storage for objects, Azure Files for shares, Queue Storage for messages and Table Storage for simple entities. The account type determines which of these services and which performance levels are available.

  • Standard general-purpose v2 supports all services and all redundancy options, and it is the recommendation for most scenarios.
  • Premium block blobs use SSD for workloads with many small transactions or that need low latency.
  • Premium file shares provide SSD-backed Azure Files for SMB and NFS.
  • Premium page blobs serve page blob workloads only.

Standard general-purpose v1 and legacy Blob Storage accounts are older types that should not be used for new designs.

Scenario questions

Choosing an account type

Exam skills 2.2.2

Choose the storage account type for each workload.

Log in to try this activity Interactive activities are free with an account.

Redundancy

Azure Storage always keeps multiple copies of data. The redundancy option determines where these copies are, and therefore which failures the data will survive.

Locally redundant storage (LRS)

LRS keeps three copies in one datacenter. It is the cheapest option and protects against drive and rack failures, but not against the loss of the datacenter. It offers 11 nines of durability.

Zone-redundant storage (ZRS)

ZRS keeps three copies across three availability zones in the region, synchronously. Data remains readable and writable if a zone fails, which makes ZRS the choice for high availability within a region. It offers 12 nines of durability.

Geo-redundant storage (GRS)

GRS uses LRS in the primary region, then copies data asynchronously to a secondary region, where it is also held with LRS. It protects against a regional disaster, offering 16 nines of durability. The secondary is not readable unless RA-GRS is chosen.

Geo-zone-redundant storage (GZRS)

GZRS combines ZRS in the primary region with an asynchronous copy to a secondary region. It gives the strongest protection: continued operation through a zone failure, and recovery from a regional disaster. RA-GZRS adds read access to the secondary.

Geo-replication is asynchronous, so a regional failover may lose recent writes. Geo priority replication adds an SLA for block blob data: the Last Sync Time stays within 15 minutes for 99% of the billing month. The following table recaps the options.

OptionCopiesSurvives zone failureSurvives region failureReadable secondary
LRS3 in one datacenterNoNoNo
ZRS3 across zonesYesNoNo
GRS / RA-GRS6 across two regionsNo, needs failoverYesRA-GRS only
GZRS / RA-GZRS6 across zones and two regionsYesYesRA-GZRS only

The following diagram checks each redundancy option against the three requirements.

Redundancy for legal documents. Staying writable through a datacenter failure needs zone redundancy in the primary; surviving a regional disaster needs a geo copy; reading during a regional outage without failover needs a readable secondary. Only RA-GZRS provides all three.
LRS meets none of the requirements and is omitted.
Sort into groups

Choose the redundancy

Exam skills 2.2.2

Choose the cheapest redundancy option that meets each requirement.

Log in to try this activity Interactive activities are free with an account.

Which service for which data

Unstructured data takes several forms, and each form has a natural home.

  • Azure Blob Storage stores objects, such as images, backups, logs and data lake files, accessed through HTTP APIs.
  • Azure Files provides fully managed file shares accessed over SMB or NFS, for applications that expect a file system.
  • Azure NetApp Files provides enterprise-grade, high-performance file storage for demanding workloads.
  • Azure Managed Lustre provides a parallel file system for high-performance computing.
  • Azure managed disks provide block storage for one virtual machine, or a shared disk for clusters.
  • Azure Elastic SAN provides a shared pool of block storage over iSCSI.

The next lessons develop these services in more detail. The key question at this stage is how the application reaches its data: through an object API, a file protocol or a block device.

Worked example

Selecting redundancy

A company stores legal documents in Blob Storage. The data must remain available for reading and writing if a datacenter fails, and it must survive a regional disaster. During a regional outage, staff must still be able to read documents without waiting for a failover. Which redundancy option should you recommend?

Availability through a datacenter failure needs zone redundancy in the primary region. Surviving a regional disaster needs a geo-replicated copy. Reading during a regional outage, with no failover, needs a readable secondary. Only RA-GZRS provides all three.

GZRS would need a failover before the data could be read. RA-GRS has a readable secondary, but a single-zone failure in the primary region would interrupt writes. ZRS alone would not survive the loss of the region.

Check yourself

Does GZRS let an application read from the secondary region during an outage, without failover?

Show answer

No. That needs RA-GZRS. GZRS keeps the copy, but it can be read only after a failover.

Exam Tips

Remember for the exam

  • Standard general-purpose v2 is the default account type.
  • LRS: 3 copies, one datacenter. ZRS: 3 zones. GRS: two regions. GZRS: zones and two regions.
  • Geo-replication is asynchronous, so unplanned failover can lose recent writes.
  • RA- variants give read access to the secondary with no failover.