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

Stops an Azure Site Recovery job.

Syntax

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

Description

The Stop-AzureRmRecoveryServicesAsrJob cmdlet stops the specified Azure Site Recovery job.

Examples

Example 1

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

Attempts to stop the specified job and returns an updated ASR job object.

Required Parameters

-InputObject

Input Object: Specify the ASR job object corresponding to the ASR job to be stopped

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

Specify the ASR Job to be stopped by the ASR job 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