Skip to content

Commit 8ef6229

Browse files
Other syntax changes.
1 parent 00b1e0c commit 8ef6229

File tree

5 files changed

+17
-17
lines changed

5 files changed

+17
-17
lines changed

articles/container-registry/container-registry-concepts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,13 +89,13 @@ A basic manifest for a Linux `hello-world` image looks similar to the following:
8989
You can list the manifests for a repository with the Azure CLI command [az acr manifest list-metadata][az-acr-manifest-list-metadata]:
9090

9191
```azurecli
92-
az acr manifest list-metadata --name <acrName> --repository <repositoryName>
92+
az acr manifest list-metadata --name <repositoryName> --registry <acrName>
9393
```
9494

9595
For example, list the manifests for the "acr-helloworld" repository:
9696

9797
```azurecli
98-
az acr manifest list-metadata --name myregistry --repository acr-helloworld
98+
az acr manifest list-metadata --name acr-helloworld --registry myregistry
9999
```
100100

101101
```output

articles/container-registry/container-registry-delete.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ A [manifest digest](container-registry-concepts.md#manifest-digest) can be assoc
5757
To delete by digest, first list the manifest digests for the repository containing the images you wish to delete. For example:
5858

5959
```azurecli
60-
az acr manifest list-metadata --name myregistry --repository acr-helloworld
60+
az acr manifest list-metadata --name acr-helloworld --registry myregistry
6161
```
6262

6363
```output
@@ -106,8 +106,8 @@ To maintain the size of a repository or registry, you might need to periodically
106106
The following Azure CLI command lists all manifest digests in a repository older than a specified timestamp, in ascending order. Replace `<acrName>` and `<repositoryName>` with values appropriate for your environment. The timestamp could be a full date-time expression or a date, as in this example.
107107

108108
```azurecli
109-
az acr manifest list-metadata --name <acrName> --repository <repositoryName> \
110-
--orderby time_asc -o tsv --query "[?timestamp < '2019-04-05'].[digest, timestamp]"
109+
az acr manifest list-metadata --name <repositoryName> --registry <acrName> <repositoryName> \
110+
--orderby time_asc -o tsv --query "[?timestamp < '2019-04-05'].[digest, timestamp]"
111111
```
112112

113113
After identifying stale manifest digests, you can run the following Bash script to delete manifest digests older than a specified timestamp. It requires the Azure CLI and **xargs**. By default, the script performs no deletion. Change the `ENABLE_DELETE` value to `true` to enable image deletion.
@@ -135,13 +135,13 @@ TIMESTAMP=2019-04-05
135135
136136
if [ "$ENABLE_DELETE" = true ]
137137
then
138-
az acr manifest list-metadata --name $REGISTRY --repository $REPOSITORY \
138+
az acr manifest list-metadata --name $REPOSITORY --registry $REGISTRY \
139139
--orderby time_asc --query "[?timestamp < '$TIMESTAMP'].digest" -o tsv \
140140
| xargs -I% az acr repository delete --name $REGISTRY --image $REPOSITORY@% --yes
141141
else
142142
echo "No data deleted."
143143
echo "Set ENABLE_DELETE=true to enable deletion of these images in $REPOSITORY:"
144-
az acr manifest list-metadata --name $REGISTRY --repository $REPOSITORY \
144+
az acr manifest list-metadata --name $REPOSITORY --repository $REGISTRY \
145145
--orderby time_asc --query "[?timestamp < '$TIMESTAMP'].[digest, timestamp]" -o tsv
146146
fi
147147
```
@@ -154,7 +154,7 @@ As mentioned in the [Manifest digest](container-registry-concepts.md#manifest-di
154154
1. Check manifests for repository *acr-helloworld*:
155155

156156
```azurecli
157-
az acr manifest list-metadata --name myregistry --repository acr-helloworld
157+
az acr manifest list-metadata --name acr-helloworld --registry myregistry
158158
159159
```
160160

articles/container-registry/container-registry-faq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,13 +108,13 @@ sections:
108108
If you are on bash:
109109
110110
```azurecli
111-
az acr manifest list-metadata --name myRegistry --repository myRepository --query "[?tags[0]==null].digest" --output tsv | xargs -I% az acr repository delete --name myRegistry ---image myRepository@%
111+
az acr manifest list-metadata --name myRepository --registry myRegistry --query "[?tags[0]==null].digest" --output tsv | xargs -I% az acr repository delete --name myRegistry ---image myRepository@%
112112
```
113113
114114
For PowerShell:
115115
116116
```azurecli
117-
az acr manifest list-metadata --name myRegistry --repository myRepository --query "[?tags[0]==null].digest" --output tsv | %{ az acr repository delete --name myRegistry --image myRepository@$_ }
117+
az acr manifest list-metadata --name myRepository --repository myRegistry --query "[?tags[0]==null].digest" --output tsv | %{ az acr repository delete --name myRegistry --image myRepository@$_ }
118118
```
119119
120120
> [!NOTE]

articles/container-registry/container-registry-import-images.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,8 @@ You can verify that multiple manifests are associated with this image by running
8484

8585
```azurecli
8686
az acr manifest list-metadata \
87-
--name myregistry \
88-
--repository hello-world
87+
--name hello-world \
88+
--registry myregistry
8989
```
9090

9191
To import an artifact by digest without adding a tag:

articles/container-registry/container-registry-oras-artifacts.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,9 +314,9 @@ A repository can have a list of manifests that are both tagged and untagged
314314

315315
```azurecli
316316
az acr manifest list-metadata \
317-
-n $ACR_NAME \
318-
--repository $REPO \
319-
--detail -o jsonc
317+
--name $REPO \
318+
--repository $ACR_NAME \
319+
--output jsonc
320320
```
321321

322322
Note the container image manifests have `"tags":`
@@ -374,8 +374,8 @@ az acr repository delete \
374374

375375
```azurecli
376376
az acr manifest list-metadata \
377-
-n $ACR_NAME \
378-
--repository $REPO \
377+
--name $REPO \
378+
--registry $ACR_NAME \
379379
--detail -o jsonc
380380
```
381381

0 commit comments

Comments
 (0)