Skip to content

Commit 5f2c017

Browse files
committed
Simplified filters
1 parent 1f79227 commit 5f2c017

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/container-registry/container-registry-auto-purge.md

Lines changed: 6 additions & 6 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: 08/13/2019
10+
ms.date: 08/14/2019
1111
ms.author: danlep
1212
---
1313

@@ -58,7 +58,7 @@ The following example uses the [az acr run][az-acr-run] command to run the `purg
5858
```azurecli
5959
# Environment variable for container command line
6060
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
61-
--registry {{.Run.Registry}} --filter \"hello-world:.*\" --untagged --ago 1d"
61+
--registry {{.Run.Registry}} --filter 'hello-world:.*' --untagged --ago 1d"
6262
6363
az acr run \
6464
--cmd "$PURGE_CMD" \
@@ -73,7 +73,7 @@ The following example uses the [az acr task create][az-acr-task-create] command
7373
```azurecli
7474
# Environment variable for container command line
7575
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
76-
--registry {{.Run.Registry}} --filter \"hello-world:.*\" --ago 7d"
76+
--registry {{.Run.Registry}} --filter 'hello-world:.*' --ago 7d"
7777
7878
az acr task create --name purgeTask \
7979
--cmd "$PURGE_CMD" \
@@ -93,7 +93,7 @@ For example, the following on-demand task sets a timeout time of 3600 seconds (1
9393
```azurecli
9494
# Environment variable for container command line
9595
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
96-
--registry {{.Run.Registry}} --filter \"hello-world:.*\" --untagged --ago 1d"
96+
--registry {{.Run.Registry}} --filter 'hello-world:.*' --ago 1d --untagged"
9797
9898
az acr run \
9999
--cmd "$PURGE_CMD" \
@@ -116,7 +116,7 @@ In the following example, the filter in each repository selects all tags. The `-
116116
# Environment variable for container command line
117117
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
118118
--registry {{.Run.Registry}} \
119-
--filter \"samples/devimage1:.*\" --filter \"samples/devimage2:.*\" \
119+
--filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' \
120120
--ago 0d --untagged --dry-run"
121121
122122
az acr run \
@@ -157,7 +157,7 @@ After you've verified the dry run, create a scheduled task to automate the purge
157157
# Environment variable for container command line
158158
PURGE_CMD="mcr.microsoft.com/acr/acr-cli:0.1 purge \
159159
--registry {{.Run.Registry}} \
160-
--filter \"samples/devimage1:.*\" --filter \"samples/devimage2:.*\" \
160+
--filter 'samples/devimage1:.*' --filter 'samples/devimage2:.*' \
161161
--ago 0d --untagged --dry-run"
162162
163163
az acr task create --name weeklyPurgeTask \

0 commit comments

Comments
 (0)