Submit-SPOMigrationJob
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.
Submit-SPOMigrationJob
[-TargetWebUrl] <String>
[-FileContainerUri] <String>
[-PackageContainerUri] <String>
[-AzureQueueUri <String>]
-Credentials <CredentialCmdletPipeBind>
[-EncryptionParameters <EncryptionParameters>]
[-NoLogFile]
[<CommonParameters>]
Submit-SPOMigrationJob
[-TargetWebUrl] <String>
[-MigrationPackageAzureLocations] <MigrationPackageAzureLocations>
-Credentials <CredentialCmdletPipeBind>
[-EncryptionParameters <EncryptionParameters>]
[-NoLogFile]
[<CommonParameters>]
This cmdlet contains more than one parameter set. You may only use parameters from one parameter set and you may not combine parameters from different parameter sets. For more information about how to use parameter sets, see Cmdlet Parameter Sets.
This cmdlet returns a GUID value which represents the MigrationJobId, or returns an empty GUID if the job was not successfully created.
Submit-SPOMigrationJob -TargetUrl https://contoso.sharepoint.com/sites/TargetSite/TargetWeb -FileContainerUri "https://migrationstore.blob.core.windows.net/migration-files?sv=2014-02-14&sr=c&sig=THTTJoeGHysxRLgv22j473XYS2blH1YAVIdsfWrPhq8=&se=2015-04-06T05:09:36Z&sp=rl" -PackageContainerUri "https://migrationstore.blob.core.windows.net/migration-package?sv=2014-02-14&sr=c&sig=2PCBJtiXsVWiK5GrY7jBEdyEAwtunQNJLH8uo6I0+Ew=&se=2015-04-06T05:09:37Z&sp=rwl"
This example creates a new migration job in the target site collection for the web at the URL 'https://contoso.sharepoint.com/sites/TargetSite/TargetWeb'. The migration job includes information about the file and package metadata Azure Storage containers that are passed into the command.
Submit-SPOMigrationJob -TargetUrl https://contoso.sharepoint.com/sites/TargetSite/TargetWeb -MigrationPackageAzureLocations $azurelocations
This example creates a new migration job in the target site collection for the web at the URL 'https://contoso.sharepoint.com/sites/TargetSite/TargetWeb'. The migration job includes information about the file and package metadata Azure Storage containers that are passed into the command.
An optional fully qualified URL and SAS token representing the Azure Storage Reporting Queue where import operations will list events during import.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
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 set, the current tenant admin credentials from the session's previous call to Connect-SPOService
will be used to connect to the site collection.
Type: | CredentialCmdletPipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
An EncryptionParameters object. See New-SPOMigrationEncryptionParameters for more information.
Type: | EncryptionParameters |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package content files.
Type: | String |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
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 during successful processing of the Set-SPOMigrationPackageAzureSource
cmdlet.
Type: | MigrationPackageAzureLocations |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
Indicates to not create a log file. The default is to create a new CreateMigrationJob log file within the current directory.
Type: | SwitchParameter |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package metadata files.
Type: | String |
Position: | 2 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
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
.
Type: | String |
Position: | 0 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
Microsoft.Online.SharePoint.Migration.MigrationPackageAzureLocations
System.Object