az acr config content-trust

Manage content-trust policy for Azure Container Registries.

Commands

az acr config content-trust show Show the configured content-trust policy for an Azure Container Registry.
az acr config content-trust update Update content-trust policy for an Azure Container Registry.

az acr config content-trust show

Show the configured content-trust policy for an Azure Container Registry.

az acr config content-trust show --name
[--resource-group]
[--subscription]

Examples

Show the configured content-trust policy for an Azure Container Registry

az acr config content-trust show -n MyRegistry

Required Parameters

--name -n

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry 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.

az acr config content-trust update

Update content-trust policy for an Azure Container Registry.

az acr config content-trust update --name
[--resource-group]
[--status {disabled, enabled}]
[--subscription]

Examples

Update content-trust policy for an Azure Container Registry

az acr config content-trust update -n MyRegistry --status Enabled

Update content-trust policy for an Azure Container Registry. (autogenerated)

az acr config content-trust update --name MyRegistry --resource-group MyResourceGroup --status enabled

Required Parameters

--name -n

The name of the container registry. You can configure the default registry name using az configure --defaults acr=<registry name>.

Optional Parameters

--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--status

Indicates whether content-trust is enabled or disabled.

accepted values: disabled, enabled
--subscription

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.