I am site collection admin and getting below error
PS C:\Windows\system32> Connect-SPOService -url
xyz-admin.sharepoint.com/.../poc -credential *** Email address is removed for privacy ***
Connect-SPOService : The remote server returned an error: (401) Unauthorized.
At line:1 char:1
+ Connect-SPOService -url
xyz-admin.sharepoint.com/.../p ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], WebException
+ FullyQualifiedErrorId : System.Net.WebException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService
Thanks