Stop-​Azure​Automation​Job

Stops an Automation job.

Syntax

Stop-AzureAutomationJob
    -AutomationAccountName <String>
    -Id <Guid>
    [-Profile <AzureSMProfile>]
    [<CommonParameters>]

Description

The Stop-AzureAutomationJob cmdlet stops a Microsoft Azure Automation job. Specify a running automation job.

Examples

Example 1: Stop a job

PS C:\> Stop-AzureAutomationJob -AutomationAccountName "Contoso17" -Id 2989b069-24fe-40b9-b3bd-cb7e5eac4b64

This command stops the job that has the specified ID.

Required Parameters

-AutomationAccountName

Specifies the name of an Automation account.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Id

Specifies the ID of a job.

Type:Guid
Aliases:JobId
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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