Get access token against microsoft graph failing

Priya Pandey 0 Reputation points Microsoft Employee
2023-11-27T10:18:05+00:00

ramu [ ~ ]$ az account get-access-token --output json --resource https://graph.microsoft.com
A Cloud Shell credential problem occurred. When you report the issue with the error below, please mention the hostname 'SandboxHost-638366403169827683'
AADSTS530003: Your device is required to be managed to access this resource. Trace ID: f2683ea1-a366-466f-b9dd-0532aa470102 Correlation ID: 3e125e7d-dc7a-408b-8ed5-6157f092b518 Timestamp: 2023-11-27 05:50:47Z
Interactive authentication is needed. Please run:
az login --scope https://graph.microsoft.com/.default

Microsoft Graph
Microsoft Graph
A Microsoft programmability model that exposes REST APIs and client libraries to access data on Microsoft 365 services.
11,173 questions
{count} votes