as using students version i am unable to run the command and getting the following error what should i do?

deepesh agrawal CSD 2022-26 20 Reputation points
2024-03-16T19:07:28.2933333+00:00

AuthorizationFailed) The client 'deepesh.agrawal@mit.asia' with object id '7475f671-4545-49ac-8232-7c7d9e4d0d5c' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/f27a2135-1ae7-44b2-b514-f0b7b1dcbfba/resourceGroups/learn-77c70001-f981-40ea-8306-be400ab0d13/providers/Microsoft.Compute/virtualMachines/my-vm' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

so as i was trying to create a virtual machine and am is not able to get it so what can i do

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,654 questions
0 comments No comments
{count} votes

Accepted answer
  1. AmaranS 6,580 Reputation points Microsoft Vendor
    2024-03-17T03:39:30.9533333+00:00

    Hi deepesh agrawal CSD 2022-26,

    Based on my understanding of the issue, you're practicing the following Learning Path exercise.

    Unit: 3 of 14 Exercise - Create an Azure Virtual Machine

    Based on the provided error code, it is recommended to substitute "[sandbox resource group name]" with the default resource group name, commencing with "learn......" (for instance: learn-f063fbde-8087-4d3b-91a3-cc2475106779). This replacement should be made adjacent to the --resource-group name, as illustrated in the accompanying. screenshot below. RG11

    Note: Kindly refrain from utilizing a personalized resource group name, such as (e.g., my-group-01). Instead, consider employing a resource group name that begins with learn-f063fbde-8087-4d3b-91a3-cc2475106779, as illustrated in the provided screenshot below.

    It appears you didn't copy the entire command from the exercise.

    Please Activate a new sandbox, Copy/Paste command from Task 1 Step 1 (use Copy button on upper right corner of code window) into Cloud Shell on right, wait for it to complete, then Copy/Paste command from Task 1

    User's image

    Step 2 into Cloud Shell on rightUser's image

    Please note that you need to complete Exercise in unit 3 first the later Exercise in Unit 9 before the above Sandbox expires, which is less than 1 hour.

    User's image

    I have tried several times to reproduce the issue, and the documented steps works fine for me.

    If you encounter any future issues, please feel free to contact us, and we will be pleased to assist you further.

    If you have found the answer provided to be helpful, please click on the "Accept answer" button so that it is useful for other members in the Microsoft Q&A community.

    Thank you.


0 additional answers

Sort by: Most 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.