Exercise - Create an Azure virtual machine

Anonymous
2024-06-06T16:04:42.7266667+00:00

Hi,

I'm unable to proceed with this learning module due to this error... Please help.

sathiyan_m [ ~ ]$ az vm create \

--resource-group "learn-52f1cd9d-83c1-42c6-99dd-b5b8824035c9" \

--name my-vm \

--public-ip-sku Standard \

--image Ubuntu2204 \

--admin-username azureuser \

--generate-ssh-keys

(AuthorizationFailed) The client 'live.com#******@hotmail.com' with object id '7700015b-3d83-4dfa-8d4f-30ad79b3bf33' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3ec6e182-44d1-4344-b855-5aa01ff748e6/resourcegroups/learn-52f1cd9d-83c1-42c6-99dd-b5b8824035c9' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'live.com#******@hotmail.com' with object id '7700015b-3d83-4dfa-8d4f-30ad79b3bf33' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3ec6e182-44d1-4344-b855-5aa01ff748e6/resourcegroups/learn-52f1cd9d-83c1-42c6-99dd-b5b8824035c9' or the scope is invalid. If access was recently granted, please refresh your credentials.

sathiyan_m [ ~ ]$ az vm create --resource-group "learn-6a11c2af-689a-4248-a13a-5aae8ad55376" --name m

y-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys

(AuthorizationFailed) The client 'live.com#******@hotmail.com' with object id '7700015b-3d83-4dfa-8d4f-30ad79b3bf33' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/3ec6e182-44d1-4344-b855-5aa01ff748e6/resourcegroups/learn-6a11c2af-689a-4248-a13a-5aae8ad55376' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

This question is related to the following Learning Module

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

1 answer

Sort by: Most helpful
  1. Anonymous
    2024-06-06T17:24:59.42+00:00

    Hi Sathi,

    Thank you for reaching out to Microsoft Q & A forum.

    Where am I seeing this?

    Subject: AZ-900/Azure Fundamentals

    Learning Path: Describe Azure architecture and services.
    Module: Describe Azure compute and networking services
    Unit: 3 - 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-52f1cd9d-83c1-42c6-99dd-b5b8824035c9). 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.

    now

    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.


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.