connecting to Azure AD from PowerShell by using command Connect-MSOlService. But getting a error unable to sigin using personal mail

ARAVIND S V 1 Reputation point
2022-03-31T13:04:48.807+00:00

I am a beginner to Azure cloud. I am learning but taking a free tier of Azure.

While connecting to Azure AD from PowerShell by using command Connect-MSOlService. But getting a error unable to sigin using personal mail

i am using mail id as **********@Microsoft Corporation .com

please help me

Windows for business Windows Server User experience PowerShell
Microsoft Security Microsoft Entra Microsoft Entra ID
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Alan Kinane 16,951 Reputation points MVP Volunteer Moderator
    2022-03-31T13:09:05.357+00:00

    This is quite an old module command used to connect to Azure AD (Microsoft tenant) so you would need a work or school account authorised for that tenant. You can't connect using a personal account like @Microsoft Corporation .com or @harsh.com .com.

    Try using the below command instead:

    Connect-AzureAD  
    

    https://learn.microsoft.com/en-us/powershell/module/azuread/connect-azuread?view=azureadps-2.0


  2. SChalakov 10,576 Reputation points MVP Volunteer Moderator
    2022-03-31T13:14:34.937+00:00

    Hey @ARAVIND S V ,

    can you please paste the exact error message here, so that we give you a more accurate advice?
    You should actually use another cmddlet as "connect-msolservice" opnly allows the usage of work or school accounts.
    Can you please also verify what role your account is member of?

    Thanks in advance!

    ----------

    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Regards
    Stoyan Chalakov

    0 comments No comments

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.