Change how a storage account is replicated

Azure Storage always stores multiple copies of your data so that it is 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 the Service-Level Agreement (SLA) for Azure Storage even in the face of failures.

Azure Storage offers the following types of replication:

  • Locally redundant storage (LRS)
  • Geo-redundant storage (GRS) or read-access geo-redundant storage (RA-GRS)

For an overview of each of these options, see Azure Storage redundancy.

Switch between types of replication

You can switch a storage account from one type of replication to any other type, but some scenarios are more straightforward than others. If you want to add or remove geo-replication or read access to the secondary region, you can use the Azure portal, PowerShell, or Azure CLI to update the replication setting.

The following table provides an overview of how to switch from each type of replication to another:

Switching …to LRS …to GRS/RA-GRS
…from LRS N/A Use Azure portal, PowerShell, or CLI to change the replication setting1,2
…from GRS/RA-GRS Use Azure portal, PowerShell, or CLI to change the replication setting N/A

1 Incurs a one-time egress charge.
2 Migrating from LRS to GRS is not supported if the storage account contains blobs in the archive tier.

Caution

If you performed an account failover for your (RA-)GRS, the account is locally redundant (LRS) in the new primary region after the failover.

Change the replication setting

You can use the Azure portal, PowerShell, or Azure CLI to change the replication setting for a storage account, as long as you are not changing how data is replicated in the primary region.

Changing how your storage account is replicated does not result in down time for your applications.

To change the redundancy option for your storage account in the Azure portal, follow these steps:

  1. Navigate to your storage account in the Azure portal.
  2. Select the Configuration setting.
  3. Update the Replication setting.

Screenshot showing how to change replication option in portal

Costs associated with changing how data is replicated

The costs associated with changing how data is replicated depend on your conversion path. Ordering from least to the most expensive, Azure Storage redundancy offerings include LRS, GRS, and RA-GRS.

For example, going from LRS to any other type of replication will incur additional charges because you are moving to a more sophisticated redundancy level. Migrating to GRS or RA-GRS will incur an egress bandwidth charge because your data (in your primary region) is being replicated to your remote secondary region. This charge is a one-time cost at initial setup. After the data is copied, there are no further migration charges. For details on bandwidth charges, see Azure Storage Pricing page.

If you migrate your storage account from GRS to LRS, there is no additional cost, but your replicated data is deleted from the secondary location.

Important

If you migrate your storage account from RA-GRS to GRS or LRS, that account is billed as RA-GRS for an additional 30 days beyond the date that it was converted.

See also