Published on

Perform a Site swap from SharePoint Admin center


So when working with Viva Connection you might have created a seperate Home site for development while your old one lives on until you're done. When you are done, you might wanna swap places so the new site get's the root URL. This is how you do it

Admin Center

  1. Visit SharePoint Admin Center
  1. Image
  2. Select Your root Site,
  • Make sure it isn't a hub site.
  • Make Sure there isn't any retention policies in place for those two sites for now
  • Remove the site as a Home Site for now
  1. Add URL for your new site and press Save

  2. This can take a small while as something in the background will run.

  3. When the site swap is done, I recommend that you reindex the site. Some webpart and search can be cause Issues first 24-48 hours


First you need latest SharePoint Module

Update-Module Microsoft.Online.Sharepoint.PowerShell -Force
-SourceURL `
-TargetURL `
-ArchiveURL -Force