FREE STUDY NOTES · AZ-900

Azure Storage redundancy: LRS, ZRS, GRS and GZRS compared

How each storage redundancy option copies your data and which failures it protects against.

From Ultra Transcenders AZ-900 by Tony Rough (publishing soon)

Azure Storage always keeps multiple copies of data to protect it from hardware failures, outages and disasters. The redundancy setting chosen for a storage account decides where those copies are kept and applies to every service in the account.

Redundancy in the primary region

Redundancy in a secondary region

For protection against a regional disaster, data can also be copied to a secondary region hundreds of miles away. The secondary region is the primary region’s pair (see the chapter “Azure’s core architecture: regions, zones and the resource hierarchy”); it is determined by the primary region and can’t be chosen. Figure 6.1 shows where the copies live for each option.

LRS keeps three copies in one datacentre, and ZRS keeps copies across three zones, both only in the primary region. GRS (one datacentre) and GZRS (three zones) also copy the data asynchronously to the paired secondary region, where it is stored with LRS as three copies in one datacentre.
Figure 6.1: Where Azure Storage keeps copies of your data under LRS, ZRS, GRS and GZRS

Summary

Option Copies kept in Survives datacentre failure Survives region outage Read from secondary without failover
LRS One datacentre in the primary region No No No
ZRS Three or more availability zones in the primary region Yes No No
GRS One datacentre in primary plus secondary region Yes (failover restores writes) Yes (failover restores writes) No
RA-GRS As GRS Yes (reads continue; failover restores writes) Yes (reads continue; failover restores writes) Yes
GZRS Zones in primary plus secondary region Yes Yes (failover restores writes) No
RA-GZRS As GZRS Yes Yes (reads continue; failover restores writes) Yes

Service and account limits:

Common trap: Assuming GRS lets an application read the secondary copy during an outage - plain GRS and GZRS keep the secondary unreadable until a failover; continuous read access needs RA-GRS or RA-GZRS.

Common trap: Treating redundancy as a backup - every replica reflects the current state, so an accidental deletion or overwrite is replicated too; recovering old data needs features such as soft delete, snapshots or backups.

Get the whole book

This note is one section of Ultra Transcenders AZ-900: Microsoft Azure Fundamentals, an independent study guide that explains every topic the exam covers by technology, with comparison tables, diagrams and the common traps, plus a glossary linked to Microsoft Learn.

Amazon.co.ukKindle: coming soonPaperback: coming soon
Amazon.comKindle: coming soonPaperback: coming soon

Publishing soon on Amazon in Kindle and paperback editions.

About the book · AZ-900 terms in the glossary · All AZ-900 study notes

More AZ-900 study notes