az storage container immutability-policy

Manage container immutability policies.

Commands

az storage container immutability-policy create Creates or updates an unlocked immutability policy.
az storage container immutability-policy delete Aborts an unlocked immutability policy.
az storage container immutability-policy extend Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.
az storage container immutability-policy lock Sets the ImmutabilityPolicy to Locked state.
az storage container immutability-policy show Gets the existing immutability policy along with the corresponding ETag in response headers and body.

az storage container immutability-policy create

Creates or updates an unlocked immutability policy.

az storage container immutability-policy create --account-name
--container-name
--period
[--if-match]
[--resource-group]
[--subscription]

Required Parameters

--account-name

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

--container-name -c

The container name.

--period

The immutability period for the blobs in the container since the policy creation, in days.

Optional Parameters

--if-match

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az storage container immutability-policy delete

Aborts an unlocked immutability policy.

az storage container immutability-policy delete --account-name
--container-name
--if-match
[--resource-group]
[--subscription]

Required Parameters

--account-name

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

--container-name -c

The container name.

--if-match

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az storage container immutability-policy extend

Extends the immutabilityPeriodSinceCreationInDays of a locked immutabilityPolicy.

az storage container immutability-policy extend --account-name
--container-name
--if-match
--period
[--resource-group]
[--subscription]

Required Parameters

--account-name

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

--container-name -c

The container name.

--if-match

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

--period

The immutability period for the blobs in the container since the policy creation, in days.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az storage container immutability-policy lock

Sets the ImmutabilityPolicy to Locked state.

az storage container immutability-policy lock --account-name
--container-name
--if-match
[--resource-group]
[--subscription]

Required Parameters

--account-name

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

--container-name -c

The container name.

--if-match

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

az storage container immutability-policy show

Gets the existing immutability policy along with the corresponding ETag in response headers and body.

az storage container immutability-policy show --account-name
--container-name
[--if-match]
[--resource-group]
[--subscription]

Required Parameters

--account-name

The name of the storage account within the specified resource group. Storage account names must be between 3 and 24 characters in length and use numbers and lower-case letters only.

--container-name -c

The container name.

Optional Parameters

--if-match

The entity state (ETag) version of the immutability policy to update. A value of "*" can be used to apply the operation only if the immutability policy already exists. If omitted, this operation will always be applied.

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.