After building the strategy and planning for it, next step is Data Migration from SharePoint 2013 to Office 365. We are going to look into native import / data migration service provided in Office 365, you need to be an Office 365 Administrator or at least have someone to help with initial set up.
Before we start actual migration we need to do some set up. Login to Office 365 and go to menu Users –> Migration.
Once there scroll to see Onboarding and migration guidance, click on SharePoint and new window will open.
This will guide to Onboard you and create migration jobs, I am just capturing relevant steps here
Step 1 is just some text about SharePoint online
Step 2 is very important as you need to define what kind of deployment you will have, in our case we will select on premise to cloud.
Step 3 explains PowerShell option we have selected On-premise to cloud migration
Step 4 is to prepare for PowerShell, first it download and install SharePoint Online Management Shell, download it from here SharePoint Online Management Shell.
Second is to create Azure Storage account if you don’t have already one.
Go to https://portal.azure.com and create a storage account
Also get your location and details
Step 5 is creation of Content package, we need to use classic Export Web command in SharePoint onpremise server to create an export package
Export-SPWeb [-Identity] -Path [-ItemUrl ] [-NoFileCompression ]
Step 6 is coversion of package so that it can be imported
ConvertTo-SPOMigrationTargetedPackage -SourceFilesPath $sourceFiles -SourcePackagePath $sourcePackage -OutputPackagePath $targetPackage -TargetWebUrl $targetWeb -TargetDocumentLibraryPath $targetDocLib -Credentials $creds
To read more about ConvetTo-SPOMigrationTargetedPackage you can read here Click here
Step 7 is creating Azure Containers and uploading content package
$al = Set-SPOMigrationPackageAzureSource -SourceFilesPath $sourceFiles -SourcePackagePath $targetPackage -AzureQueueName $azureQueueName -AccountName $azureAccountName -AccountKey $azureAccountKey
$al|$al|fl
Step 8 is submitting a migration job, sample code is here
Submit-SPOMigrationJob -TargetWebUrl $targetWeb -MigrationPackageAzureLocations $al -Credentials $creds
Note that some parameters variables were created in earlier steps and needs to be used here
Step 9 is to check Migration Job Status which can be done Azure account storage queue
Sample source code
# Example file share packaging, conversion, upload and job submission script
# Queue is only container specified as new containers are automatically generated
# All container URIs get populated into $al variable output from Set-SPOMigrationPackageAzureSource cmdlet
$creds = (Get-Credential admin@contoso.com)
$sourceFiles = ‘\\fileshare\users\charles’
$sourcePackage = ‘C:\migration\CharlesDocumentsPackage_source’
$targetPackage = ‘C:\migration\CharlesDocumentsPackage_target’
$targetWeb = ‘https://contoso-my.sharepoint.com/personal/charles_contoso_com’
$targetDocLib = ‘Documents’
$azureAccountName = ‘contosomigration’
$azureAccountKey = ‘Insert Azure Account Key string Here’
$azureQueueName = ‘migrationqueue’
# Create new package from file share without security (faster)
New-SPOMigrationPackage -SourceFilesPath $sourceFiles -OutputPackagePath $sourcePackage
# Convert package to a targeted one by looking up data in target site collection
ConvertTo-SPOMigrationTargetedPackage -SourceFilesPath $sourceFiles -SourcePackagePath $sourcePackage -OutputPackagePath $targetPackage -TargetWebUrl $targetWeb -TargetDocumentLibraryPath $targetDocLib -Credentials $creds
# Create azure containers and upload package into them, finally snapshotting all files
$al = Set-SPOMigrationPackageAzureSource -SourceFilesPath $sourceFiles -SourcePackagePath $targetPackage -AzureQueueName $azureQueueName -AccountName $azureAccountName -AccountKey $azureAccountKey
# This displays the return Azure location
$al|$al|Format-List
# Submit package data to site collection to create new migration job
Submit-SPOMigrationJob -TargetWebUrl $targetWeb -MigrationPackageAzureLocations $al -Credentials $creds
So this completes all steps for data migration. Next we will look into Hybrid scenarios which will come in next post
To check earlier two posts click below
SharePoint 2013 migration to Office 365 step by step – Planning #SharePoint #Office365
SharePoint 2013 migration to Office 365 step by step – Strategy #SharePoint #Office365