CmdID / az / az storage / az storage container / az storage container legal-hold
az storage container legal-hold set
Set legal hold tags. Azure CLI reference
1 example 1 option Its page in the Azure CLI reference
Examples
Set legal hold tags.
az storage container legal-hold set --tags tag1 tag2 --container-name mycontainer --account-name mystorageccount -g MyResourceGroupIdentify--tagsSpace-separated tags.--container-nameThe container name.--account-nameStorage account name.-gName of resource group.Options
--allow-protected-append-writes-all, --w-allWhen enabled, new blocks can be written to both Append and Block Blobs while maintaining legal hold protection and compliance.