Resume-​Azure​Site​Recovery​Job

Resumes a suspended Site Recovery job.

Syntax

Resume-AzureSiteRecoveryJob
      [-Comments <String>]
      -Id <String>
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]
Resume-AzureSiteRecoveryJob
      [-Comments <String>]
      -Job <ASRJob>
      [-Profile <AzureSMProfile>]
      [<CommonParameters>]

Description

The Resume-AzureSiteRecoveryJob cmdlet resumes a suspended Azure Site Recovery job.

Examples

Example 1: Resume all jobs

PS C:\> $Jobs = Get-AzureSiteRecoveryJob  
PS C:\> Resume-AzureSiteRecoveryJob -Job $Jobs
ID               : d16397fb-cdf1-4972-b677-c333f3c557b4
ClientRequestId  : 32ace403-0916-4967-83a1-529176bd6e88-2014-49-06 15:49:24Z-P
State            : Suspended
StateDescription : WaitingForManualAction
StartTime        : 10/6/2014 10:19:28 AM
EndTime          : 10/6/2014 10:19:31 AM
AllowedActions   : {Cancel, RestartTestFailoverCleanup}
Name             : Test failover
Tasks            : {Recovery plan preflight checks, Create test environment, All groups failover: Pre steps (1), 
                   Recovery plan failover...} 
Errors           : {}

The first command gets all the Azure Site Recovery jobs for the current Site Recovery vault by using the Get-AzureSiteRecoveryJob cmdlet, and then stores the results in the $Jobs variable.

The second command resumes the job specified by $Jobs.

Required Parameters

-Id

Specifies the ID of a job to resume.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Job

Specifies the job to resume.

Type:ASRJob
Position:Named
Default value:None
Accept pipeline input:True (ByValue)
Accept wildcard characters:False

Optional Parameters

-Comments

Specifies the comments for the job log.

Type:String
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Profile

Specifies the Azure profile from which this cmdlet reads. If you do not specify a profile, this cmdlet reads from the local default profile.

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