question

subhashkalicharan-7493 avatar image
0 Votes"
subhashkalicharan-7493 asked subhashkalicharan-7493 edited

Error registering resource provider

I have a access of contributer. When I want to register "container registry" it show "The client "xxxxxxlabs.net' with object id 'e4xxxxxx2528' does not have authorization to perform action '84codes.cloudamqp/register/action' over scope '/subscriptions/axxxxxxxxx' or the scope is invalid. If access was recently granted, please refresh your credentials"

azure-container-registry
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@subhashkalicharan-7493 , thank you for reaching out to us. Happy to help. Can you tell me where do you see this error? As, it looks like you are using another client (other than your Id) to register Resource Providers. You need Contributor or Owner roles for the client to do this operation, the doc says that:

You must have permission to do the /register/action operation for the resource provider. The permission is included in the Contributor and Owner roles.

Let me know if this helps.


0 Votes 0 ·

When I register "container registry" on resoure provider on my subscription(Mirosoft Partner Network) , it show above error. I have access as a contributer.

0 Votes 0 ·

1 Answer

amanpreetsingh-msft avatar image
0 Votes"
amanpreetsingh-msft answered subhashkalicharan-7493 edited

Hi @subhashkalicharan-7493 · Thank you for reaching out.

I tested it out by creating a new user account and assigned with Contributor role on the subscription. After signing in to Azure Portal, I was successfully able to register the Microsoft.ContainerRegistry provider.

Please make sure that you are connected to correct directory and subscription while performing this action. If you are using Guest user account, you might be getting connected to different directory and subscription. You may also consider using Member user account created in the directory to which the subscription is associated.

If you still face the issue, could you please let me know if you are:

  1. Registering the provider under application context?

  2. Are you registering the provider using REST API instead of Azure Portal?

Free free to tag me in you reply if you have any question.


Please "Accept the answer" if the information helped you. This will help us and others in the community as well.

· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@amanpreetsingh-msft I am still facing the same problem..
I am registring the container in subscription. I am not registering using REST API. How I do it? I have contributer access still it show. The client 'subhash.kalicharan@iviewlabs.net' with object id '07bab42d-b2c6-41dd-abff-20e364f42ae1' does not have authorization to perform action 'microsoft.containerregistry/register/action' over scope '/subscriptions/a63c3e93-ac6b-4461-8005-73c06e434ed7' or the scope is invalid. If access was recently granted, please refresh your credentials.

0 Votes 0 ·