This is not the right group for this post.
Not able to complete the exercise for A-Z900
I am trying to do the Task 1 in A-Z 900 course. Getting the following error. Tried running in a different sandbox, still facing same issue.
jolly_upadhyaya [ ~ ]$ az vm create \
--resource-group learn-826f0d3a-36be-4021-9a33-a0253dfa4873 \
--name my-vm \
--image UbuntuLTS \
--admin-username azureuser \
--generate-ssh-keys
(AuthorizationFailed) The client 'live.com#jolly.upadhyaya@gmail.com' with object id '109b8217-8f9a-4f8c-be07-26a6dff4587b' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/e6b1a91a-7af1-4025-8a99-f717210b4a91/resourcegroups/learn-826f0d3a-36be-4021-9a33-a0253dfa4873' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#jolly.upadhyaya@gmail.com' with object id '109b8217-8f9a-4f8c-be07-26a6dff4587b' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/e6b1a91a-7af1-4025-8a99-f717210b4a91/resourcegroups/learn-826f0d3a-36be-4021-9a33-a0253dfa4873' or the scope is invalid. If access was recently granted, please refresh your credentials.
3 answers
Sort by: Most helpful
-
-
Anonymous
2023-02-07T02:38:59.6+00:00 I'd try asking for assistance with course issues in dedicated forums here. Participate\Ask A Question
Courses and Course Content/Course Content IssueContent Reporting
--please don't forget toupvote
andAccept as answer
if the reply is helpful-- -
kobulloc-MSFT 26,131 Reputation points Microsoft Employee
2023-02-14T06:01:19.7333333+00:00 Hello, @Jolly Upadhyaya !
Why am I running into an
AuthorizationFailed
error?(AuthorizationFailed) The client 'xxxxxxxx' with object id 'xxxxxx' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/xxxxxxxxx/resourceGroups/learn-xxxxxxxxx-cb152d78be0e/providers/Microsoft.Compute/virtualMachines/my-vm' or the scope is invalid. If access was recently granted, please refresh your credentials.
As reported in a post by Cornelison, William, refreshing the sandbox shell has cleared this error for other users. I know that you tried other sandboxes but are you still running into this now that there has been a full sandbox reset?
Reference: