az acr config soft-delete
This command group is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Manage soft-delete policy for Azure Container Registries.
Commands
| Name | Description | Type | Status |
|---|---|---|---|
| az acr config soft-delete show |
Show the configured soft-delete policy for an Azure Container Registry. |
Core | Preview |
| az acr config soft-delete update |
Update soft-delete policy for an Azure Container Registry. |
Core | Preview |
az acr config soft-delete show
Command group 'acr config soft-delete' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Show the configured soft-delete policy for an Azure Container Registry.
az acr config soft-delete show --registry
Examples
Show the configured soft-delete policy for an Azure Container Registry
az acr config soft-delete 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>.
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 soft-delete update
Command group 'acr config soft-delete' is in preview and under development. Reference and support levels: https://aka.ms/CLI_refstatus
Update soft-delete policy for an Azure Container Registry.
az acr config soft-delete update --registry
[--acquire-policy-token]
[--change-reference]
[--days]
[--status {disabled, enabled}]
[--yes]
Examples
Enable soft-delete policy for an Azure Container Registry to purge a soft-deleted manifest after 30 days.
az acr config soft-delete update -r myregistry --status Enabled --days 30
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.
Acquiring an Azure Policy token automatically for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The related change reference ID for this resource operation.
| Property | Value |
|---|---|
| Parameter group: | Global Policy Arguments |
The number of days to retain a soft-deleted manifest or tag after which it gets purged (Range: 1 to 90). Default is 7.
Indicates whether soft-delete policy is enabled.
| Property | Value |
|---|---|
| Accepted values: | disabled, enabled |
Do not prompt for confirmation.
| Property | Value |
|---|---|
| Default value: | False |
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 |