current site is not a tenant administration site Connect-SPOService error in SharePoint Online Office 365 Site

Connect-SPOService Current site is not a tenant administration site

Recently while connecting to SharePoint online site from PowerShell, I got an error like below:
Connect-SPOService : Current site is not a tenant administration site.
I was providing the credentials which is a which is my Office 365 tenant administrator account. So there was no issues regarding permission.
Here I run the command like below:
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], ServerEx
   ception
    + FullyQualifiedErrorId : Microsoft.SharePoint.Client.ServerException,Micr
   osoft.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:
Here we need to enter the Sharepoint Online Administration Center site. The admin center site url will be like below:
https://onlysharepoint2013-admin.sharepoint.com/
The 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.

Similar SharePoint 2013 Tutorials


About Bijay Kumar

I am Bijay from Odisha, India. Currently working with a reputed organization in Bangalore. I am Microsoft Office Servers and Services (SharePoint) MVP (4 times). I works in SharePoint 2016/2013/2010, SharePoint Online Office 365 etc. Check out My MVP Profile.

View all posts by Bijay Kumar →

Leave a Reply