Edit

Share via


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.

Syntax

AzureLocationsInline

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

AzureLocationsPipebind

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

Description

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.

Examples

EXAMPLE 1

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.

EXAMPLE 2

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.

Parameters

-AzureQueueUri

Applicable: SharePoint Online

An optional fully qualified URL and SAS token representing the Azure Storage Reporting Queue where import operations will list events during import.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AzureLocationsInline
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Credentials

Applicable: 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.

Parameter properties

Type:Microsoft.Online.SharePoint.PowerShell.CredentialCmdletPipeBind
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-EncryptionParameters

Applicable: SharePoint Online

An EncryptionParameters object. See New-SPOMigrationEncryptionParameters for more information.

Parameter properties

Type:Microsoft.Online.SharePoint.Migration.EncryptionParameters
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-FileContainerUri

Applicable: SharePoint Online

A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package content files.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AzureLocationsInline
Position:1
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-MigrationPackageAzureLocations

Applicable: 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.

Parameter properties

Type:Microsoft.Online.SharePoint.Migration.MigrationPackageAzureLocations
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AzureLocationsPipebind
Position:1
Mandatory:True
Value from pipeline:True
Value from pipeline by property name:False
Value from remaining arguments:False

-NoLogFile

Applicable: SharePoint Online

Indicates to not create a log file. The default is to create a new CreateMigrationJob log file within the current directory.

Parameter properties

Type:System.Management.Automation.SwitchParameter
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-PackageContainerUri

Applicable: SharePoint Online

A fully qualified URL and SAS token representing the Azure Blob Storage container that holds the package metadata files.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

AzureLocationsInline
Position:2
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-TargetWebUrl

Applicable: 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.

Parameter properties

Type:System.String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:0
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Inputs

Microsoft.Online.SharePoint.Migration.MigrationPackageAzureLocations

Outputs

System.Object