You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/storage/blobs/object-replication-configure.md
+57-60Lines changed: 57 additions & 60 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,33 +7,33 @@ author: tamram
7
7
8
8
ms.service: storage
9
9
ms.topic: how-to
10
-
ms.date: 05/12/2020
10
+
ms.date: 05/18/2020
11
11
ms.author: tamram
12
12
ms.subservice: blobs
13
13
---
14
14
15
15
# Configure object replication (preview)
16
16
17
-
Object replication (preview) asynchronously copies block blobs between a source storage account and a destination account. The source and destination accounts may be in different regions. For more information about object replication, see [Object replication (preview)](object-replication-overview.md).
17
+
Object replication (preview) asynchronously copies block blobs between a source storage account and a destination account. For more information about object replication, see [Object replication (preview)](object-replication-overview.md).
18
18
19
-
To use object replication, create a replication policy on the source account that specifies the destination account. Then add one or more replication rules to the policy. Replication rules specify the source and destination containers and determine which block blobs in those containers will be copied.
19
+
When you configure object replication, you create a replication policy that specifies the source storage account and the destination account. A replication policy includes one or more rules that specify a source container and a destination container and indicate which block blobs in the source container will be replicated.
20
20
21
21
This article describes how to configure object replication for your storage account by using the Azure portal, PowerShell, or Azure CLI. You can also use one of the Azure Storage resource provider client libraries to configure object replication.
22
22
23
23
## Create a replication policy and rules
24
24
25
25
Before you configure object replication, create the source and destination storage accounts if they do not already exist. Both accounts must be general-purpose v2 storage accounts. For more information, see [Create an Azure Storage account](../common/storage-account-create.md).
26
26
27
-
Also create the source and destination containers in their respective storage accounts, if they do not already exist.
27
+
# [Azure portal](#tab/portal)
28
+
29
+
Before you configure object replication in the Azure portal, create the source and destination containers in their respective storage accounts, if they do not already exist.
28
30
29
-
Finally, enable the following prerequisites:
31
+
Next, make sure you have enabled the following prerequisites:
30
32
31
33
-[Change feed (preview)](storage-blob-change-feed.md) on the source account
32
34
-[Blob versioning (preview)](versioning-overview.md) on the source and destination accounts
33
35
34
-
# [Azure portal](#tab/portal)
35
-
36
-
To create a replication policy and add replication rules in the Azure portal, follow these steps:
36
+
To create a replication policy in the Azure portal, follow these steps:
37
37
38
38
1. Navigate to the source storage account in the Azure portal.
39
39
1. Under **Settings**, select **Object replication**.
@@ -61,9 +61,7 @@ To create a replication policy and add replication rules in the Azure portal, fo
61
61
62
62
# [PowerShell](#tab/powershell)
63
63
64
-
### Install the preview module
65
-
66
-
To create a replication policy and add replication rules using PowerShell, first install version [1.14.1-preview](https://www.powershellgallery.com/packages/Az.Storage/1.14.1-preview) of the Az.Storage PowerShell module. Follow these steps to install the preview module:
64
+
To create a replication policy with PowerShell, first install version [1.14.1-preview](https://www.powershellgallery.com/packages/Az.Storage/1.14.1-preview) of the Az.Storage PowerShell module. Follow these steps to install the preview module:
67
65
68
66
1. Uninstall any previous installations of Azure PowerShell from Windows using the **Apps & features** setting under **Settings**.
69
67
@@ -73,7 +71,7 @@ To create a replication policy and add replication rules using PowerShell, first
1. Close and reopen the PowerShell window after installing PowerShellGet.
74
+
Close and reopen the PowerShell window after installing PowerShellGet.
77
75
78
76
1. Install the latest version of Azure PowerShell:
79
77
@@ -89,15 +87,13 @@ To create a replication policy and add replication rules using PowerShell, first
89
87
90
88
For more information about installing Azure PowerShell, see [Install Azure PowerShell with PowerShellGet](/powershell/azure/install-az-ps).
91
89
92
-
### Configure replication policy and rules
93
-
94
-
Before running the example, use the Azure portal or an Azure Resource Manager template to enable blob versioning on the source and destination accounts.
90
+
The following example shows how to create a replication policy on the source and destination accounts. Remember to replace values in angle brackets with your own values:
Create a new replication rule and specify the desired prefix and replication behavior for the objects, that existed prior to configuring object replication.
For list of available parameters and their values, run Get-Help New-AzStorageObjectReplicationPolicyRule -Full and/or Get-Help New-AzStorageObjectReplicationPolicyRule -Examples.
133
-
134
-
Create a replication policy on the destination account and pass on the rule you created earlier.
To create a replication policy with Azure CLI, first install version [1.14.1-preview](https://www.powershellgallery.com/packages/Az.Storage/1.14.1-preview) of the Az.Storage PowerShell module. Follow these steps to install the preview module:
165
162
166
163
Refer to [Install the Azure CLI](https://docs.microsoft.com/cli/azure/install-azure-cli?view=azure-cli-latest) article to install and import the preview module supporting object replication capability.
0 commit comments