Skip to content

Commit 1c0c2a2

Browse files
authored
Merge pull request #93958 from mutazn/patch-8
Update tasks-agent-pools.md
2 parents 2147f91 + 58b31de commit 1c0c2a2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/container-registry/tasks-agent-pools.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ Create an agent pool by using the [az acr agentpool create][az-acr-agentpool-cre
6565

6666
```azurecli
6767
az acr agentpool create \
68+
--registry MyRegistry \
6869
--name myagentpool \
6970
--tier S2
7071
```
@@ -78,6 +79,7 @@ Scale the pool size up or down with the [az acr agentpool update][az-acr-agentpo
7879

7980
```azurecli
8081
az acr agentpool update \
82+
--registry MyRegistry \
8183
--name myagentpool \
8284
--count 2
8385
```
@@ -112,6 +114,7 @@ subnetId=$(az network vnet subnet show \
112114
--query id --output tsv)
113115
114116
az acr agentpool create \
117+
--registry MyRegistry \
115118
--name myagentpool \
116119
--tier S2 \
117120
--subnet-id $subnetId
@@ -131,6 +134,7 @@ Queue a quick task on the agent pool by using the [az acr build][az-acr-build] c
131134

132135
```azurecli
133136
az acr build \
137+
--registry MyRegistry \
134138
--agent-pool myagentpool \
135139
--image myimage:mytag \
136140
--file Dockerfile \
@@ -143,6 +147,7 @@ For example, create a scheduled task on the agent pool with [az acr task create]
143147

144148
```azurecli
145149
az acr task create \
150+
--registry MyRegistry \
146151
--name mytask \
147152
--agent-pool myagentpool \
148153
--image myimage:mytag \
@@ -156,6 +161,7 @@ To verify task setup, run [az acr task run][az-acr-task-run]:
156161

157162
```azurecli
158163
az acr task run \
164+
--registry MyRegistry \
159165
--name mytask
160166
```
161167

@@ -165,6 +171,7 @@ To find the number of runs currently scheduled on the agent pool, run [az acr ag
165171

166172
```azurecli
167173
az acr agentpool show \
174+
--registry MyRegistry \
168175
--name myagentpool \
169176
--queue-count
170177
```

0 commit comments

Comments
 (0)