Run az account get-access-token command failed

Bingqiang Xiang 20 Reputation points Microsoft Employee
2025-04-25T13:23:06.9133333+00:00

I ran the following az account command, it can return the right result

az account get-access-token --scope https://canary.graph.microsoft.com/User.ReadWrite.All  --tenant 633fc03f-56d0-459c-a1b5-ab5083fc35d4


but if I ran the following command, it returned an error

az account get-access-token --scope https://canary.graph.microsoft.com/CloudPC.Read.All  --tenant 633fc03f-56d0-459c-a1b5-ab5083fc35d4


error looks like:

(pii). Status: Response_Status.Status_InteractionRequired, Error code: 3399614476, Tag: 557973645
Please explicitly log in with:
az login --scope https://canary.graph.microsoft.com/CloudPC.Read.All

How to solve this issue?

PowerShell
PowerShell
A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
2,916 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.