Which of the following storage methods provides the highest redundancy and availability?

Azure Storage always stores multiple copies of your data so that it's protected from planned and unplanned events, including transient hardware failures, network or power outages, and massive natural disasters. Redundancy ensures that your storage account meets its availability and durability targets even in the face of failures.

When deciding which redundancy option is best for your scenario, consider the tradeoffs between lower costs and higher availability. The factors that help determine which redundancy option you should choose include:

  • How your data is replicated in the primary region.
  • Whether your data is replicated to a second region that is geographically distant to the primary region, to protect against regional disasters (geo-replication).
  • Whether your application requires read access to the replicated data in the secondary region if the primary region becomes unavailable for any reason (geo-replication with read access).

Note

The features and regional availability described in this article are also available to accounts that have a hierarchical namespace (Azure Blob storage).

The services that comprise Azure Storage are managed through a common Azure resource called a storage account. The storage account represents a shared pool of storage that can be used to deploy storage resources such as blob containers (Blob Storage), file shares (Azure Files), tables (Table Storage), or queues (Queue Storage). For more information about Azure Storage accounts, see Storage account overview.

The redundancy setting for a storage account is shared for all storage services exposed by that account. All storage resources deployed in the same storage account have the same redundancy setting. You may want to isolate different types of resources in separate storage accounts if they have different redundancy requirements.

Redundancy in the primary region

Data in an Azure Storage account is always replicated three times in the primary region. Azure Storage offers two options for how your data is replicated in the primary region:

  • Locally redundant storage (LRS) copies your data synchronously three times within a single physical location in the primary region. LRS is the least expensive replication option, but isn't recommended for applications requiring high availability or durability.
  • Zone-redundant storage (ZRS) copies your data synchronously across three Azure availability zones in the primary region. For applications requiring high availability, Microsoft recommends using ZRS in the primary region, and also replicating to a secondary region.

Note

Microsoft recommends using ZRS in the primary region for Azure Data Lake Storage Gen2 workloads.

Locally redundant storage

Locally redundant storage (LRS) replicates your storage account three times within a single data center in the primary region. LRS provides at least 99.999999999% (11 nines) durability of objects over a given year.

LRS is the lowest-cost redundancy option and offers the least durability compared to other options. LRS protects your data against server rack and drive failures. However, if a disaster such as fire or flooding occurs within the data center, all replicas of a storage account using LRS may be lost or unrecoverable. To mitigate this risk, Microsoft recommends using zone-redundant storage (ZRS), geo-redundant storage (GRS), or geo-zone-redundant storage (GZRS).

A write request to a storage account that is using LRS happens synchronously. The write operation returns successfully only after the data is written to all three replicas.

The following diagram shows how your data is replicated within a single data center with LRS:

Which of the following storage methods provides the highest redundancy and availability?

LRS is a good choice for the following scenarios:

  • If your application stores data that can be easily reconstructed if data loss occurs, you may opt for LRS.
  • If your application is restricted to replicating data only within a country or region due to data governance requirements, you may opt for LRS. In some cases, the paired regions across which the data is geo-replicated may be in another country or region. For more information on paired regions, see Azure regions.
  • If your scenario is using Azure unmanaged disks, you may opt for LRS. While it's possible to create a storage account for Azure unmanaged disks that uses GRS, it isn't recommended due to potential issues with consistency over asynchronous geo-replication.

Zone-redundant storage

