Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AuthorizationFailed #452

Open
Ashotml opened this issue Jul 14, 2024 · 1 comment
Open

AuthorizationFailed #452

Ashotml opened this issue Jul 14, 2024 · 1 comment
Labels
bug Something isn't working Priority 3

Comments

@Ashotml
Copy link

Ashotml commented Jul 14, 2024

To Reproduce

Create a VM in Sandbox

Commands you ran
az vm create --resource-group "[sandbox resource group name]" --name my-vm --public-ip-sku Standard --image Ubuntu2204 --admin-username azureuser --generate-ssh-keys

Observed Behavior

AuthorizationFailed

Include error output here
(AuthorizationFailed) The client 'live.com#asherm@goadaptiv.com' with object id '379d324f-89ea-4707-b6fb-077c25009d20' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/f27a2135-1ae7-44b2-b514-f0b7b1dcbfba/resourcegroups/[sandbox resource group name]' or the scope is invalid. If access was recently granted, please refresh your credentials.
Code: AuthorizationFailed
Message: The client 'live.com#asherm@goadaptiv.com' with object id '379d324f-89ea-4707-b6fb-077c25009d20' does not have authorization to perform action 'Microsoft.Resources/subscriptions/resourcegroups/read' over scope '/subscriptions/f27a2135-1ae7-44b2-b514-f0b7b1dcbfba/resourcegroups/[sandbox resource group name]' or the scope is invalid. If access was recently granted, please refresh your credentials.

Expected behavior

the VM my-vm is created in sandbox

A clear description of what you expected to happen instead.
Neither sure what authorization setup it refers to in sandbox environment nor changed any credentials. Occasionally getting this error even after reloading/re-logging in.

Is this specific to Cloud Shell?

Please verify if the same issue can be reproduced by running the same tool outside Cloud Shell - for example,
by installing it on your own computer. If so, it is likely to be a bug in that tool or in the Azure service it communicates with,
not in Cloud Shell. Please file the issue with the appropriate project.

Interface information

How are you accessing Cloud Shell - https://shell.azure.com, https://portal.azure.com, via Windows Terminal, or some other method?
If a browser, which Operating System and browser are you using? (ex. Edge on Windows 10)

Using Safari Version 17.5 (17618.2.12.111.5, 17618) browser. Accessing on learn.microsoft.com sandbox

Additional context

Add any other context about the problem here.

@Ashotml Ashotml added bug Something isn't working Triage-needed Triage needed by Cloud Shell team labels Jul 14, 2024
@mbifeld
Copy link
Member

mbifeld commented Aug 13, 2024

Hi @Ashotml, thank you for filing this issue. Are you able to run the vm create command locally? If not, it is likely an issue with your subscription having insufficient privileges. Also, could you please link the Microsoft Learn Sandbox tutorial you are using?

@mbifeld mbifeld added Priority 3 and removed Triage-needed Triage needed by Cloud Shell team labels Aug 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Priority 3
Projects
None yet
Development

No branches or pull requests

2 participants