Skip to main content

Storage Redundancy

Storage redundancy is the replication strategy that protects Azure Storage data from hardware, datacenter, or regional failure. Options range from LRS (three copies in one datacenter) to ZRS (across zones) and GRS or GZRS (copied to a second region).

Storage Redundancy

Azure always keeps multiple copies of your data, and the redundancy option decides where those copies live. More redundancy raises durability and availability but also cost. Choose by how much downtime and data loss the data can tolerate, not by habit.

How Do LRS, ZRS, GRS, and GZRS Compare?

Option Where copies live Survives
LRS 3 copies, one datacenter Disk or node failure
ZRS 3 copies across zones A datacenter failure
GRS LRS in primary plus LRS in paired region A regional disaster
GZRS ZRS in primary plus LRS in paired region A zone and a regional disaster

The RA-GRS and RA-GZRS variants add read access to the secondary region. Replication to the secondary is asynchronous, so it can lag slightly behind.

flowchart LR W(["Writes"]):::person -->|sync| P["Primary region
ZRS across zones"]:::cloud P -->|async copy| S["Secondary region
LRS"]:::app classDef person fill:#EDE9FE,color:#1E293B classDef cloud fill:#D1FAE5,color:#1E293B classDef app fill:#DBEAFE,color:#1E293B

How Do You Choose Redundancy at Creation?

Bash
az storage account create --name mumbaitxnlogs \
--resource-group mumbai-prod-rg --location centralindia \
--sku Standard_GZRS --kind StorageV2

Why It Matters in Production

A payments platform like PhonePe can store transaction logs with geo-redundancy so a regional outage does not lose them, while temporary build artifacts use LRS because losing them is a minor inconvenience.

Remember

Geo-redundant storage is not readable in the secondary region by default. Enable read access, or use customer-managed failover, to use it during an outage.

Common Mistake

Paying for geo-redundancy on easily reproducible data, or using LRS for data that needs disaster recovery. Match redundancy to the cost of losing the data.

Frequently Asked Questions

Can I change redundancy after creating the account?

Yes, in most cases, by changing the account SKU or starting a conversion. Some changes, such as between LRS and GRS, are done in place, while others need a manual migration or a conversion request.

Is failover to the secondary region automatic?

Not by default. Microsoft-managed failover happens only in a major disaster, and customer-managed failover is a deliberate action that can lose data written but not yet replicated.

Do managed disks support geo-redundancy?

No. Managed disks support LRS and ZRS, so use Azure Site Recovery or snapshots to protect disks against a regional outage.

Found a mistake, an outdated step or a broken link?