az storage container legal-hold

Manage container legal holds.

Commands

az storage container legal-hold clear

Clear legal hold tags.

az storage container legal-hold set

Set legal hold tags.

az storage container legal-hold show

Get the legal hold properties of a container.

Clear legal hold tags.

az storage container legal-hold clear --account-name
                                      --container-name
                                      --tags
                                      [--resource-group]
                                      [--subscription]

Clear legal hold tags.

az storage container legal-hold clear --tags tag1 tag2 --container-name mycontainer --account-name mystorageccount -g MyResourceGroup
--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT.

--container-name -c

The container name.

--tags

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

Set legal hold tags.

az storage container legal-hold set --account-name
                                    --container-name
                                    --tags
                                    [--resource-group]
                                    [--subscription]

Set legal hold tags.

az storage container legal-hold set --tags tag1 tag2 --container-name mycontainer --account-name mystorageccount -g MyResourceGroup
--account-name

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT.

--container-name -c

The container name.

--tags

Space-separated 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

Storage account name. Related environment variable: AZURE_STORAGE_ACCOUNT.

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