Office 365 – Move SharePoint Online classic site to new location

The new Multi Geo preview functions for SharePoint online has been activated. Yeah!!! 🙂

I was able to move some sites from my SharePoint Online EMEA location to the NAM location by using following commands in Powershell.

First of all you have to connect to your source SPO location:

Connect-SPOService -Url https://[your-domain]-admin.sharepoint.com

Then you have to think about the site collection, you want to move. Is it a classic site? Is it a O365 Group or Team-Site? Is it a site which is connected to a PowerBI space?

Let’s begin with the easiest one: Classic site. You only need the URL of your site collection and the destination location. Let’s verify if the movement will work by using this command:

Start-SPOSiteContentMove -SourceSiteUrl https://[your-domain].sharepoint.com/sites/[sitecollection] -DestinationDataLocation [Location] -ValidationOnly

The result with the successful validation state should look like this:

Ok that’s great! So now we can move the site. But wait a second before you delete the „-ValidationOnly“ option and hit enter. Microsoft introduced a new feature and this is what we all waited for a very long time. We can finally change the URL of our site collection! Check out this command:

Start-SPOSiteContentMove -SourceSiteUrl https://[your-domain].sharepoint.com/sites/[sitecollection] -DestinationUrl https://[your-domain]+[Location].sharepoint.com/sites/[NewSiteCollection] -ValidationOnly 
#Example:
Start-SPOSiteContentMove -SourceSiteUrl https://contoso.sharepoint.com/sites/DesignTest -DestinationUrl https://contosonam.sharepoint.com/sites/DesignTemps -ValidationOnly 

The result with the successful validation state should look like this:

Yeah!!!! So let’s move the site collection with included renaming using this command:

Start-SPOSiteContentMove -SourceSiteUrl https://[your-domain].sharepoint.com/sites/[sitecollection] -DestinationUrl https://[your-domain]+[Location].sharepoint.com/sites/[NewSiteCollection]
#Example:
Start-SPOSiteContentMove -SourceSiteUrl https://contoso.sharepoint.com/sites/MovementTest -DestinationUrl https://contosonam.sharepoint.com/sites/MovementTemps 

Now your site collection will be moved:

This will take some time, depending on the content which has to be moved. You can get the status by using this command:

Get-SPOSiteContentMoveState -SourceSiteUrl https://[your-domain].sharepoint.com/sites/[siteCollection]
#Example:
Get-SPOSiteContentMoveState -SourceSiteUrl https://contso.sharepoint.com/sites/MovementTest -verbose

This is all you need to know about the move of a classic site. I will describe the move of a O365 group soon and then I will also create a blog article about the known issue after the move of a site.

Getagged mit: , , ,

Schreibe einen Kommentar

Deine E-Mail-Adresse wird nicht veröffentlicht. Erforderliche Felder sind mit * markiert.

*