The client 'abc' with object id 'XXXXXXXXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/read' over scope '/subscriptions/'XXXXXXXXXXXXXXXXXX'/resourceGroups/XXXX-014-aks-rg' or the scope is in

Deepanshu katara 16,720 Reputation points MVP Moderator
2024-05-06T11:19:20.9033333+00:00

I got into a situation where I need to access AKS cluster ,so I have added below required permission by adding myself to the group and given necessary permission but getting below error

ERROR :The client 'abc' with object id 'XXXXXXXXXXXXXXXXXX' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourceGroups/read' over scope '/subscriptions/'XXXXXXXXXXXXXXXXXX'/resourceGroups/XXXX-014-aks-rg' or the scope is inis invalid. If access was recently granted, please refresh your credential

Please check below Images

Error Image

User's image

Permission Image

User's image

Action Already tried:

  1. Clear the browser cache , sign out an sign in
  2. Check with other members of the group they can access with no errors

Please help

Azure Kubernetes Service
Azure Kubernetes Service
An Azure service that provides serverless Kubernetes, an integrated continuous integration and continuous delivery experience, and enterprise-grade security and governance.
2,456 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Babafemi Bulugbe 4,025 Reputation points MVP Volunteer Moderator
    2024-05-06T12:07:42.6066667+00:00

    Hello Deepanshu katara,

    Trust you are doing great.

    I noticed from the error you posted that you do not have the permission needed.

    You have been assigned a role on the AKS but not on the resource group where the AKS is.

    You need a read permission on the Resource group (corp-dev-014) where the AKS is.

    User's image

    Let me know if this helps.

    Babafemi


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.