I have two azure CLI queries.
az acr repository list
to retrieve a list of repositories in my container registry
az acr repository show-tags
to retrieve version tag for each of the repositories returned by the first query
This results in an initial call to retrieve a list and then 1 call for each repository returned. Is there an alternative that would reduce the number of calls required to one? Retrieval of a list of repositories and their version in 1 go.
show-tags command needs a repository parameter that is mandatory and I am unaware of any other commands that would return the information I need.
AFAIK currently there is no alternative that would retrieve list of repositories and their versions in one go. I recommend sharing this feedback by posting it here -> https://feedback.azure.com/forums/903958-azure-container-registry
Just a suggestion which you might already be aware of is, for now as a workaround you may develop a small script to fetch all the repositories using the list command and feed each repository name in sequence one after the other as input to the show tags command and concatenate the outputs of all repositories.
Hope this helps!!