Skip to content

Commit ed6b3bd

Browse files
authored
Merge pull request #314848 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 476b526 + 0da8319 commit ed6b3bd

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

articles/storage/blobs/object-replication-overview.md

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,10 @@ The following example sets a replication policy on the destination account with
143143
"policyId": "default",
144144
"sourceAccount": "/subscriptions/<subscriptionId>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>",
145145
"destinationAccount": "/subscriptions/<subscriptionId>/resourceGroups/<resource-group>/providers/Microsoft.Storage/storageAccounts/<storage-account>",
146+
"metrics": {
147+
"enabled": false
148+
},
149+
"priorityReplication": "false",
146150
"rules": [
147151
{
148152
"ruleId": "",
@@ -159,7 +163,31 @@ The following example sets a replication policy on the destination account with
159163
}
160164
}
161165
```
166+
#### Custom filters
167+
It's possible to customize filters with different options in JSON file
162168

169+
1. Prefix blob for replication, all blobs start with letter b :
170+
171+
```json
172+
"filters": {
173+
"prefixMatch": [
174+
"b"
175+
],
176+
}
177+
```
178+
2. Blob Creation Time
179+
```json
180+
"filters": {
181+
"minCreationTime": "2021-08-28T00:00:00Z"
182+
}
183+
```
184+
185+
3. For ALL BLOBS
186+
```json
187+
"filters": {
188+
"minCreationTime": "1601-01-01T00:00:00Z"
189+
}
190+
```
163191
### Specify full resource IDs for source and destination accounts
164192

165193
When you create the policy definition file, specify the full Azure Resource Manager resource IDs for the **sourceAccount** and **destinationAccount** entries, as shown in the example in the previous section. To learn how to locate the resource ID for a storage account, see [Get the resource ID for a storage account](../common/storage-account-get-info.md#get-the-resource-id-for-a-storage-account).

0 commit comments

Comments
 (0)