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:
- Created 3 years ago
- Reactions:1
- Comments:6 (2 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
For others who end up here: Make sure that you specify which subscription azure-cli should look at.
You can run this command:
I will update the help message of
--name
(#15871). Thank you for the feedback.