[Core] az rest: clarify Microsoft Graph 403 accessDenied for privileged scopes#33363
Draft
Copilot wants to merge 7 commits into
Draft
[Core] az rest: clarify Microsoft Graph 403 accessDenied for privileged scopes#33363Copilot wants to merge 7 commits into
az rest: clarify Microsoft Graph 403 accessDenied for privileged scopes#33363Copilot wants to merge 7 commits into
Conversation
️✔️AzureCLI-FullTest
|
️✔️AzureCLI-BreakingChangeTest
|
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Agent-Logs-Url: https://github.com/Azure/azure-cli/sessions/434b4544-999c-4413-9df1-8ef7b472e216 Co-authored-by: a0x1ab <59631311+a0x1ab@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix Scope Policy.ReadWrite.ConditionalAccess not granted
[Core] May 12, 2026
az rest: clarify Microsoft Graph 403 accessDenied for privileged scopes
Collaborator
|
Core |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Related command
az rest --method GET --url "https://graph.microsoft.com/v1.0/policies/authenticationStrengthPolicies/"Description
az restcan return opaque 403 failures for Microsoft Graph endpoints that require privileged scopes not pre-authorized for the Azure CLI first-party app (for examplePolicy.ReadWrite.ConditionalAccess). This change adds targeted guidance so users can quickly identify the auth model mismatch and use a service principal flow with required Graph permissions.azure.cli.core.util.handle_exceptionfor:https://graph.microsoft.com/requestserror.code == accessDenied(case-insensitive)AADSTS65002) and directing users toaz login --service-principalwith required Microsoft Graph permissions.403/accessDeniedpattern; other HTTP error paths are unchanged.403/accessDenied(including casing variants)Testing Guide
History Notes
[Core]
az rest: Add guidance for Microsoft Graph 403accessDeniedcaused by privileged scope pre-authorization limitsThis checklist is used to make sure that common guidelines for a pull request are followed.
The PR title and description has followed the guideline in Submitting Pull Requests.
I adhere to the Command Guidelines.
I adhere to the Error Handling Guidelines.