Connect Powershell to Azure AD failed

Rahul Kaim 21 Reputation points
2020-05-12T13:31:12.623+00:00

I am trying to connect Azure AD , I am running PowerShell in elevated type "connect-azuread"

Since I have different global Admin id then my login credentials on windows 10 I enter GA account.

I think this is related to user context but not sure how to fix ?

**Request Id: 0d6cd71d-b57b-4047-b957-bd7g1c5c3b00

Correlation Id: adb18825-dhb5-42ef-ba42-a0d246e3618c Timestamp: 2020-05-12T13:23:27Z

Message: AADSTS90100: ctx parameter is empty or not valid.**

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,409 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 56,686 Reputation points
    2020-05-13T12:55:20.03+00:00

    @Rahul Kaim This may happen due to WIA (Windows Integrated Authentication). You can try to login to your Windows 10 machine using your GA credentials or running PowerShell with GA Credentials and run Connect-AzureAD, it should work. You can also test by breaking WIA by removing the IDP URLs (for seamless SSO) from local intranet zone, and try Connect-AzureAD. Keep in mind, if you remove IDP URLs from local Intranet zone it may break SSO experience for other applications as well. So try this for testing purpose and revert this change afterwards.

    -----------------------------------------------------------------------------------------------------------

    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


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.