AuthorizationFailed - Exercise - Create an Azure virtual machine

roland abellano 20 Reputation points
2024-05-07T03:41:48.83+00:00

I am currently doing the Unit 3 of "Describe Azure compute and networking services" when I encountered the error message below:

Requesting a Cloud Shell.Succeeded.

Connecting terminal...

Welcome to Azure Cloud Shell

Type "az" to use Azure CLI

Type "help" to learn about Cloud Shell

roland_abellano [ ~ ]$ az vm create --resource-group "learn-e749f71f-b654-45ad-b2c6-2348405e919e" --name my-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys

(AuthorizationFailed) The client 'live.com#roland.abellano@gmail.com' with object id '89cb72eb-575d-45cf-9336-dc73d0c234d3' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/9e2deb73-2f73-46d9-96f9-f94827200755/resourcegroups/learn-e749f71f-b654-45ad-b2c6-2348405e919e' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'live.com#roland.abellano@gmail.com' with object id '89cb72eb-575d-45cf-9336-dc73d0c234d3' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/9e2deb73-2f73-46d9-96f9-f94827200755/resourcegroups/learn-e749f71f-b654-45ad-b2c6-2348405e919e' or the scope is invalid. If access was recently granted, please refresh your credentials.

roland_abellano [ ~ ]$

I have seen a similar issue from this page, but unfortunately, the answer provided in the question did not help me with the issue I am encountering - https://learn.microsoft.com/en-us/answers/questions/1662405/authorizationfailed-exercise-create-an-azure-virtu

Thank you very much.

-Roland

This question is related to the following Learning Module

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

Accepted answer
  1. Abdul 2,615 Reputation points Microsoft Vendor
    2024-05-07T05:18:43.76+00:00

    Hi roland abellano,

    Based on the screenshot provided below, it appears that you're encountering challenges when trying to create a VM from the sandbox.
    User's image

    To address this issue, please follow the troubleshooting steps outlined below:

    Step 1: Please sign out from all tabs in your current browser and clear the cache files. Then, try logging in again using your Learn ID credentials.

    Step 2: Please sign out from your current browser session and try logging in again using an incognito window or private browsing mode.

    Step 3: Please switch to a different browser and attempt to log in again.

    Step 4: Please try logging in with a new personal Microsoft email account into the learning path using a completely different browser. If you do not have one, please create a new free Microsoft account. Note that you need to sign in with a Microsoft account, such as Office 365 or Outlook.com, for sandbox access.

    Step 5: If you are still unable to create a resource due to insufficient permissions in the sandbox subscription, we recommend signing up for an Azure free account through the provided link https://azure.microsoft.com/en-us/free and creating a sandbox environment there.

    Please refer to the link below for guidance on running Microsoft Learn training exercises in your own subscription:

    https://learn.microsoft.com/en-us/training/support/use-your-own-subscription

    If you have found the provided answer to be helpful, we kindly request your consideration in accepting the answer. By clicking on the "Accept answer" button, you can contribute to increasing the visibility of this question for other members of the Microsoft Q&A community.

    Should challenges persist, please attach relevant screenshots for further assistance, ensuring all privacy details are concealed before posting.

    Thank you.

    1 person found this answer helpful.

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.