How to fix "AuthorizationFailed" when terraform plan?

Zhao Mingyang (GI-DE) 30 Reputation points
2023-03-14T07:42:20.6466667+00:00

Error: Unable to list provider registration status, it is possible that this is due to invalid credentials or the service principal does not have permission to use the Resource Manager API, Azure error: resources.ProvidersClient#List: Failure responding to request: StatusCode=403 -- Original Error: autorest/azure: Service returned an error. Status=403 Code="AuthorizationFailed" Message="The client '8ced9281-7ee9-4468-9fc3-2000bfc06497' with object id '8ced9281-7ee9-4468-9fc3-2000bfc06497' does not have authorization to perform action 'Microsoft.Resources/subscriptions/providers/read' over scope '/subscriptions/eef1fc59-c568-4c81-9557-f0396ef58714' or the scope is invalid. If access was recently granted, please refresh your credentials."

Microsoft Security Microsoft Entra Microsoft Entra External ID
Microsoft Security Microsoft Authenticator
{count} votes

1 answer

Sort by: Most helpful
  1. Juan Sanchez 1 Reputation point
    2024-02-26T11:30:05.29+00:00

    Thanks @Thomas Spear I wonder, when you don't use a SP, but an App Registration, how would this look like. It does not seem so straightforward. Ideas?

    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.