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": "2019-06-01",
  "properties": {
    "immutabilityPeriodSinceCreationInDays": "integer",
    "allowProtectedAppendWrites": "boolean"
  }
}

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 2019-06-01
properties object Yes The properties of an ImmutabilityPolicy of a blob container. - ImmutabilityPolicyProperty object

ImmutabilityPolicyProperty object

Name Type Required Value
immutabilityPeriodSinceCreationInDays integer No The immutability period for the blobs in the container since the policy creation, in days.
allowProtectedAppendWrites boolean No This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to an append blob while maintaining immutability protection and compliance. Only new blocks can be added and any existing blocks cannot be modified or deleted. This property cannot be changed with ExtendImmutabilityPolicy API