|
| 1 | +--- |
| 2 | +title: Migrate Azure Storage accounts to availability zone support |
| 3 | +description: Learn how to migrate your Azure storage accounts to availability zone support. |
| 4 | +author: anaharris-ms |
| 5 | +ms.service: azure |
| 6 | +ms.topic: conceptual |
| 7 | +ms.date: 05/09/2022 |
| 8 | +ms.author: anaharris |
| 9 | +ms.reviewer: anaharris |
| 10 | +ms.custom: references_regions |
| 11 | +--- |
| 12 | + |
| 13 | +# Migrate Azure Storage accounts to availability zone support |
| 14 | + |
| 15 | +This guide describes how to migrate Azure Storage accounts from non-availability zone support to availability support. We'll take you through the different options for migration. |
| 16 | + |
| 17 | +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. |
| 18 | + |
| 19 | +Azure Storage offers the following types of replication: |
| 20 | + |
| 21 | +- Locally redundant storage (LRS) |
| 22 | +- Zone-redundant storage (ZRS) |
| 23 | +- Geo-redundant storage (GRS) or read-access geo-redundant storage (RA-GRS) |
| 24 | +- Geo-zone-redundant storage (GZRS) or read-access geo-zone-redundant storage (RA-GZRS) |
| 25 | + |
| 26 | +For an overview of each of these options, see [Azure Storage redundancy](../storage/common/storage-redundancy.md). |
| 27 | + |
| 28 | +You can switch a storage account from one type of replication to any other type, but some scenarios are more straightforward than others. This article describes two basic options for migration. The first is a manual migration and the second is a live migration that you must initiate by contacting Microsoft support. |
| 29 | + |
| 30 | +## Prerequisites |
| 31 | + |
| 32 | +- Make sure your storage account(s) are in a region that supports ZRS. To determine whether or not the region supports ZRS, see [Zone-redundant storage](../storage/common/storage-redundancy.md#zone-redundant-storage). |
| 33 | + |
| 34 | +- Confirm that your storage account(s) is a general-purpose v2 account. If your storage account is v1, you'll need to upgrade it to v2. To learn how to upgrade your v1 account, see [Upgrade to a general-purpose v2 storage account](../storage/common/storage-account-upgrade.md). |
| 35 | + |
| 36 | +## Downtime requirements |
| 37 | + |
| 38 | +If you choose manual migration, downtime is required. If you choose live migration, there's no downtime requirement. |
| 39 | + |
| 40 | +## Migration option 1: Manual migration |
| 41 | + |
| 42 | +### When to use a manual migration |
| 43 | + |
| 44 | +Use a manual migration if: |
| 45 | + |
| 46 | +- You need the migration to be completed by a certain date. |
| 47 | + |
| 48 | +- You want to migrate your data to a ZRS storage account that's in a different region than the source account. |
| 49 | + |
| 50 | +- You want to migrate data from ZRS to LRS, GRS or RA-GRS. |
| 51 | + |
| 52 | +- Your storage account is a premium page blob or block blob account. |
| 53 | + |
| 54 | +- Your storage account includes data that's in the archive tier. |
| 55 | + |
| 56 | +### How to manually migrate Azure Storage accounts |
| 57 | + |
| 58 | +To manually migration your Azure Storage accounts: |
| 59 | + |
| 60 | +1. Create a new storage account in the primary region with Zone Redundant Storage (ZRS) as the redundancy setting. |
| 61 | + |
| 62 | +1. Copy the data from your existing storage account to the new storage account. To perform a copy operation, use one of the following options: |
| 63 | + |
| 64 | + - **Option 1:** Copy data by using an existing tool such as [AzCopy](../storage/common/storage-use-azcopy-v10.md), [Azure Data factory](../data-factory/connector-azure-blob-storage.md?tabs=data-factory), one of the Azure Storage client libraries, or a reliable third-party tool. |
| 65 | + |
| 66 | + - **Option 2:** If you're familiar with Hadoop or HDInsight, you can attach both the source storage account and destination storage account to your cluster. Then, parallelize the data copy process with a tool like [DistCp](https://hadoop.apache.org/docs/r1.2.1/distcp.html). |
| 67 | + |
| 68 | +1. Determine which type of replication you need and follow the directions in [Switch between types of replication](../storage/common/redundancy-migration.md#switch-between-types-of-replication). |
| 69 | + |
| 70 | +## Migration option 2: Request a live migration |
| 71 | + |
| 72 | +### When to request a live migration |
| 73 | + |
| 74 | +Request a live migration if: |
| 75 | + |
| 76 | +- You want to migrate your storage account from LRS to ZRS in the primary region with no application downtime. |
| 77 | + |
| 78 | +- You want to migrate your storage account from ZRS to GZRS or RA-GZRS. |
| 79 | + |
| 80 | +- You don't need the migration to be completed by a certain date. While Microsoft handles your request for live migration promptly, there's no guarantee as to when a live migration will complete. Generally, the more data you have in your account, the longer it takes to migrate that data. |
| 81 | + |
| 82 | +### Live migration considerations |
| 83 | + |
| 84 | +During a live migration, you can access data in your storage account with no loss of durability or availability. The Azure Storage SLA is maintained during the migration process. There's no data loss associated with a live migration. Service endpoints, access keys, shared access signatures, and other account options remain unchanged after the migration. |
| 85 | + |
| 86 | +However, be aware of the following limitations: |
| 87 | + |
| 88 | +- The archive tier is not currently supported for ZRS accounts. |
| 89 | + |
| 90 | +- Unmanaged disks don't support ZRS or GZRS. |
| 91 | + |
| 92 | +- Only general-purpose v2 storage accounts support GZRS and RA-GZRS. GZRS and RA-GZRS support block blobs, page blobs (except for VHD disks), files, tables, and queues. |
| 93 | + |
| 94 | +- Live migration from LRS to ZRS isn't supported if the storage account contains Azure Files NFSv4.1 shares. |
| 95 | + |
| 96 | +- For premium performance, live migration is supported for premium file share accounts, but not for premium block blob or premium page blob accounts. |
| 97 | + |
| 98 | +### How to request a live migration |
| 99 | + |
| 100 | +[Request a live migration](../storage/common/redundancy-migration.md) by creating a new support request from Azure portal. |
| 101 | + |
| 102 | +## Next steps |
| 103 | + |
| 104 | +For more guidance on moving an Azure Storage account to another region, see: |
| 105 | + |
| 106 | +> [!div class="nextstepaction"] |
| 107 | +> [Move an Azure Storage account to another region](../storage/common/storage-account-move.md). |
| 108 | +
|
| 109 | +Learn more about: |
| 110 | + |
| 111 | +> [!div class="nextstepaction"] |
| 112 | +> [Azure Storage redundancy](../storage/common/storage-redundancy.md) |
| 113 | +
|
| 114 | +> [!div class="nextstepaction"] |
| 115 | +> [Regions and Availability Zones in Azure](az-overview.md) |
| 116 | +
|
| 117 | +> [!div class="nextstepaction"] |
| 118 | +> [Azure Services that support Availability Zones](az-region.md) |
0 commit comments