Zone-redundant storage (ZRS) replicates your storage account synchronously across three Azure availability zones in the primary region. Each availability zone is a separate physical location with independent power, cooling, and networking. ZRS offers durability for storage resources of at least 99.9999999999% (12 9's) over a given year.

With ZRS, your data is still accessible for both read and write operations even if a zone becomes unavailable. If a zone becomes unavailable, Azure undertakes networking updates, such as DNS repointing. These updates may affect your application if you access data before the updates have completed. When designing applications for ZRS, follow practices for transient fault handling, including implementing retry policies with exponential back-off.

A write request to a storage account that is using ZRS happens synchronously. The write operation returns successfully only after the data is written to all replicas across the three availability zones.

Microsoft recommends using ZRS in the primary region for scenarios that require high availability. ZRS is also recommended for restricting replication of data to a particular country or region to meet data governance requirements.

Microsoft recommends using ZRS for Azure Files workloads. If a zone becomes unavailable, no remounting of Azure file shares from the connected clients is required.

The following diagram shows how your data is replicated across availability zones in the primary region with ZRS:

Which of the following storage methods provides the highest redundancy and availability?

ZRS provides excellent performance, low latency, and resiliency for your data if it becomes temporarily unavailable. However, ZRS by itself may not protect your data against a regional disaster where multiple zones are permanently affected. For protection against regional disasters, Microsoft recommends using geo-zone-redundant storage (GZRS), which uses ZRS in the primary region and also geo-replicates your data to a secondary region.

The Archive tier for Blob Storage isn't currently supported for ZRS accounts. Unmanaged disks don't support ZRS or GZRS.

For more information about which regions support ZRS, see Azure regions with availability zones.

Standard storage accounts

ZRS is supported for all Azure Storage services through standard general-purpose v2 storage accounts, including:

  • Azure Blob storage (hot and cool block blobs, non-disk page blobs)
  • Azure Files (all standard tiers: transaction optimized, hot, and cool)
  • Azure Table storage
  • Azure Queue storage

ZRS for standard general-purpose v2 storage accounts is available for a subset of Azure regions:

  • (Africa) South Africa North
  • (Asia Pacific) Australia East
  • (Asia Pacific) Central India
  • (Asia Pacific) East Asia
  • (Asia Pacific) Japan East
  • (Asia Pacific) Korea Central
  • (Asia Pacific) South India
  • (Asia Pacific) Southeast Asia
  • (Europe) France Central
  • (Europe) Germany West Central
  • (Europe) North Europe
  • (Europe) Norway East
  • (Europe) Sweden Central
  • (Europe) UK South
  • (Europe) West Europe
  • (North America) Canada Central
  • (North America) Central US
  • (North America) East US
  • (North America) East US 2
  • (North America) South Central US
  • (North America) US Gov Virginia
  • (North America) West US 2
  • (North America) West US 3
  • (South America) Brazil South

Premium block blob accounts

ZRS is supported for premium block blobs accounts. For more information about premium block blobs, see Premium block blob storage accounts.

Premium block blobs are available in a subset of Azure regions:

  • (Asia Pacific) Australia East
  • (Asia Pacific) East Asia
  • (Asia Pacific) Japan East
  • (Asia Pacific) Southeast Asia
  • (Europe) France Central
  • (Europe) North Europe
  • (Europe) West Europe
  • (Europe) UK South
  • (North America) East US
  • (North America) East US 2
  • (North America) West US 2
  • (South America) Brazil South

ZRS is supported for premium file shares (Azure Files) through the FileStorage storage account kind.

ZRS for premium file shares is available for a subset of Azure regions:

  • (Asia Pacific) Australia East
  • (Asia Pacific) Japan East
  • (Asia Pacific) Southeast Asia
  • (Europe) France Central
  • (Europe) North Europe
  • (Europe) West Europe
  • (Europe) UK South
  • (North America) East US
  • (North America) East US 2
  • (North America) West US 2
  • (South America) Brazil South

For applications requiring high durability, you can choose to additionally copy the data in your storage account to a secondary region that is hundreds of miles away from the primary region. If your storage account is copied to a secondary region, then your data is durable even in the case of a complete regional outage or a disaster in which the primary region isn't recoverable.

When you create a storage account, you select the primary region for the account. The paired secondary region is determined based on the primary region, and can't be changed. For more information about regions supported by Azure, see Azure regions.

Azure Storage offers two options for copying your data to a secondary region:

  • Geo-redundant storage (GRS) copies your data synchronously three times within a single physical location in the primary region using LRS. It then copies your data asynchronously to a single physical location in the secondary region. Within the secondary region, your data is copied synchronously three times using LRS.
  • Geo-zone-redundant storage (GZRS) copies your data synchronously across three Azure availability zones in the primary region using ZRS. It then copies your data asynchronously to a single physical location in the secondary region. Within the secondary region, your data is copied synchronously three times using LRS.

Note

The primary difference between GRS and GZRS is how data is replicated in the primary region. Within the secondary region, data is always replicated synchronously three times using LRS. LRS in the secondary region protects your data against hardware failures.

With GRS or GZRS, the data in the secondary region isn't available for read or write access unless there's a failover to the secondary region. For read access to the secondary region, configure your storage account to use read-access geo-redundant storage (RA-GRS) or read-access geo-zone-redundant storage (RA-GZRS). For more information, see Read access to data in the secondary region.

If the primary region becomes unavailable, you can choose to fail over to the secondary region. After the failover has completed, the secondary region becomes the primary region, and you can again read and write data. For more information on disaster recovery and to learn how to fail over to the secondary region, see Disaster recovery and storage account failover.

Important

Because data is replicated to the secondary region asynchronously, a failure that affects the primary region may result in data loss if the primary region cannot be recovered. The interval between the most recent writes to the primary region and the last write to the secondary region is known as the recovery point objective (RPO). The RPO indicates the point in time to which data can be recovered. The Azure Storage platform typically has an RPO of less than 15 minutes, although there's currently no SLA on how long it takes to replicate data to the secondary region.

Geo-redundant storage

Geo-redundant storage (GRS) copies your data synchronously three times within a single physical location in the primary region using LRS. It then copies your data asynchronously to a single physical location in a secondary region that is hundreds of miles away from the primary region. GRS offers durability for storage resources of at least 99.99999999999999% (16 9's) over a given year.

A write operation is first committed to the primary location and replicated using LRS. The update is then replicated asynchronously to the secondary region. When data is written to the secondary location, it's also replicated within that location using LRS.

The following diagram shows how your data is replicated with GRS or RA-GRS:

Which of the following storage methods provides the highest redundancy and availability?

Geo-zone-redundant storage

Geo-zone-redundant storage (GZRS) combines the high availability provided by redundancy across availability zones with protection from regional outages provided by geo-replication. Data in a GZRS storage account is copied across three Azure availability zones in the primary region and is also replicated to a secondary geographic region for protection from regional disasters. Microsoft recommends using GZRS for applications requiring maximum consistency, durability, and availability, excellent performance, and resilience for disaster recovery.

With a GZRS storage account, you can continue to read and write data if an availability zone becomes unavailable or is unrecoverable. Additionally, your data is also durable in the case of a complete regional outage or a disaster in which the primary region isn't recoverable. GZRS is designed to provide at least 99.99999999999999% (16 9's) durability of objects over a given year.

The following diagram shows how your data is replicated with GZRS or RA-GZRS:

Which of the following storage methods provides the highest redundancy and availability?

Only standard general-purpose v2 storage accounts support GZRS. GZRS is supported by all of the Azure Storage services, including:

  • Azure Blob storage (hot and cool block blobs, non-disk page blobs)
  • Azure Files (all standard tiers: transaction optimized, hot, and cool)
  • Azure Table storage
  • Azure Queue storage

GZRS is available for a subset of Azure regions:

  • (Africa) South Africa North
  • (Asia Pacific) Australia East
  • (Asia Pacific) East Asia
  • (Asia Pacific) Japan East
  • (Asia Pacific) Korea Central
  • (Asia Pacific) Southeast Asia
  • (Asia Pacific) Central India
  • (Europe) France Central
  • (Europe) North Europe
  • (Europe) Norway East
  • (Europe) Sweden Central
  • (Europe) UK South
  • (Europe) West Europe
  • (North America) Canada Central
  • (North America) Central US
  • (North America) East US
  • (North America) East US 2
  • (North America) South Central US
  • (North America) West US 2
  • (North America) West US 3
  • (North America) US Gov Virginia
  • (South America) Brazil South

Geo-redundant storage (with GRS or GZRS) replicates your data to another physical location in the secondary region to protect against regional outages. However, that data is available to be read only if the customer or Microsoft initiates a failover from the primary to secondary region. When you enable read access to the secondary region, your data is always available to be read, including in a situation where the primary region becomes unavailable. For read access to the secondary region, enable read-access geo-redundant storage (RA-GRS) or read-access geo-zone-redundant storage (RA-GZRS).

Note

Azure Files does not support read-access geo-redundant storage (RA-GRS) or read-access geo-zone-redundant storage (RA-GZRS).

If your storage account is configured for read access to the secondary region, then you can design your applications to seamlessly shift to reading data from the secondary region if the primary region becomes unavailable for any reason.

The secondary region is available for read access after you enable RA-GRS or RA-GZRS, so that you can test your application in advance to make sure that it will properly read from the secondary in the event of an outage. For more information about how to design your applications to take advantage of geo-redundancy, see Use geo-redundancy to design highly available applications.

When read access to the secondary is enabled, your application can be read from the secondary endpoint as well as from the primary endpoint. The secondary endpoint appends the suffix –secondary to the account name. For example, if your primary endpoint for Blob storage is myaccount.blob.core.windows.net, then the secondary endpoint is myaccount-secondary.blob.core.windows.net. The account access keys for your storage account are the same for both the primary and secondary endpoints.

Check the Last Sync Time property

Because data is replicated to the secondary region asynchronously, the secondary region is often behind the primary region. If a failure happens in the primary region, it's likely that all writes to the primary won't yet have been replicated to the secondary.

To determine which write operations have been replicated to the secondary region, your application can check the Last Sync Time property for your storage account. All write operations written to the primary region prior to the last sync time have been successfully replicated to the secondary region, meaning that they're available to be read from the secondary. Any write operations written to the primary region after the last sync time may or may not have been replicated to the secondary region, meaning that they may not be available for read operations.

You can query the value of the Last Sync Time property using Azure PowerShell, Azure CLI, or one of the Azure Storage client libraries. The Last Sync Time property is a GMT date/time value. For more information, see Check the Last Sync Time property for a storage account.

The tables in the following sections summarize the redundancy options available for Azure Storage.

Durability and availability parameters

The following table describes key parameters for each redundancy option:

Parameter LRS ZRS GRS/RA-GRS GZRS/RA-GZRS
Percent durability of objects over a given year at least 99.999999999% (11 9's) at least 99.9999999999% (12 9's) at least 99.99999999999999% (16 9's) at least 99.99999999999999% (16 9's)
Availability for read requests At least 99.9% (99% for Cool or Archive access tiers) At least 99.9% (99% for Cool or Archive access tiers) At least 99.9% (99% for Cool or Archive access tiers) for GRS

At least 99.99% (99.9% for Cool or Archive access tiers) for RA-GRS

At least 99.9% (99% for Cool or Archive access tiers) for GZRS

At least 99.99% (99.9% for Cool or Archive access tiers) for RA-GZRS

Availability for write requests At least 99.9% (99% for Cool or Archive access tiers) At least 99.9% (99% for Cool or Archive access tiers) At least 99.9% (99% for Cool or Archive access tiers) At least 99.9% (99% for Cool or Archive access tiers)
Number of copies of data maintained on separate nodes Three copies within a single region Three copies across separate availability zones within a single region Six copies total, including three in the primary region and three in the secondary region Six copies total, including three across separate availability zones in the primary region and three locally redundant copies in the secondary region

For more information, see the SLA for Storage Accounts.

Durability and availability by outage scenario

The following table indicates whether your data is durable and available in a given scenario, depending on which type of redundancy is in effect for your storage account:

Outage scenario LRS ZRS GRS/RA-GRS GZRS/RA-GZRS
A node within a data center becomes unavailable Yes Yes Yes Yes
An entire data center (zonal or non-zonal) becomes unavailable No Yes Yes1 Yes
A region-wide outage occurs in the primary region No No Yes1 Yes1
Read access to the secondary region is available if the primary region becomes unavailable No No Yes (with RA-GRS) Yes (with RA-GZRS)

1 Account failover is required to restore write availability if the primary region becomes unavailable. For more information, see Disaster recovery and storage account failover.

Supported Azure Storage services

The following table shows which redundancy options are supported by each Azure Storage service.

LRS ZRS GRS RA-GRS GZRS RA-GZRS
Blob storage (including Data Lake Storage)Queue storage Table storage

Azure Files1,2

Azure managed disks

Page blobs

Blob storage (including Data Lake Storage)Queue storage Table storage

Azure Files1,2


Azure managed disks3
Blob storage (including Data Lake Storage)Queue storage Table storage

Azure Files1

Blob storage (including Data Lake Storage)Queue storage Table storage Blob storage (including Data Lake Storage)Queue storage Table storage

Azure Files1

Blob storage (including Data Lake Storage)Queue storage Table storage

1 Standard file shares are supported on LRS and ZRS. Standard file shares are supported on GRS and GZRS as long as they're less than or equal to 5 TiB in size.
2 Premium file shares are supported on LRS and ZRS.
3 ZRS managed disks have certain limitations. See the Limitations section of the redundancy options for managed disks article for details.

Supported storage account types

The following table shows which redundancy options are supported for each type of storage account. For information for storage account types, see Storage account overview.

Storage account types LRS ZRS GRS/RA-GRS GZRS/RA-GZRS
Recommended Standard general-purpose v2 (StorageV2)1

Premium block blobs (BlockBlobStorage)1

Premium file shares (FileStorage)

Premium page blobs (StorageV2)

Standard general-purpose v2 (StorageV2)1

Premium block blobs (BlockBlobStorage)1

Premium file shares (FileStorage)

Standard general-purpose v2 (StorageV2)1 Standard general-purpose v2 (StorageV2)1
Legacy Standard general-purpose v1 (Storage)

Legacy blob (BlobStorage)

N/A Standard general-purpose v1 (Storage)

Legacy blob (BlobStorage)

N/A

1 Accounts of this type with a hierarchical namespace enabled also support the specified redundancy option.

All data for all storage accounts is copied according to the redundancy option for the storage account. Objects including block blobs, append blobs, page blobs, queues, tables, and files are copied.

Data in all tiers, including the Archive tier, is copied. For more information about blob tiers, see Hot, Cool, and Archive access tiers for blob data.

For pricing information for each redundancy option, see Azure Storage pricing.

Note

Azure Premium Disk Storage currently supports only locally redundant storage (LRS). Block blob storage accounts support locally redundant storage (LRS) and zone redundant storage (ZRS) in certain regions.

Support for customer-managed account failover

All geo-redundant offerings support Microsoft-managed failover in the event of a disaster in the primary region. In addition, some account types support customer-managed account failover, as shown in the following table. Supported account types must use Azure Resource Manager deployments. For more information about disaster recovery and customer-managed failover, see Disaster recovery and storage account failover.

Type of failover GRS/RA-GRS GZRS/RA-GZRS
Customer-managed failover General-purpose v2 accounts General-purpose v1 accounts

Legacy Blob Storage accounts

General-purpose v2 accounts
Microsoft-managed failover All account types General-purpose v2 accounts

Data integrity

Azure Storage regularly verifies the integrity of data stored using cyclic redundancy checks (CRCs). If data corruption is detected, it's repaired using redundant data. Azure Storage also calculates checksums on all network traffic to detect corruption of data packets when storing or retrieving data.

See also