New-​Azure​Website​Job

Creates a web job for a website.

Syntax

New-AzureWebsiteJob
   -JobFile <String>
   -JobName <String>
   -JobType <WebJobType>
   [-Name <String>]
   [-Profile <AzureSMProfile>]
   [-Slot <String>]
   [<CommonParameters>]

Description

The New-AzureWebsiteJob cmdlet creates a web job for a website.

Examples

Example 1: Create new web job for a website

PS C:\> New-AzureWebsiteJob -Name MyWebsite -JobName MyWebJob -JobType Continuous -JobFile job.bat

Creates a continuous job to call job.bat on website MyWebsite.

Required Parameters

-JobFile

The web job file.

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

The web job name.

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

The web job type. The acceptable values for this parameter are:

  • Triggered
  • Continuous
Type:WebJobType
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Optional Parameters

-Name

The name of the Azure website.

Type:String
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
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
Accept pipeline input:False
Accept wildcard characters:False
-Slot

The slot name of the Azure website.

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