Connect-SPOService : Current site is not a tenant administration site

I will show you a very simple solution to fix the error “connect-sposervice current site is not a tenant administration site“.

I got this error while trying to connect to SharePoint Online using PowerShell.

Current site is not a tenant administration site

When I was trying the below PowerShell cmdlet to connect to SharePoint Online from SharePoint Online Management Shell, I got the error:

Connect-SPOService -Url https://szg52.sharepoint.com -Credential bijay@szg52.onmicrosoft.com

And you can see the error in the screenshot below:

connect-sposervice current site is not a tenant administration site. error

Solution

The solution to fix the error “current site is not a tenant administration site” is simple. I put the URL wrong.

Here in the Connect-SPOService cmdlets, you need to provide the SharePoint admin center URL. I should put the URL like https://szg52-admin.sharepoint.com

The complete script looks like below:

Connect-SPOService -Url https://szg52-admin.sharepoint.com -Credential bijay@szg52.onmicrosoft.com

This small change will fix the error “Connect-SPOService : Current site is not a tenant administration site”. Do let me know in the comment if it works for you or not.