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.comAnd you can see the error in the screenshot below:

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.comThis small change will fix the error “Connect-SPOService: Current site is not a tenant administration site.” Please let me know in the comments if it works for you.
You may also like:
Bijay Kumar is an esteemed author and the mind behind PowerShellFAQs.com, where he shares his extensive knowledge and expertise in PowerShell, with a particular focus on SharePoint projects. Recognized for his contributions to the tech community, Bijay has been honored with the prestigious Microsoft MVP award. With over 15 years of experience in the software industry, he has a rich professional background, having worked with industry giants such as HP and TCS. His insights and guidance have made him a respected figure in the world of software development and administration. Read more.