mirror of
https://github.com/okieselbach/AutopilotMonitor.git
synced 2026-10-24 20:53:06 +00:00
c9701301ea
Try Connect-MgGraph -Identity first (Azure Cloud Shell issues a delegated token for the signed-in admin, avoiding the device-code flow that Conditional Access commonly blocks), probe Graph readability, and fall back to interactive sign-in with explicit scopes otherwise. The AppRoleAssignment.ReadWrite.All scope guard now applies only to the interactive path, since ambient-identity tokens carry a fixed scope set. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>