Get-AzureSchedulerJobHistory

Gets history for a scheduler job.

Syntax

Get-AzureSchedulerJobHistory [-First <UInt64>] [-IncludeTotalCount] -JobCollectionName <String>
 -JobName <String> [-JobStatus <String>] -Location <String> [-Profile <AzureSMProfile>] [-Skip <UInt64>]
 [<CommonParameters>]

Description

powershell_prelim

The Get-AzureSchedulerJobHistory cmdlet gets the history for a scheduler job.

Examples

Example 1: Get history for a job by using its name

PS C:\>Get-AzureSchedulerJobHistory -Location "North Central US" -JobCollectionName "JobCollection01" -JobName "Job01"
This command gets the history of the job named Job01. That job belongs to the job collection named JobCollection01 in the specified location.

Example 2: Get history for a failed job by using its name

PS C:\>Get-AzureSchedulerJobHistory -Location "North Central US" -JobCollectionName "JobCollection01" -JobName "Job12" -JobStatus "Failed"
This command gets the history of the job named Job12 that has a status of Failed. That job belongs to the job collection named JobCollection01 in the specified location.

Parameters

-First

psdx_firstdesc

Type:UInt64
Position:Named
Default value:False
Accept pipeline input:False

-IncludeTotalCount

psdx_includetotalcountdesc

Type:SwitchParameter
Position:Named
Default value:False
Accept pipeline input:False

-JobCollectionName

Specifies the name of a scheduler job collection.
This cmdlet gets the history for a job that belongs to the collection that this parameter specifies.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-JobName

Specifies the name of a scheduler job for which to get the history.

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-JobStatus

Specifies the status of scheduler job for which to get the history.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-Location

Specifies the name of the location that hosts the cloud service.
Valid values are:

- Anywhere Asia
- Anywhere Europe
- Anywhere US
- East Asia
- East US
- North Central US
- North Europe
- South Central US
- Southeast Asia
- West Europe
- West US

Type:String
Required:True
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)

-Profile

In-memory profile.

Type:AzureSMProfile
Position:Named
Default value:None
Accept pipeline input:False

-Skip

psdx_skipdesc

Type:UInt64
Position:Named
Default value:False
Accept pipeline input:False