PowerShell 7 • Azure Active Directory PowerShell for Graph Azure AD issue

Eric Kwan 6 Reputation points
2020-09-08T00:19:46.973+00:00

Hi,

Having issue with Connect-AZaccount from local PC via PowerShell 7.x , been able to walk through the interactive login

"PS C:\Users\ThisGuy> connect-azaccount

WARNING: To sign in, use a web browser to open the page https://microsoft.com/devicelogin and enter the code XXXXXXXX to authenticate."

Input the code and was redirected to Sign In page, put in Name and Password, redirected to this URL and

Sorry, but we’re having trouble signing you in.

AADSTS165000: Invalid Request: The request did not include the required tokens for the user context. One or more of the user context values (cookies; form fields; headers) were not supplied, every request must include these values and maintain them across a complete single user flow. The request did not return all of the form fields. Failure Reasons:[Token was not provided;]

Request Id: f31d4819-e003-41db-bddf-94b982be0100
Correlation Id: 98c8c4a1-74f3-488f-b163-98927957583c
Timestamp: 2020-09-08T00:05:23Z

Appreciate looking into this. -Eric

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} vote

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.