I have generated an access token for my Azure Container Registry (ACR) using the Token Menu. I would like to use this access token to call the /_tags endpoint for a specific image in the registry, but I am not sure how to do this.
I can use the token to login using the docker login
command in powershell, but the only way I've been able to get the api call to work is by using the admin account credentials.
I thought maybe the "Action" was a clue so I created a custom scope map for the Token that explicitly included "metadata_read" but that didn't help.
this question on stackoverflow
The error I get back:
{
"errors": [
{
"code": "UNAUTHORIZED",
"message": "authentication required, visit https://aka.ms/acr/authorization for more information.",
"detail": [
{
"Type": "repository",
"Name": "my-image",
"Action": "metadata_read"
}
]
}
]
}