Microsoft.Storage storageAccounts/blobServices/containers/immutabilityPolicies template reference

Template format

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

{
  "name": "default",
  "type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
  "apiVersion": "2018-07-01",
  "properties": {
    "immutabilityPeriodSinceCreationInDays": "integer"
  }
}

Property values

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

Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies object

Name Type Required Value
name enum Yes The name of the blob container immutabilityPolicy within the specified storage account. ImmutabilityPolicy Name must be 'default' - default
type enum Yes immutabilityPolicies
-or-
Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies

See Set name and type for child resources.
apiVersion enum Yes 2018-07-01
properties object Yes The properties of an ImmutabilityPolicy of a blob container. - ImmutabilityPolicyProperty object

ImmutabilityPolicyProperty object

Name Type Required Value
immutabilityPeriodSinceCreationInDays integer Yes The immutability period for the blobs in the container since the policy creation, in days.