Skip to content

list-metadata not displaying the right information #29196

@paul58914080

Description

@paul58914080

Describe the bug

I wanted to list all the images that are locked. Despite locking the images with write-enabled & delete-enabled as false when I try to list through manifest I see that the image is not having the right values for writeEnabled and deleteEnabled as false.

Related command

az acr manifest list-metadata --registry $registry --name $repository --orderby time_desc

Errors

Despite being locked the above command shows wrong information

{
    "architecture": "amd64",
    "changeableAttributes": {
-    "deleteEnabled": true,
      "listEnabled": true,
      "readEnabled": true,
-     "writeEnabled": true
    },
    "configMediaType": "application/vnd.docker.container.image.v1+json",
    "createdTime": "2024-06-13T07:37:24.1930109Z",
    "digest": "",
    "imageSize": 557524,
    "lastUpdateTime": "2024-06-13T07:37:24.1930109Z",
    "mediaType": "application/vnd.docker.distribution.manifest.v2+json",
    "os": "linux",
    "tags": [
      "2"
    ]
  }

When I use the command az acr repository show-tags -n $registry --repository $repository --detail it displays the right information, but it lacks meta infromation like imageSize which I am keen on getting.

Issue script & Debug output

N\A

Expected behavior

I would like to see the right information with the manifest command

Environment Summary

azure-cli 2.59.0 *

core 2.59.0 *

telemetry 1.1.0

Dependencies:

msal 1.27.0

azure-mgmt-resource 23.1.0b2

Python location '/usr/bin/python3.9'

Python (Linux) 3.9.18 (main, Sep 22 2023, 17:58:34)

[GCC 8.5.0 20210514 (Red Hat 8.5.0-20)]

Additional context

No response

Metadata

Metadata

Assignees

Labels

Auto-AssignAuto assign by botAuto-ResolveAuto resolve by botContainer Registryaz acrService AttentionThis issue is responsible by Azure service team.bugThis issue requires a change to an existing behavior in the product in order to be resolved.customer-reportedIssues that are reported by GitHub users external to the Azure organization.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions