Skip to content

Commit 4c6bc08

Browse files
committed
Bumped CLI examples to v 2.0.74
1 parent ca0f343 commit 4c6bc08

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

articles/container-registry/container-registry-retention-policy.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ manager: gwallace
77

88
ms.service: container-registry
99
ms.topic: article
10-
ms.date: 09/16/2019
10+
ms.date: 09/23/2019
1111
ms.author: danlep
1212
---
1313

@@ -17,7 +17,7 @@ Azure Container Registry gives you the option to set a *retention policy* for st
1717

1818
For background on container images and manifests, see [About registries, repositories, and images](container-registry-concepts.md).
1919

20-
You can use the Azure Cloud Shell or a local installation of the Azure CLI to run the command examples in this article. If you'd like to use it locally, version 2.0.73 or later is required. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][azure-cli].
20+
You can use the Azure Cloud Shell or a local installation of the Azure CLI to run the command examples in this article. If you'd like to use it locally, version 2.0.74 or later is required. Run `az --version` to find the version. If you need to install or upgrade, see [Install Azure CLI][azure-cli].
2121

2222
> [!IMPORTANT]
2323
> This feature is currently in preview, and some [limitations apply](#preview-limitations). Previews are made available to you on the condition that you agree to the [supplemental terms of use][terms-of-use]. Some aspects of this feature may change prior to general availability (GA).
@@ -40,18 +40,18 @@ The following example shows you how to use the Azure CLI to set a retention poli
4040

4141
By default, no retention policy is set in a container registry. To set or update a retention policy, run the [az acr config retention update][az-acr-config-retention-update] command in the Azure CLI. You can specify a number of days between 0 and 365 to retain the untagged manifests. If you don't specify a number of days, the command sets a default of 7 days. After the retention period, all untagged manifests in the registry are automatically deleted.
4242

43-
The retention policy doesn't apply to any untagged manifest that has the `delete-enabled` attribute set to `false`. For information about locked images and manifests, see [Lock a container image in an Azure container registry](container-registry-image-lock.md).
43+
The retention policy doesn't apply to any untagged manifest that has the `delete-enabled` attribute set to `false`, or the `write-enabled` attribute set to `true`. For information about locked images and manifests, see [Lock a container image in an Azure container registry](container-registry-image-lock.md).
4444

4545
The following example sets a retention policy of 30 days for untagged manifests in the registry *myregistry*:
4646

4747
```azurecli
48-
az acr config retention update --name myregistry --status enabled --days 30
48+
az acr config retention update --name myregistry --status enabled --days 30 --type UntaggedManifests
4949
```
5050

5151
The following example sets a policy to delete any manifest in the registry as soon as it's untagged. Create this policy by setting a retention period of 0 days:
5252

5353
```azurecli
54-
az acr config retention update --name myregistry --status enabled --days 0
54+
az acr config retention update --name myregistry --status enabled --days 0 --type UntaggedManifests
5555
```
5656

5757
### Disable a retention policy

0 commit comments

Comments
 (0)