Get-AzureWebsiteJobHistory

Gets a web job history.

Note

The cmdlets referenced in this documentation are for managing legacy Azure resources that use Service Management APIs. See the Az PowerShell module for cmdlets to manage Azure Resource Manager resources.

Syntax

Get-AzureWebsiteJobHistory
   -JobName <String>
   [-Name <String>]
   [-Slot <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureWebsiteJobHistory
   -JobName <String>
   -RunId <String>
   [-Name <String>]
   [-Slot <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]
Get-AzureWebsiteJobHistory
   -JobName <String>
   [-Latest]
   [-Name <String>]
   [-Slot <String>]
   [-Profile <AzureSMProfile>]
   [<CommonParameters>]

Description

Gets a web job history.

Examples

Example 1: Get complete history for a web job

PS C:\> Get-AzureWebsiteJobHistory -Name MyWebsite -JobName MyWebJob

Gets complete history for MyWebJob.

Example 2: Get latest run for a web job

PS C:\> Get-AzureWebsiteJobHistory -Name MyWebsite -JobName MyWebJob -Latest

Gets latest run info for MyWebJob.

Example 3: Get specific run for a web job

PS C:\> Get-AzureWebsiteJobHistory -Name MyWebsite -JobName MyWebJob -RunId 10

Gets all info about run with id 10 for MyWebJob.

Parameters

-JobName

The web job name.

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

-Latest

If specified, return the latest run history.

Type:SwitchParameter
Position:Named
Default value:None
Required:True
Accept pipeline input:False
Accept wildcard characters:False

-Name

The name of the Azure website.

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

-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
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-RunId

Specifies the ID of the run history you want to see.

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

-Slot

The slot name of the Azure website.

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