Issue while working on Exercise - Create an Azure virtual machine

Barkha Amarlal Chainani 5 Reputation points
2024-07-22T23:40:44.7+00:00

I am currently following the steps of Module Exercise "Exercise - Create an Azure virtual machine"

I am getting the below error unfortunately:

VERBOSE: Authenticating to Azure ...

VERBOSE: Building your Azure drive ...

PS /home/barkha> az vm create --resource-group "learn-f1dfb75e-232c-4c04-a75e-1745cf0c237a" --name my-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys

(AuthorizationFailed) The client 'BarkhaAmarlal.Chainani@ucf.edu' with object id '6f52e24a-1a77-465d-8406-1b1a816442d9' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/651da11b-7757-4742-ac91-148e47c2869b/resourcegroups/learn-f1dfb75e-232c-4c04-a75e-1745cf0c237a' or the scope is invalid. If access was recently granted, please refresh your credentials.

Code: AuthorizationFailed

Message: The client 'BarkhaAmarlal.Chainani@ucf.edu' with object id '6f52e24a-1a77-465d-8406-1b1a816442d9' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/651da11b-7757-4742-ac91-148e47c2869b/resourcegroups/learn-f1dfb75e-232c-4c04-a75e-1745cf0c237a' or the scope is invalid. If access was recently granted, please refresh your credentials.

Please help.

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,712 questions
{count} votes

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.