Resume-​Azure​Rm​Recovery​Services​Asr​Job

Resumes a suspended Azure Site Recovery job.

Syntax

Resume-AzureRmRecoveryServicesAsrJob
      [-Comment <String>]
      -InputObject <ASRJob>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]
Resume-AzureRmRecoveryServicesAsrJob
      [-Comment <String>]
      -Name <String>
      [-Confirm]
      [-WhatIf]
      [<CommonParameters>]

Description

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

Examples

Example 1

PS C:\> $currentJob = Resume-AzureRmRecoveryServicesAsrJob -Job $Job

Resume the specified job if it is in a waiting or suspended state and return the updated ASR job object corresponding to the ASR job.

Required Parameters

-InputObject

The input object to the cmdlet: The ASR Job object corresponding to the job to be resumed.

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

Specify the ASR job by name.

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

Optional Parameters

-Comment

Comments for the job log.

Type:String
Aliases:Comments
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-WhatIf

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Inputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob

Outputs

Microsoft.Azure.Commands.RecoveryServices.SiteRecovery.ASRJob