Not able to complete the exercise for A-Z900

Jolly Upadhyaya 5 Reputation points
2023-02-06T18:10:41.9333333+00:00

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.
Azure Training
Azure Training
Azure: A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.Training: Instruction to develop new skills.
1,309 questions
{count} vote

3 answers

Sort by: Most helpful
  1. Garth Jones 1,351 Reputation points
    2023-02-07T02:33:50.01+00:00

    This is not the right group for this post.

    1 person found this answer helpful.
    0 comments No comments

  2. 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 Issue

    Troubleshooting known issues

    Content Reporting
    --please don't forget to upvote and Accept as answer if the reply is helpful--

    0 comments No comments

  3. 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:

    https://learn.microsoft.com/en-us/answers/questions/1154775/unable-to-add-nginx-extension-set-to-vm-in-sandbox

    0 comments No comments