AutherizationFailed -While Making docker container and powershell connect

Pratikshya Das 0 Reputation points
2024-08-29T12:00:14.2733333+00:00

{"code":"AuthorizationFailed","message":"The client 'live.com#******@gmail.com' with object id '2ed9c8db-62f8-4a67-8db1-ba54e0910f3d' does not have authorization to perform action 'Microsoft.ContainerRegistry/register/action' over scope '/subscriptions/d03d3513-34cc-44f9-a5f3-94555c67a434' or the scope is invalid. If access was recently granted, please refresh your credentials. (Code: AuthorizationFailed)"}

Azure Container Instances
Azure Container Instances
An Azure service that provides customers with a serverless container experience.
757 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-08-29T16:40:58.83+00:00

    Hi Pratikshya Das,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    It looks like the error is due to insufficient permissions for the user 'live.com#******@gmail.com' with object ID '2ed9c8db-62f8-4a67-8db1-ba54e0910f3d'.

    To resolve this issue, please ensure that the user has the appropriate role assigned in the Azure subscription d03d3513-34cc-44f9-a5f3-94555c67a434. Specifically, the user needs to be assigned a role like Contributor or Owner to perform actions on the Container Registry.

    If access was recently granted, please refresh your credentials by re-authenticating or running the az login command.

    Make sure that you are using the latest version of the Azure PowerShell module. You can update it by running the following command Update-Module -Name Az

    For more information, please refer to the following documents:
    Quickstart - Deploy Docker container to container instance - PowerShell - Azure Container Instances | Microsoft Learn
    Authentication required error message in Azure Container Registry - Azure | Microsoft Learn
    Troubleshoot login to registry - Azure Container Registry | Microsoft Learn

    If you have any further queries, do let us know. If the comment is helpful, please click "Upvote".

    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.