Aug 24 2020 02:19 AM
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.
Aug 24 2020 03:51 AM
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?
Aug 24 2020 03:52 AM
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.
Aug 24 2020 06:23 AM
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.
Aug 24 2020 06:24 AM
Hi,
I'm not sure about Powershell i'm not a confident programmer and have just used Sharepoint to create pages.
Cheers
Aug 24 2020 07:56 AM
@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.
Aug 24 2020 09:02 AM
@Matti Paukkonen I think we are are standard release. I would be grateful if you could help with the scripting. Thanks.
Aug 25 2020 12:00 AM
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.
Aug 25 2020 02:02 AM
@Andrew Hodges I have Targeted Release tenat set and it still doesn't allow me to replace site? See attached image below.
Aug 26 2020 01:46 AM
@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??
Aug 26 2020 01:50 AM
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
Aug 26 2020 02:02 AM
Hi @dandelly
You need to connect to tenant's SharePoint Admin Url with Connect-SPOService.
Connect-SPOService -Url https://<tenant URL>-admin.sharepoint.com
Aug 26 2020 02:15 AM
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.
Aug 27 2020 02:50 AM
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.
Aug 27 2020 08:29 AM
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
Aug 27 2020 10:11 AM
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
Aug 27 2020 10:01 PM
Aug 28 2020 09:27 AM
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.