Get-SPOMigrationJobStatus

Note: This cmdlet has been deprecated. To migrate to SharePoint and Microsoft 365 using PowerShell, see Migrate to SharePoint using PowerShell.

Use this cmdlet to monitor the status of a submitted SharePoint Online migration job.

Syntax

Get-SPOMigrationJobStatus
   -Credentials <CredentialCmdletPipeBind>
   [-JobId <Guid>]
   [-NoLogFile]
   -TargetWebUrl <String>
   [<CommonParameters>]

Description

This cmdlet will check the status of a migration job.

Examples

-----------------------EXAMPLE 1-----------------------------

$targetWebUrl = "https://contoso.sharepoint.com/sites/migrationtest"
$credentials = Get-Credential
Get-SPOMigrationJobStatus -TargetWebUrl $targetWebUrl -Credentials $credentials -JobId "779c4b3b-ec24-4705-bb58-c38f4329418c"

Get the status of your SPO Migration Job. You can obtain the Job id when submit package data to create new SPO migration job via the Invoke-SPOMigrationEncryptUploadSubmit cmdlet

Parameters

-Credentials

The 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

-JobId

(optional) The ID of a migration job that exists on the target site collection.

Type:Guid
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-NoLogFile

(optional) Indicates to not create a log file. The default is to create a new DeleteMigrationJob 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

-TargetWebUrl

The fully qualified target web URL where the package will be imported. This must include the same TargetWebUrl that was used during ConvertTo-SPOMigrationTargetedPackage.

Type:String
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online