Thank you for reaching out to the Microsoft Q&A platform.
The "Status: 401. Unauthorized" error message indicates that the user or service principal that you are using to access the container registry does not have the necessary permissions to access the repository.
Here are some steps that you can take to troubleshoot the issue:
- Verify that you are using the correct login credentials to access the container registry. You can use the
az acr login
command to log in to the registry using the Azure CLI. Make sure that you are using the correct username and password or token. - Check that the user or service principal that you are using to access the container registry has the necessary permissions to access the repository. You can check the role assignments for the registry using the Azure portal or the Azure CLI. Make sure that the user or service principal has the "AcrPull" role or equivalent permissions to pull images from the registry.
- If you are using a service principal to access the container registry, make sure that the service principal has the correct permissions to access the registry. You can create a new service principal with the "AcrPull" role using the Azure CLI.
Check that the repository that you are trying to access exists in the container registry. You can use the az acr repository list
command to list the repositories in the registry.
If you are still facing issues, try accessing the repository using the Azure portal or the Docker CLI to see if the issue is specific to the tool that you are using.
If none of these steps resolve the issue, you can try contacting Azure support for further assistance.
Please click "Accept as answer" if this helps.