Stop-​Azure​Site​Recovery​Job

Stops a Site Recovery job.

Syntax

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

Description

The Stop-AzureSiteRecoveryJob cmdlet stops an Azure Site Recovery job.

Examples

Example 1: Stop all jobs

PS C:\>$Jobs = Get-AzureSiteRecoveryJob 
PS C:\> Stop-AzureSiteRecoveryJob -Job $Jobs

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

The second command stops the jobs specified by $Jobs.

Required Parameters

-Id

Specifies the ID of the job to stop.

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

Specifies the job to stop.

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

Optional Parameters

-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