Azure Status 401 Unauthorized container registry

When we create new Azure container registry we might get Azure Status 401 Unauthorized container registry error while accessing the Azure container registry repository.

Let’s see how to fix 401 Unauthorized container registry error.

Go to your azure container registry and left side you should able to see option Access Control (IAM) option.

Click on Access control IAM option you should able to see below screen.

Click on add button and then click on Add role assignment

Inside Job functions roles select name reader

Then click on next

Click on select members option

Add your email id to search

Once added email id, you should able to see your email id in search box. Click on select button.

Click on next.

Click on review and assign. It will show role assigned.

Now click on your Azure container repository. You will not see any error now.

Hope this helps to fix Azure Status 401 Unauthorized container registry.