I am getting AuthorizationFailed Error when trying to Create a Linux virtual machine and install Nginx

Megshi Thakur 0 Reputation points
2024-01-07T03:40:52.99+00:00

(AuthorizationFailed) The client 'live.com#******@outlook.com' with object id '234d3da7-2e30-4338-aeb2-9f601d79a1fb' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/37452974-4d56-4dd1-94ca-50d7633a524f/resourceGroups/MyVM/providers/Microsoft.Compute/virtualMachines/my-vm' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'live.com#******@outlook.com' with object id '234d3da7-2e30-4338-aeb2-9f601d79a1fb' does not have authorization to perform action 'Microsoft.Compute/virtualMachines/read' over scope '/subscriptions/37452974-4d56-4dd1-94ca-50d7633a524f/resourceGroups/MyVM/providers/Microsoft.Compute/virtualMachines/my-vm' or the scope is invalid. If access was recently granted, please refresh your credentials.

Azure Azure Training
{count} votes

3 answers

Sort by: Most helpful
  1. pnaroju 3,165 Reputation points Microsoft External Staff
    2024-01-10T08:22:44.7666667+00:00

    Hi Megshi Thakur,

    Whenever we activate a sandbox in the exercise by clicking on "Activate sandbox" button, we can see a default resource group name starting with learn......(for example: learn-e58d2b0d-5e77-4b91-b751-c67e776463e0) next to --resource-group name as shown in the screenshot below:

    NEWSB1

    If we are unable to see the default resource group name starting with learn...., kindly follow the below options to see the default resource group name for Concierge subscription.

    1.Login into the Azure portal with your same credentials used for accessing the learn path. In the Azure portal go to Resource groups and under Resource groups we can see our default resource group name starting with learn...... for Concierge subscription as shown in the screenshot below:

    AZURE PORTAL IMAGE

    Copy the resource group name starting with learn... and replace [sandbox resource group name] in the code block for VM creation with learn.. resource group name by removing the brackets [] and continue the exercise.

    2.Even after activation of sandbox, if we are unbale to see the default resource group name starting with learn......, as a workaround kindly go to one unit previous to unit 3: Exercise - Create an Azure virtual machine and come back again to unit 3 to see the default resource group name starting with learn.

    Note: After activation of sandbox, kindly donot use any other resource group name (for example:MyVM) other than default resource group name starting with learn.

    If you are still running into issues, please let us know in the comments. We are happy to assist you.

    If the answer has been helpful in resolving the issue, please consider accepting the answer by clicking "Upvote" and "Accept answer" button to help increase visibility of this question for other members of the Microsoft Q&A community.

    Thank you.

    1 person found this answer helpful.
    0 comments No comments

  2. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2024-01-07T03:56:58.7333333+00:00

    Hi Megshi,

    This message means that you do not have the necessary permissions to create a VM in this resource group.

    To verify your access in this resource group go to Azure Portal > your resource group > Access control (IAM) > View my access

    User's image

    You should reach out to the subscription owner to get assigned the necessary permissions.


    If this is helpful please accept answer.


  3. HMTHAKUR-6698 0 Reputation points
    2024-11-19T17:49:07.9466667+00:00

    H M THAKUR

    0 comments No comments

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.