Authorization Failed, Please Help with this, while creating virtual machine.

Gagan Deep Singh 0 Reputation points
2024-01-08T11:51:16.5266667+00:00

(AuthorizationFailed) The client 'live.com#******@outlook.com' with object id ********' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/081f341e-de8f-4bcd-8946-3fa44b5188e0/resourcegroups/myResourceGroupVM' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'live.com#@outlook.com' with object id '*****' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/write' over scope '/subscriptions/081f341e-de8f-4bcd-8946-3fa44b5188e0/resourcegroups/myResourceGroupVM' or the scope is invalid. If access was recently granted, please refresh your credentials.

Azure Azure Training
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Rakesh Gurram 15,700 Reputation points Microsoft External Staff Moderator
    2024-01-08T14:07:03.0633333+00:00

    Hi Gagan Deep Singh,

    Please look at application/SPN name with client ID: 081f341e-de8f-4bcd-8946-3fa44b5188e0.

    Go to the subscription, select the specific subscription you're working with, and then proceed to add a role assignment. Choose the "Reader" role and assign it to the Service Principal (SPN) associated with the application.Image preview

    User's image

    User's image

    If the information is helpful, please accept the answer by clicking the "Accept Answer" on the post. If you are still facing any issue, please let us know in the comments. We are glad to help you.

    Thank you.

    2 people found this answer helpful.

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.