Skip to content

Commit c07368f

Browse files
committed
Added RegistryName section and example
1 parent ca5d589 commit c07368f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

articles/container-registry/container-registry-tasks-reference-yaml.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -482,11 +482,14 @@ steps:
482482

483483
### Run.RegistryName
484484

485-
The name of the container registry. Typically used in task steps that do not require a fully qualified server name, such as `cmd` steps that call the Azure CLI to perform registry operations.
485+
The name of the container registry. Typically used in task steps that don't require a fully qualified server name, for example, `cmd` steps that run Azure CLI commands on registries.
486486

487487
```yml
488488
version 1.1.0
489-
489+
steps:
490+
# List repositories in registry
491+
- cmd: "mcr.microsoft.com/azure-cli az login --identity"
492+
- cmd: "mcr.microsoft.com/azure-cli az acr repository list --name {{.Run.RegistryName}}"
490493
```
491494

492495
### Run.Date

0 commit comments

Comments
 (0)