How to Fix issue in the Azure Container Registry Status: 401. Unauthorized.

Pallavi Uduthalapally 5 Reputation points
2023-09-18T14:42:20.1+00:00

Error.jpg When i create Azure Container Registry in the Repositories , I am having the Error Status: 401. Unauthorized.  

If i push the images from the Azure Pipelines, It is not reflecting in my Azure Container Registry Even though Authorization is done and Pipelines are running properly, But it is not reflecting in the Azure Container Registry.

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

2 answers

Sort by: Most helpful
  1. Sabyasachi Seal 25 Reputation points
    2023-10-11T03:26:55.9166667+00:00

    Found a solution to this. Basically, you need to add the permissions to yourself.

    1: Go to the container registry.

    2: Select Access Control(IAM).

    3: Click on "Add role assignment" under "Grant access to this resouce"

    4: Now go to "Priiledged administrator roles" and select "Owner"

    5: Click on "Next" at the bottom of the page.

    6: Now click on "Select Members"

    7: Add yourself (via email or name) and click on "Select" at the bottom of the right expanded pane.

    8: Click on "Review and Assign"

    This should fix your issue.

    Sabyasachi Seal,

    MLSA (Gold) , 2023

    5 people found this answer helpful.
    0 comments No comments

  2. Ebunoluwa ABIONA 0 Reputation points
    2023-11-07T07:20:41.98+00:00

    Yes it solved the issue; however, these steps did not take into consideration the constraints that should or should not be set when assigning the user roles.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.