[Solved] Connect-SPOService : Current site is not a tenant administration site error in SharePoint Online Office 365 Site

Connect-SPOService Current site is not a tenant administration site

Recently we were trying to connect to SharePoint online site from SharePoint online management shell, but I got an error which says: Connect-SPOService: Current site is not a tenant administration site.

We were providing the credentials of my Office 365 account but still, It was giving the error. And the Office 365 account which we were using is an Office 365 tenant administrator account. So there were no issues regarding permission.

Below is the SharePoint online management shell command:

Connect-SPOService -Url https://onlysharepoint2013.sharepoint.com/ -credential bijay@onlysharepoint2013.onmicrosoft.com

Then I got the below error.
Connect-SPOService : Current site is not a tenant administration site.
At line:1 char:1
+ Connect-SPOService -Url
https://onlysharepoint2013.sharepoint.com/sites/SPTraini …
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Connect-SPOService], ServerException
+ FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Microsoft.Online.SharePoint.PowerShell.ConnectSPOService

The error looks like below:



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

Solution:

To connect to SharePoint Online site using PowerShell, we need to provide the Sharepoint Online Administration Center site. The SharePoint online admin center site URL will be like below:

https://<your tenant id>-admin.sharepoint.com/

Example:

https://onlysharepoint2013-admin.sharepoint.com/

Whenever you will sign up for an Office 365 trial, the Office 365 SharePoint admin site will be created automatically. So the PowerShell command will be like below:

Connect-SPOService -Url https://onlysharepoint2013-admin.sharepoint.com/ -credential bijay@onlysharepoint2013.onmicrosoft.com


Now when you will run the above command the error will not come. You will not receive any error related to Connect-SPOService Current site is not a tenant administration site.

Hope this will be helpful.


You May Also like the Following SharePoint Online Tutorials:

About Bijay Kumar

I am Bijay from Odisha, India. Currently working in my own venture TSInfo Technologies in Bangalore, India. I am Microsoft Office Servers and Services (SharePoint) MVP (5 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.. I also run popular SharePoint web site SharePointSky.com

View all posts by Bijay Kumar →