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

Restarts an Azure Site Recovery job.

Syntax

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

Description

The Restart-AzureRmRecoveryServicesAsrJob cmdlet restarts an Azure Site Recovery job.

Examples

Example 1

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

Restarts the specified ASR job and returns the updated ASR job object of the ASR job.

Required Parameters

-InputObject

The input object to the cmdlet: The ASR job object corresponding to the ASR job to be restarted

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

Specify the job by name.

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

Optional Parameters

-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