Command Error in Learn Module "Exercise - Create an Azure virtual machine"

Aysel Jabbarova 20 Reputation points
2024-03-16T01:17:59.9533333+00:00

Hi all, I get an error message while running the code below which is given in the task (to create a VM):
User's image

I don't know what is wrong, because I just copied code from task and paste it to cloud shell. Here is the error message which I got:
User's image

(AuthorizationFailed) The client 'live.com#******@outlook.com' with object id '54826480-f638-4ebd-a5a0-6d4a25f1e59b' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/0569b7eb-5596-4fe5-9afa-7fdeec54165b/resourcegroups/learn-4ba8ab43-db71-4c5c-b693-017870fad3a3' or the scope is invalid. If access was recently granted, please refresh your credentials.

Azure | Azure Training
0 comments No comments
{count} votes

Answer accepted by question author
  1. AmaranS 7,280 Reputation points Microsoft External Staff
    2024-03-16T06:22:49.0533333+00:00

    Hi Aysel Jabbarova,

    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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.