Home > Blockchain >  how to authenticate azure container registry https://registry.azurecr.io/v2/
how to authenticate azure container registry https://registry.azurecr.io/v2/

Time:02-24

If I use POST Azure Admin enabled Access Key

But now i want to authenticate the container registry with Token (previews) see below images - username - MyToken password - password [provided in the image]. [ basic auth ] enter image description here

But here i am getting error -

{
"errors": [
    {
        "code": "UNAUTHORIZED",
        "message": "authentication required, visit https://aka.ms/acr/authorization for more information.",
        "detail": null
    }
]

}

can someone help me authenticating azure ECR container registry without admin access keys. I mean by user Tokens(Preview) with provided with scope map.

CodePudding user response:

We have tested this in our local environment, Below statements are based on our analysis.

In our local environment, we have created a token for ACR repository & tried accessing the repository using the HTTP post request from Postman. It got failed with an error unauthorized(irrespective of whether admin mode is enabled or disabled on ACR) as shown in the below image.

enter image description here

As per the current enter image description here

  • Related