Skip to content

Commit 29d086e

Browse files
Merge pull request #278342 from tejaswikolli-web/imageblock
edits
2 parents 397eef6 + b6a085d commit 29d086e

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

articles/container-registry/container-registry-image-lock.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,22 @@ az acr repository update \
181181
--delete-enabled true --write-enabled true
182182
```
183183

184-
To restore the default behavior of the *myrepo* repository and all images so that they can be deleted and updated, run the following command:
184+
To restore the default behavior of the *myrepo* repository, enabling individual images to be deleted and updated, run the following command:
185185

186186
```azurecli
187187
az acr repository update \
188188
--name myregistry --repository myrepo \
189189
--delete-enabled true --write-enabled true
190190
```
191191

192+
However, if there is a lock on the manifest, you need to run an additional command to unlock the manifest.
193+
194+
```azurecli
195+
az acr repository update \
196+
--name myregistry --image $repo@$digest \
197+
--delete-enabled true --write-enabled true
198+
```
199+
192200
## Next steps
193201

194202
In this article, you learned about using the [az acr repository update][az-acr-repository-update] command to prevent deletion or updating of image versions in a repository. To set additional attributes, see the [az acr repository update][az-acr-repository-update] command reference.

0 commit comments

Comments
 (0)