The storageAccounts/blobServices/containers/immutabilityPolicies resource type can be deployed with operations that target:
For a list of changed properties in each API version, see change log.
To create a Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies resource, add the following JSON to your template.
{
"type": "Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies",
"apiVersion": "2023-01-01",
"name": "default",
"properties": {
"allowProtectedAppendWrites": "bool",
"allowProtectedAppendWritesAll": "bool",
"immutabilityPeriodSinceCreationInDays": "int"
}
}
Name | Description | Value |
---|---|---|
type | The resource type | 'Microsoft.Storage/storageAccounts/blobServices/containers/immutabilityPolicies' |
apiVersion | The resource api version | '2023-01-01' |
name | The resource name See how to set names and types for child resources in JSON ARM templates. |
'default' |
properties | The properties of an ImmutabilityPolicy of a blob container. | ImmutabilityPolicyProperty (required) |
Name | Description | Value |
---|---|---|
allowProtectedAppendWrites | 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. | bool |
allowProtectedAppendWritesAll | This property can only be changed for unlocked time-based retention policies. When enabled, new blocks can be written to both 'Append and Bock Blobs' 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. The 'allowProtectedAppendWrites' and 'allowProtectedAppendWritesAll' properties are mutually exclusive. | bool |
immutabilityPeriodSinceCreationInDays | The immutability period for the blobs in the container since the policy creation, in days. | int |