Set-AzureSchedulerHttpJob

Updates a scheduler job that has an HTTP action.

Syntax

Set-AzureSchedulerHttpJob [-ClientCertificatePassword <String>] [-ClientCertificatePfx <Object>]
 [-EndTime <DateTime>] [-ErrorActionHeaders <Hashtable>] [-ErrorActionMethod <String>]
 [-ErrorActionQueueMessageBody <String>] [-ErrorActionRequestBody <String>] [-ErrorActionSASToken <String>]
 [-ErrorActionStorageAccount <String>] [-ErrorActionStorageQueue <String>] [-ErrorActionURI <Uri>]
 [-ExecutionCount <Int32>] [-Frequency <String>] [-Headers <Hashtable>] [-HttpAuthenticationType <String>]
 [-Interval <Int32>] -JobCollectionName <String> -JobName <String> [-JobState <String>] -Location <String>
 [-Method <String>] [-PassThru] [-Profile <AzureSMProfile>] [-RequestBody <String>] [-StartTime <DateTime>]
 [-URI <Uri>] [<CommonParameters>]
Set-AzureSchedulerHttpJob [-ClientCertificatePassword <String>] [-ClientCertificatePfx <Object>]
 [-ErrorActionHeaders <Hashtable>] [-Headers <Hashtable>] -HttpAuthenticationType <String> [-JobState <String>]
 [-PassThru] [-Profile <AzureSMProfile>] [<CommonParameters>]
Set-AzureSchedulerHttpJob [-EndTime <DateTime>] [-ErrorActionHeaders <Hashtable>] [-ExecutionCount <Int32>]
 [-Frequency <String>] [-Headers <Hashtable>] [-Interval <Int32>] [-JobState <String>] [-PassThru]
 [-Profile <AzureSMProfile>] [<CommonParameters>]
Set-AzureSchedulerHttpJob [-ErrorActionHeaders <Hashtable>] [-Headers <Hashtable>] [-JobState <String>]
 [-PassThru] [-Profile <AzureSMProfile>] [-RequestBody <String>] [<CommonParameters>]

Description

powershell_prelim

The Set-AzureSchedulerHttpJob cmdlet updates a scheduler job that has an HTTP action.

Examples

Example 1: Change the state of a job to Disabled

PS C:\>Set-AzureSchedulerHttpJob -Location "North Central US" -JobCollectionName "JobCollection01" -JobName "Job01" -JobState "Disabled"

This command changes the state of the job named Job01 to Disabled. That job is part of the job collection named JobColleciton01 for the specified location.

Example 2: Update the URI of a job

PS C:\>Set-AzureSchedulerHttpJob -Location "North Central US" -JobCollectionName "JobCollection02" -JobName "Job37" -URI http://www.contoso.com

This command updates the URI of the job named Job01 to be http://www.contoso.com.

Parameters

-ClientCertificatePassword
Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ClientCertificatePfx
Type:Object
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-EndTime

Specifies a time, as a DateTime object, for the scheduler to stop initiating jobs. To obtain a DateTime object, use the Get-Date cmdlet. For more information, type Get-Help Get-Date.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ErrorActionHeaders

Specifies headers as a hashtable.

Type:Hashtable
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ErrorActionMethod

Specifies the method for HTTP and HTTPS action types. Valid values are:

- GET

  • PUT
  • POST
  • HEAD
  • DELETE

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

Specifies the body for storage job actions.

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

Specifies the body for PUT and POST job actions.

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

Specifies the Shared Access Signature (SAS) token for the storage queue.

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

Specifies the name of the storage account.

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

Specifies the name of the storage queue.

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

Specifies the URI for the error job action.

Type:Uri
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-ExecutionCount

Specifies the number occurrences of a job that run. By default, a job recurs indefinitely.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Frequency

Specifies the maximum frequency for this scheduler job.

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

Specifies the headers as a hash table.

Type:Hashtable
Required:False
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-HttpAuthenticationType
Type:String
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Interval

Specifies the interval of recurrence at the frequency specified by using the Frequency parameter.

Type:Int32
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-JobCollectionName

Specifies the name of the collection that contains the scheduler job to modify.

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

Specifies the name of scheduler job to modify.

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

Specifies the state for the scheduler job.

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

Specifies the method for HTTP and HTTPS action types. Valid values are:

- GET

  • PUT
  • POST
  • HEAD
  • DELETE

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

Indicates that this cmdlet returns an object representing the item on which it operates. By default, this cmdlet does not generate any output.

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

In-memory profile.

Type:AzureSMProfile
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-RequestBody

Specifies the body for PUT and POST job actions.

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

Specifies a time, as a DateTime object, for the job to start.

Type:DateTime
Required:False
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-URI

Specifies a URI for a job action.

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