az acr config content-trust
Content Trust is being deprecated and will be completely removed on March 31, 2028. Refer to https://aka.ms/acr/dctdeprecation for details and transition guidance
Manage content-trust policy for Azure Container Registries.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az acr config content-trust show |
Show the configured content-trust policy for an Azure Container Registry. |
Core | Deprecated |
| az acr config content-trust update |
Update content-trust policy for an Azure Container Registry. |
Core | Deprecated |
az acr config content-trust show
This command is implicitly deprecated because command group 'acr config content-trust' is deprecated and will be removed in a future release.
Show the configured content-trust policy for an Azure Container Registry.
az acr config content-trust show --registry
[--resource-group]
Examples
Show the configured content-trust policy for an Azure Container Registry
az acr config content-trust show -r myregistry
Required Parameters
The name of the container registry. It should be specified in lower case. You can configure the default registry name using az configure --defaults acr=<registry name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |
az acr config content-trust update
This command is implicitly deprecated because command group 'acr config content-trust' is deprecated and will be removed in a future release.
Update content-trust policy for an Azure Container Registry.
az acr config content-trust update --registry
[--resource-group]
[--status {disabled, enabled}]
Examples
Update content-trust policy for an Azure Container Registry
az acr config content-trust update -r myregistry --status Enabled
Required Parameters
The name of the container registry. It should be specified in lower case. You can configure the default registry name using az configure --defaults acr=<registry name>.
Optional Parameters
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
Name of resource group. You can configure the default group using az configure --defaults group=<name>.
Indicates whether content-trust is enabled.
| Property | Value |
|---|---|
| Accepted values: | disabled, enabled |
Global Parameters
Increase logging verbosity to show all debug logs.
| Property | Value |
|---|---|
| Default value: | False |
Show this help message and exit.
Only show errors, suppressing warnings.
| Property | Value |
|---|---|
| Default value: | False |
Output format.
| Property | Value |
|---|---|
| Default value: | json |
| Accepted values: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath query string. See http://jmespath.org/ for more information and examples.
Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.
Increase logging verbosity. Use --debug for full debug logs.
| Property | Value |
|---|---|
| Default value: | False |