I was trying to authenticate with Azure AD using this command:
$AzureADCred = Get-Credential -Message "Cred to connect to AD"
Connect-AzureAD -Credential $AzureADCred
But this will returns only my Account, subscription name, TenantID and Account type. And it shows this error:
Get-AzureADDomain : Error occurred while executing GetDomains
Message: User was not found
Can anyone help me with this?