Page Diagnostics for SharePoint
By Anatoly Mironov
While trying to set up a new Home Site, I discovered that there is a tool (browser extension) called Page Diagnostics for SharePoint.
After running this, I tried that command again and it was smart enough to detect the problem the tool discovered.
Also Network Trace is available.
Network trace
Page Diagnostics Tool is defnitely a tool to have in the troubleshooting toolbelt for SharePoint.
Setting up a Home Site
Here is the script:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Sets up a SharePoint Home Site at Skanska | |
$tenant = "takana17" | |
Connect-SPOService https://$tenant-admin.sharepoint.com | |
$baseUrl = "https://$tenant.sharepoint.com" | |
# site swap takes 1-2 minutes. be patient | |
# https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepoint-ps | |
Invoke-SPOSiteSwap -SourceUrl "$baseUrl/sites/futurehomesite" -TargetUrl "$baseUrl" -ArchiveUrl "$baseUrl/sites/oldroot-deleteit" | |
# Home Site. Docs: https://aka.ms/homesites, it make take some time | |
Set-SPOHomeSite -HomeSiteUrl $baseUrl |