Commands › SharePoint Online

Submit-SPOMigrationJob

SharePoint Online Microsoft.Online.SharePoint.PowerShell Submit-*

**Note**: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using PowerShell. Cmdlet to submit a new migration job referenced to a previously uploaded package in Azure Blob storage into to a site collection.

Quick start script

# Submit-SPOMigrationJob — quick start (serv365.ai)
# 1. Connect (app-only shown; interactive: omit the certificate parameters)
Connect-SPOService -Url https://$org-admin.sharepoint.com

# 2. Run and inspect
Submit-SPOMigrationJob -Credentials <CredentialCmdletPipeBind> -FileContainerUri <String> -MigrationPackageAzureLocations <MigrationPackageAzureLocations> | Format-List

# 3. Export for evidence / drift tracking
Submit-SPOMigrationJob | Export-Clixml .\SPOMigrationJob-$(Get-Date -Format yyyyMMdd).xml

Syntax — 2 parameter sets

AzureLocationsInline

Submit-SPOMigrationJob [-TargetWebUrl] <String> [-FileContainerUri] <String> [-PackageContainerUri] <String>
 [-AzureQueueUri <String>] -Credentials <CredentialCmdletPipeBind> [-NoLogFile]
 [-EncryptionParameters <EncryptionParameters>] [<CommonParameters>]

AzureLocationsPipebind

Submit-SPOMigrationJob [-TargetWebUrl] <String>
 [-MigrationPackageAzureLocations] <MigrationPackageAzureLocations> -Credentials <CredentialCmdletPipeBind>
 [-NoLogFile] [-EncryptionParameters <EncryptionParameters>] [<CommonParameters>]

Parameters (8)

ParameterTypeRequiredWhat it controls
-AzureQueueUri String An optional fully qualified URL and SAS token representing the Azure Storage Reporting Queue where import operations will list events during import.
-Credentials CredentialCmdletPipeBind yes Optional credentials of a site collection administrator to use to connect to the site collection. The credentials should supply the username in UPN format (e.g. user@company.onmicrosoft.com). If this property is not...
-EncryptionParameters EncryptionParameters An EncryptionParameters object. See [New-SPOMigrationEncryptionParameters](/powershell/module/microsoft.online.sharepoint.powershell/new-spomigrationencryptionparameters) for more information.
-FileContainerUri String yes A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package content files.
-MigrationPackageAzureLocations MigrationPackageAzureLocations yes A set of fully qualified URLs and SAS tokens representing the Azure Blob Storage containers that hold the package content and metadata files and an optional Azure Storage Reporting Queue. This object is returned...
-NoLogFile SwitchParameter Indicates to not create a log file. The default is to create a new CreateMigrationJob log file within the current directory.
-PackageContainerUri String yes A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package metadata files.
-TargetWebUrl String yes The fully qualified target web URL where the package will be imported into. This must include the same TargetWebURL that was used during `ConvertTo-SPOMigrationTargetedPackage`.

Reference facts derived from Microsoft documentation, © Microsoft, licensed CC BY 4.0; restructured with original guidance by serv365.ai.