-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
How to grant TrustFrameworkKeySet.Read.All to az cli #22755
Comments
@jiasli for awareness |
Azure CLI is a First Party App that doesn't have these delegated permissions. There are 2 possible solutions:
|
@jiasli Thanks for the quick response. Our requirement is to upload custom policies and manage policy keys for AAD B2C tenants from the command line. Preferably not Powershell, but AZ CLI. |
For above options, we did some internal discussion:
WorkaroundA third option is not to use user identity to log in at all. Instead,
|
Thanks for the discussion. Indeed, I too think we should be cautious about granting for any authority to az cli tools. |
Describe the bug
Command Name
az rest
Errors:
To Reproduce:
Steps to reproduce the behavior. Note that argument values have been redacted, as they may contain sensitive information.
az rest --method get --url https://graph.microsoft.com/beta/trustFramework/keySets
Expected Behavior
az cli can retrieve the keyset
Environment Summary
Additional Context
The following commands can be executed successfully.
az rest --method get --url https://graph.microsoft.com/v1.0/applications
The text was updated successfully, but these errors were encountered: