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

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 are a which is my Office 365 tenant administrator account. So there were 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:

current site is not a tenant administration site
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

Also, you can read some SharePoint PowerShell articles:
Delete and Restore Site Collection using PowerShell in SharePoint Online

How to rename SharePoint 2013 group using the browser and PowerShell?

Extract term stores in SharePoint 2013 using PowerShell


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 →