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. |
az storage container legal-hold clear
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]
Required Parameters
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.
The container name.
Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az storage container legal-hold set
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]
Required Parameters
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.
The container name.
Each tag should be 3 to 23 alphanumeric characters and is normalized to lower case.
Optional Parameters
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.
az storage container legal-hold show
Get the legal hold properties of a container.
az storage container legal-hold show --account-name
--container-name
[--query-examples]
[--resource-group]
[--subscription]
Examples
Get the legal hold properties of a container. (autogenerated)
az storage container legal-hold show --account-name mystorageccount --container-name MyContainer
Required Parameters
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.
The container name.
Optional Parameters
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.
Name of resource group. You can configure the default group using az configure --defaults group=<name>
.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID
.
Increase logging verbosity to show all debug logs.
Show this help message and exit.
Only show errors, suppressing warnings.
Output format.
JMESPath query string. See http://jmespath.org/ for more information and examples.
Increase logging verbosity. Use --debug for full debug logs.