Skip to content

Latest commit

 

History

History
216 lines (155 loc) · 6.91 KB

File metadata and controls

216 lines (155 loc) · 6.91 KB
external help file Module Name online version applicable title schema author ms.author ms.reviewer
sharepointonline.xml
Microsoft.Online.SharePoint.PowerShell
SharePoint Online
Submit-SPOMigrationJob
2.0.0
trent-green
trgreen

Submit-SPOMigrationJob

SYNOPSIS

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>
 [-AzureQueueUri <String>] -Credentials <CredentialCmdletPipeBind>
 [-EncryptionParameters <EncryptionParameters>] [-NoLogFile] [<CommonParameters>]

AzureLocationsPipebind

Submit-SPOMigrationJob [-TargetWebUrl] <String>
 [-MigrationPackageAzureLocations] <MigrationPackageAzureLocations> -Credentials <CredentialCmdletPipeBind>
 [-EncryptionParameters <EncryptionParameters>] [-NoLogFile] [<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

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

Type: String
Parameter Sets: AzureLocationsInline
Aliases:
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Credentials

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
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: True
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-EncryptionParameters

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

Type: EncryptionParameters
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-FileContainerUri

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

Type: String
Parameter Sets: AzureLocationsInline
Aliases:
Applicable: SharePoint Online

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-MigrationPackageAzureLocations

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
Parameter Sets: AzureLocationsPipebind
Aliases:
Applicable: SharePoint Online

Required: True
Position: 1
Default value: None
Accept pipeline input: True (ByValue)
Accept wildcard characters: False

-NoLogFile

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

Type: SwitchParameter
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: False
Position: Named
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-PackageContainerUri

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

Type: String
Parameter Sets: AzureLocationsInline
Aliases:
Applicable: SharePoint Online

Required: True
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-TargetWebUrl

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
Parameter Sets: (All)
Aliases:
Applicable: SharePoint Online

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

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

INPUTS

Microsoft.Online.SharePoint.Migration.MigrationPackageAzureLocations

OUTPUTS

System.Object

NOTES

RELATED LINKS