Fix “Connect-SPOService : Current site is not a tenant administration site.” Error in SharePoint Online Management Shell

Problem: When trying to connect to SharePoint Online using SharePoint Online Management Shell, got an error message: “Connect-SPOService : Current site is not a tenant administration site.”

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

Root Cause and Solution:

The script was trying to connect to SharePoint Online as: “Connect-SPOService -Url https://crescent.sharepoint.com”, But the problem is: It should connect to admin center URL rather than SharePoint Online site URL! That is the URL parameter must be:
https://<yourdomain>-admin.sharepoint.com” instead of “https://<yourdomain>.sharepoint.com

So make sure you are connecting to SharePoint Online Admin Center, instead of SharePoint Online site. The corrected script is: Connect-SPOService -Url https://<yourdomain>-admin.sharepoint.com

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply