az storage container legal-hold

Manage container legal holds.

Commands

az storage container legal-hold clear

Clears legal hold tags.

az storage container legal-hold set

Sets legal hold tags.

az storage container legal-hold show

Get the legal hold properties of a container.

Clears legal hold tags.

Clearing the same or non-existent tag results in an idempotent operation. ClearLegalHold clears out only the specified tags in the request.

az storage container legal-hold clear --account-name
                                      --container-name
                                      --tags
                                      [--resource-group]
                                      [--subscription]
--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.

--tags

Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case.

--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.

Sets legal hold tags.

Setting the same tag results in an idempotent operation. SetLegalHold follows an append pattern and does not clear out the existing tags that are not specified in the request.

az storage container legal-hold set --account-name
                                    --container-name
                                    --tags
                                    [--resource-group]
                                    [--subscription]
--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.

--tags

Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case.

--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.

Get the legal hold properties of a container.

az storage container legal-hold show --account-name
                                     --container-name
                                     [--query-examples]
                                     [--resource-group]
                                     [--subscription]

Get the legal hold properties of a container. (autogenerated)

az storage container legal-hold show --account-name mystorageccount --container-name MyContainer
--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.

--query-examples

Recommend JMESPath string for you. You can copy one of the query and paste it after --query parameter within double quotation marks to see the results. You can add one or more positional keywords so that we can give suggestions based on these key words.

--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.