@@ -170,7 +170,7 @@ Before configuring the Credentials, you have to create and store secrets in the
170
170
```azurecli-interactive
171
171
az acr credential-set create
172
172
-r MyRegistry \
173
- -n MyRule \
173
+ -n MyDockerHubCredSet \
174
174
-l docker.io \
175
175
-u https://MyKeyvault.vault.azure.net/secrets/usernamesecret \
176
176
-p https://MyKeyvault.vault.azure.net/secrets/passwordsecret
@@ -181,15 +181,15 @@ Before configuring the Credentials, you have to create and store secrets in the
181
181
- For example, to update the username or password KV secret ID on the credentials for a given `MyRegistry` Azure Container Registry.
182
182
183
183
```azurecli-interactive
184
- az acr credential-set update -r MyRegistry -n MyRule -p https://MyKeyvault.vault.azure.net/secrets/newsecretname
184
+ az acr credential-set update -r MyRegistry -n MyDockerHubCredSet -p https://MyKeyvault.vault.azure.net/secrets/newsecretname
185
185
```
186
186
187
- 3. Run [az- acr- credential-set- show][az-acr-credential-set-show] to show the credentials.
187
+ 3. Run [az acr credential-set show][az-acr-credential-set-show] to show the credentials.
188
188
189
- - For example, to show the credentials for a given `MyRegistry` Azure Container Registry.
189
+ - For example, to show a credential set in a given `MyRegistry` Azure Container Registry.
190
190
191
191
```azurecli-interactive
192
- az acr credential-set show -r MyRegistry -n MyCredSet
192
+ az acr credential-set show -r MyRegistry -n MyDockerHubCredSet
193
193
```
194
194
195
195
### Configure and create a cache rule with the credentials
@@ -199,7 +199,7 @@ Before configuring the Credentials, you have to create and store secrets in the
199
199
- For example, to create a cache rule with the credentials for a given `MyRegistry` Azure Container Registry.
200
200
201
201
```azurecli-interactive
202
- az acr cache create -r MyRegistry -n MyRule -s docker.io/library/ubuntu -t ubuntu -c MyCredSet
202
+ az acr cache create -r MyRegistry -n MyRule -s docker.io/library/ubuntu -t ubuntu -c MyDockerHubCredSet
203
203
```
204
204
205
205
2. Run [az acr cache update][az-acr-cache-update] command to update the credentials on a cache rule.
@@ -230,7 +230,7 @@ Before configuring the Credentials, you have to create and store secrets in the
230
230
231
231
```azurecli-interactive
232
232
PRINCIPAL_ID=$(az acr credential-set show
233
- -n MyCredSet \
233
+ -n MyDockerHubCredSet \
234
234
-r MyRegistry \
235
235
--query 'identity.principalId' \
236
236
-o tsv)
@@ -282,12 +282,12 @@ Before configuring the Credentials, you have to create and store secrets in the
282
282
az acr credential-set list -r MyRegistry
283
283
```
284
284
285
- 4. Run [az- acr- credential-set- delete][az-acr-credential-set-delete] to delete the credentials.
285
+ 4. Run [az acr credential-set delete][az-acr-credential-set-delete] to delete the credentials.
286
286
287
287
- For example, to delete the credentials for a given `MyRegistry` Azure Container Registry.
288
288
289
289
```azurecli-interactive
290
- az acr credential-set delete -r MyRegistry -n MyCredSet
290
+ az acr credential-set delete -r MyRegistry -n MyDockerHubCredSet
291
291
```
292
292
293
293
:::zone-end
0 commit comments