Sharepoint Replace Root Site

Copper Contributor

 Hi,

I was wondering if anyone could help. I'm currently repolacing my Classic Site with the Modern Sharepoint and I want to replace my Classic Root Site with my Modern site. However when I go to do this in admin there is no "Replace Site" option.

17 Replies

@dandelly 

 

Are you definitely in the new SharePoint admin centre?

 

The instructions you have been following are probably these:-

 

https://docs.microsoft.com/en-us/sharepoint/modern-root-site

 

Have you tried PowerShell instead?

 

Hi @dandelly,

 

Replace site option is only visible, when root site is chosen on Admin Center's site collections list.
https://docs.microsoft.com/en-us/sharepoint/modern-root-site

 

If you are not seeing it, you can use SharePoint Online Management Shell (PowerShell) and Invoke-SiteSwap cmdlet.

https://docs.microsoft.com/en-us/powershell/module/sharepoint-online/invoke-spositeswap?view=sharepo...

 

@Andrew Hodges 

Hi

I think i'm using the correct admin site - see image below. 

I'm not sure about Powershell i'm not a confident programmer and have just used Sharepoint to create pages.

 

Spoiler
 

@Matti Paukkonen 

Hi,

I'm not sure about Powershell i'm not a confident programmer and have just used Sharepoint to create pages.

Cheers

@dandelly, is your tenant release preference standard release or targeted release. I think admin center feature is available currently in targeted release.

 

Swapping site with PowerShell is simple, if you need help with scripting it just ping me and I will guide you through it. You can even move original site to another location, like a backup.

 

Also review preparation actions from documentation before swapping.

@Matti Paukkonen I think we are are standard release. I would be grateful if you could help with the scripting. Thanks.

@dandelly 

 

I have checked 2 tenants, one being targeted release and one standard and they both have the replace site option. 

 

If you don't have the option then your  particular tenant may not have had it released yet as suggested by other replies. 

@Andrew Hodges  I have Targeted Release tenat set and it still doesn't allow me to replace site? See attached image below.

@dandelly  I have had a go at the Powershell option tou suggested and I got the attached message. I researched how to get a tenant for my home site and tried to change the URL but that option is greyed out! Not sure where to go next??

@dandelly 

 

ConnectSPO uses the Tenant Admin site use this script:-

 

$adminUPN="<your account>"

$orgName="moorallertonprimary"

$userCredential = Get-Credential -UserName $adminUPN -Message "Type the password."

Connect-SPOService -Url https://$orgName-admin.sharepoint.com -Credential $userCredential

Hi @dandelly 

 

You need to connect to tenant's SharePoint Admin Url with Connect-SPOService.

Connect-SPOService -Url https://<tenant URL>-admin.sharepoint.com

 

 

Hi@Matti Paukkonen 

I'm pretty new to this stuff! I don't understand what the below means can you direct me a little. Once I getv the site swapped I can build sites easily! It is just the coding part i'm unsure of.

Hello @dandelly 

 

Did you try this from the GUI already and it did not work. then you might need to go through powershell to do this 

 

If you are using powershell.

 

First you need to connect to your SharePoint service by running this 

Connect-SPOService

url- https://teraberi-admin.sharepoint.com/ (your SharePoint admin center admin URL) 

 

and then run this

 

Invoke-SPOSiteSwap -SourceUrl https://contoso.sharepoint.com/sites/CommunicationSite -TargetUrl https://contoso.sharepoint.com -ArchiveUrl https://contoso.sharepoint.com/sites/Archive

 

 

 

 

what this does is this

 

Archives the existing site at https://contoso.sharepoint.com to https://contoso.sharepoint.com/sites/Archive and moves https://contoso.sharepoint.com/sites/CommunicationSite to https://contoso.sharepoint.com. A site redirect will be created at https://contoso.sharepoint.com/sites/CommunicationSite that will redirect any requests to https://contoso.sharepoint.com.

 

 

hi @Matti Paukkonen  not sure my email got through to you regarding the Teams meeting. Can we arrange a time to do this as it would really help!

 

Cheers

Hi @Cissong 

Thanks for the advice. I think i managed to run the code you sent, however i came up against an error and i'm not sure how to solve it? See attached image.

 

Cheers

@dandelly 

 

You seem to have en extra space on your Archive URL, right after https://

hi@Matti Paukkonen and everyone that helped.

Thanks I now have a larger set of IT skills and the start of my School's Sharepoint site! Thanks again.