您现在访问的是微软AZURE全球版技术文档网站,若需要访问由世纪互联运营的MICROSOFT AZURE中国区技术文档网站,请访问 https://docs.azure.cn.

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.

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

--tags

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

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.

Sets legal hold tags.

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

--tags

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

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.

Get the legal hold properties of a container.

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

Examples

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

az storage container legal-hold show --account-name MyAccount --container-name MyContainer

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

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