-
Notifications
You must be signed in to change notification settings - Fork 3k
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
"az ad app show" results in "Insufficient privileges..." under Ubuntu #27831
Comments
Thank you for opening this issue, we will look into it. |
In the provided log, Linux (not working):
Windows (working):
Besides, these are I don't think the error is related to the operating system you are using. I doubt different identities are used to access Microsoft Graph. You may run Furthermore, you may run |
As azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py Lines 783 to 800 in fbf4c61
Then it calls Get application with the resolved object ID of the app: azure-cli/src/azure-cli/azure/cli/command_modules/role/custom.py Lines 746 to 749 in fbf4c61
According to the documentation of these APIs, the service principal should at least have |
Thanks @jiasli!
Yes, of course you are right. I mixed it up in the text
And this was absolutely the right assumption! I had to log into different accounts for several tests and it seems I forgot to change back to the login via SP to the respective account under Linux. Also thanks for the hint for getting the access token. Might be useful in the future. Case closed, solution works fine. |
Describe the bug
When logging into Azure with an SP and executing
az ad app --id <service principal id>
this works with the Azure CLI under Windows. But under Ubuntu (same version) I getInsufficient privileges to complete the operation.
.When I compare the request where it fails in the debug log it seems that some
odata
parts are missing in the header:Related command
Errors
Insufficient privileges to complete the operation.
Issue script & Debug output
Ubuntu:
Windows:
Expected behavior
It just works and the API responds with a proper JSON.
Environment Summary
azure-cli 2.53.1
core 2.53.1
telemetry 1.1.0
Extensions:
aks-preview 0.5.56
azure-firewall 0.7.0
Dependencies:
msal 1.24.0b2
azure-mgmt-resource 23.1.0b2
Additional context
It works fine with the same CLI version under Windows.
The text was updated successfully, but these errors were encountered: