Connect Powershell to Azure AD failed

Roy 21 Reputation points

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.**

Azure Active Directory
Azure Active Directory
An Azure enterprise identity service that provides single sign-on and multi-factor authentication.
14,750 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AmanpreetSingh-MSFT 55,541 Reputation points

    @Roy 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.