<Solved>`Status: 401. Unauthorized. ` shows in the Repositories page of a newly created ACR

Li Gang 40 Reputation points
2023-09-16T07:39:23.22+00:00

The issue has been resolved by explicitly assigning a reader role to an Admin account, which is weird to me, though.

After creating an Azure Container Registry (ACR) and attempting to access its Repositories, I encountered a 'Status: 401 Unauthorized' error, as shown in the screenshot below. This issue has occurred in both my sponsorship subscription and my personal pay-as-you-go subscription."
Could this issue be resolved?

Many thanks in advance.

Liacr

Azure Container Registry
Azure Container Registry
An Azure service that provides a registry of Docker and Open Container Initiative images.
397 questions
{count} votes

2 answers

Sort by: Most helpful
  1. amir levy 70 Reputation points
    2023-09-21T08:02:20.73+00:00

    get into the same page as the photo shows and enter the access control (IAM)

    and press add

    add role assignment

    role: reader

    members: add your account

    then review and create

    it should work

    14 people found this answer helpful.

  2. Chukwuduzie Blaise 90 Reputation points
    2023-10-12T11:05:52.71+00:00

    Go to your azure container registries on the azure portal and select the repository under the particular registry then on the menu by the left select the following in order.

    Access control(IAM)

    click the Add button at the top

    select role assignment

    choose role as reader

    add your account as a member by typing your email

    review and create

    Once it is done you should be able to access your repositories

    1 person found this answer helpful.