Azure / azure-cli

Azure Command-Line Interface
MIT License
3.98k stars 2.96k forks source link

az acr manifest list-metadata does not list untagged manifests within a repository #29994

Open jrdevops1 opened 4 days ago

jrdevops1 commented 4 days ago

Describe the bug

As az acr repository show-manifests has been deprecated, I have attempted to begin using az acr manifest list-metadata to list my tag details, specifically untagged images.

However it seems it only lists tagged images as opposed to what the previous command could do and list both tagged and untagged images within a repository.

Previously untagged images would just be an empty array for the value of tags

Is there a reason for this?

Related command

az acr manifest list-metadata

Errors

No untagged manifest data visible in output of command

Issue script & Debug output

N/A

Expected behavior


  {
    "digest": "sha256:..........",
    "tags": [],
    "timestamp": "2021-XX-XXTXX:XX:XX.XXXXXXXZ"
  },

Environment Summary


azure-cli                         2.64.0

core                              2.64.0
telemetry                          1.1.0

Additional context

No response

yonzhan commented 4 days ago

Thank you for opening this issue, we will look into it.

microsoft-github-policy-service[bot] commented 4 days ago

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @toddysm, @luisdlp, @northtyphoon.

jrdevops1 commented 4 days ago

After a bit of further research, it looks like https://github.com/MicrosoftDocs/azure-docs/issues/25060 correctly points out that using the query flag like so retrieves the untagged images in the repository:

az acr manifest list-metadata --name contoso --registry contosocorp --query "[?tags[0]==null].digest"

Maybe something to note down in the future on the docs in case of similar issues going forward of differences in the previous deprecated command and the newer command in preview?