question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Az cli authorization failed, when user has owner permissions

See original GitHub issue

az feedback auto-generates most of the information requested below, as of CLI version 2.0.62

Describe the bug My user has owner permissions on tenant level. when I tried to run command “az account management-group show “name_mgmt” -e” I received error: AzureResponseError: code: AuthorizationFailed - , The client ‘user_name’ with object id ‘xxx’ does not have authorization to perform action ‘Microsoft.Management/managementGroups/read’ over scope ‘/providers/Microsoft.Management/managementGroups/name_mgmt’ or the scope is invalid. If access was recently granted, please refresh your credentials.

To Reproduce az login az account management-group show “name_mgmt” -e

Expected behavior output of mgmt and nested objects

Environment summary azure-cli 2.13.0 core 2.13.0

extensions: account 0.2.1 ai-examples 0.2.4

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

2reactions
worldsayshicommented, Jun 2, 2022

For others who end up here: Make sure that you specify which subscription azure-cli should look at.

You can run this command:

az account set --subscription xxx-subscription-id-here-xxx
0reactions
jiaslicommented, Nov 11, 2020

I will update the help message of --name (#15871). Thank you for the feedback.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Authorization failed while Executing azure cli command
If access was recently granted, please refresh your credentials. azurerm_storage_account.mscomsa (local-exec): ValidationError: The client ' ...
Read more >
Azure CLI authorization failed when running locally
I'm an Owner on the subscription, and it works with no problem in the cloud shell. I logged in with az login. enter...
Read more >
ERROR: (AuthorizationFailed) for the client - Knowledge Base
ERROR: (AuthorizationFailed) for the client · 1. Log in to Azure Portal · 2. Type Key vaults in Search. Then click on Key...
Read more >
device authentication failed for this user azure
In any of these cases, access to the file may be controlled by user authentication, ... If you have super administrator rights for...
Read more >
How to fix the "You need permission to access workspace ...
What is this error? Your first thought will probably be "It must be to do with permissions". Well, probably. Let's recap one what...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found