Microsoft.Storage storageAccounts/objectReplicationPolicies template reference

Template format

To create a Microsoft.Storage/storageAccounts/objectReplicationPolicies resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Storage/storageAccounts/objectReplicationPolicies",
  "apiVersion": "2019-06-01",
  "properties": {
    "sourceAccount": "string",
    "destinationAccount": "string",
    "rules": [
      {
        "ruleId": "string",
        "sourceContainer": "string",
        "destinationContainer": "string",
        "filters": {
          "prefixMatch": [
            "string"
          ],
          "minCreationTime": "string"
        }
      }
    ]
  }
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Storage/storageAccounts/objectReplicationPolicies object

Name Type Required Value
name string Yes The ID of object replication policy or 'default' if the policy ID is unknown.
type enum Yes objectReplicationPolicies
-or-
Microsoft.Storage/storageAccounts/objectReplicationPolicies

See Set name and type for child resources.
apiVersion enum Yes 2019-06-01
properties object Yes Returns the Storage Account Object Replication Policy. - ObjectReplicationPolicyProperties object

ObjectReplicationPolicyProperties object

Name Type Required Value
sourceAccount string Yes Required. Source account name.
destinationAccount string Yes Required. Destination account name.
rules array No The storage account object replication rules. - ObjectReplicationPolicyRule object

ObjectReplicationPolicyRule object

Name Type Required Value
ruleId string No Rule Id is auto-generated for each new rule on destination account. It is required for put policy on source account.
sourceContainer string Yes Required. Source container name.
destinationContainer string Yes Required. Destination container name.
filters object No Optional. An object that defines the filter set. - ObjectReplicationPolicyFilter object

ObjectReplicationPolicyFilter object

Name Type Required Value
prefixMatch array No Optional. Filters the results to replicate only blobs whose names begin with the specified prefix. - string
minCreationTime string No Blobs created after the time will be replicated to the destination. It must be in datetime format 'yyyy-MM-ddTHH:mm:ssZ'. Example: 2020-02-19T16:05:00Z