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
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:
62
67
63
-
Import-Module Az.Storage -RequiredVersion 1.13.4
68
+
1. Uninstall any previous installations of Azure PowerShell from Windows using the **Apps & features** setting under **Settings**.
64
69
65
-
To start working with Azure PowerShell, sign in with your Azure credentials.
70
+
1. Make sure that you have the latest version of PowerShellGet installed. Open a Windows PowerShell window, and run the following command to install the latest version:
Enable both Change feed and Versioning on the source storage account. Make sure
70
-
you’re already registered for [Change feed](https://azure.microsoft.com/blog/change-feed-support-now-available-in-preview-for-azure-blob-storage/) and Versioning capabilities.
76
+
1. Close and reopen the PowerShell window after installing PowerShellGet.
For more information about installing Azure PowerShell, see [Install Azure PowerShell with PowerShellGet](/powershell/azure/install-az-ps).
91
+
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.
Create a new replication rule and specify the desired prefix and replication behavior for the objects, that existed prior to configuring object replication.
85
120
@@ -238,12 +273,6 @@ az storage account ors-policy remove \\
Copy file name to clipboardExpand all lines: articles/storage/blobs/object-replication-overview.md
+8-4Lines changed: 8 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,6 +21,8 @@ Object replication (preview) asynchronously copies block blobs between a source
21
21
-**Optimizing data distribution.** You can process or analyze data in a single location and then replicate just the results to additional regions.
22
22
-**Optimizing costs.** After your data has been replicated, you can reduce costs by moving it to the archive tier using life cycle management policies.
23
23
24
+
To learn how to configure object replication, see [Configure object replication (preview)](object-replication-configure.md).
25
+
24
26
## How object replication works
25
27
26
28
Object replication asynchronously copies a specified set of block blobs from a container in one storage account to a container in another account. Object replication happens asynchronously and is [eventually consistent](https://en.wikipedia.org/wiki/Eventual_consistency). After you configure object replication on the source account, Azure Storage checks the change feed every minute(???) and replicates any write or delete operations to the destination account. Replication latency depends on the size of the block blob being replicated.
@@ -60,10 +62,12 @@ During the preview, there are no additional costs associated with replicating da
60
62
61
63
Object replication requires that the following Azure Storage features are enabled:
Before you configure object replication, enable its prerequisites. Change feed must be enabled on the source account, and blob versioning must be enabled on both the source and destination account. For more information about enabling these features, see these articles:
66
+
67
+
-[Enable and disable the change feed](storage-blob-change-feed.md#enable-and-disable-the-change-feed)
68
+
-[Enable and manage blob versioning](versioning-enable.md)
65
69
66
-
Enable these features for the storage account before you enable object replication. Be sure to register for the change feed and blob versioning previews before you enable them.
70
+
Be sure to register for the change feed and blob versioning previews before you enable them.
67
71
68
72
Enabling change feed and blob versioning may incur additional costs. For more details, refer to the [Azure Storage pricing page](https://azure.microsoft.com/pricing/details/storage/).
69
73
@@ -136,4 +140,4 @@ az feature list -o table --query "[?contains(name, 'Microsoft.Storage/Versioning
0 commit comments