Hello @Victor Lausell
Yes, you must assign Azure role Contributor to your user ******@my.tccd.edu to create azure resources as per this article.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I am a student in Texas and I keep getting the same error. Tried changing my credentials but with my account that is not possible . I am simply trying to learn. Was working on the module Describe Azure compute and networking services
The task requires:
Task 1: Create a Linux virtual machine and install Nginx
Use the following Azure CLI commands to create a Linux VM and install Nginx. After your VM is created, you'll use the Custom Script Extension to install Nginx. The Custom Script Extension is an easy way to download and run scripts on your Azure VMs. It's just one of the many ways you can configure the system after your VM is up and running.
From Cloud Shell, run the following az vm create command to create a Linux VM:
Keep getting the following error:
PS /home/victor_lausell> az vm create --resource-group learn-36e18f87-0615-4b1e-8b69-b63858b521b4 --name my-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys
(AuthorizationFailed) The client '******@my.tccd.edu' with object id 'c9478cca-6c66-43c0-b940-41732552dff8' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/8b4dc032-74e8-4cbb-9bf2-ba780a5c236f/resourcegroups/learn-36e18f87-0615-4b1e-8b69-b63858b521b4' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client '******@my.tccd.edu' with object id 'c9478cca-6c66-43c0-b940-41732552dff8' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/8b4dc032-74e8-4cbb-9bf2-ba780a5c236f/resourcegroups/learn-36e18f87-0615-4b1e-8b69-b63858b521b4' or the scope is invalid. If access was recently granted, please refresh your credentials.
Hello @Victor Lausell
Yes, you must assign Azure role Contributor to your user ******@my.tccd.edu to create azure resources as per this article.