Fix “Get-SPOSite: The Site ‘https://tenant.sharepoint.com/’ is not properly formed” Error in SharePoint Online

Problem: When trying to connect to SharePoint Online site collection, I got this error message “Get-SPOSite The Site Tenant-URL is not properly formed.”

Get-SPOSite: The Site "https://tenant.sharepoint.com/" is not properly formed

Solution:

The solution is simple! Just remove the trailing “/” from the URL! E.g., In my case, instead of “https://crescent.sharepoint.com/sites/marketing/”, I had to remove the backslash “/ “after marketing.

So the right format of my site collection is: “https://crescent.sharepoint.com/sites/marketing

Salaudeen Rajack

Salaudeen Rajack - Information Technology Expert with Two-decades of hands-on experience, specializing in SharePoint, PowerShell, Microsoft 365, and related products. He has held various positions including SharePoint Architect, Administrator, Developer and consultant, has helped many organizations to implement and optimize SharePoint solutions. Known for his deep technical expertise, He's passionate about sharing the knowledge and insights to help others, through the real-world articles!

One thought on “Fix “Get-SPOSite: The Site ‘https://tenant.sharepoint.com/’ is not properly formed” Error in SharePoint Online

  • I get this problem with using Get-PnPTenantSite.
    I have tried removing the trailing slash however, the problem remains.
    The URL is “https://xxxx.sharepoint.com/b-and-e”

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *