Export (0) Print
Expand All
Expand Minimize

New-AzureSchedulerHttpJob

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

New-AzureSchedulerHttpJob

Creates a scheduler job that has an HTTP action.

Syntax

Parameter Set: PutPost
New-AzureSchedulerHttpJob [-ErrorActionHeaders <Hashtable> ] [-Headers <Hashtable> ] [-JobState <String> ] [-RequestBody <String> ] [ <CommonParameters>]

Parameter Set: Recurring
New-AzureSchedulerHttpJob [-EndTime <DateTime> ] [-ErrorActionHeaders <Hashtable> ] [-ExecutionCount <Int32> ] [-Frequency <String> ] [-Headers <Hashtable> ] [-Interval <Int32> ] [-JobState <String> ] [ <CommonParameters>]

Parameter Set: Required
New-AzureSchedulerHttpJob -JobCollectionName <String> -JobName <String> -Location <String> -Method <String> -URI <Uri> [-EndTime <DateTime> ] [-ErrorActionHeaders <Hashtable> ] [-ErrorActionMethod <String> ] [-ErrorActionQueueMessageBody <String> ] [-ErrorActionRequestBody <String> ] [-ErrorActionSASToken <String> ] [-ErrorActionStorageAccount <String> ] [-ErrorActionStorageQueue <String> ] [-ErrorActionURI <Uri> ] [-ExecutionCount <Int32> ] [-Frequency <String> ] [-Headers <Hashtable> ] [-Interval <Int32> ] [-JobState <String> ] [-RequestBody <String> ] [-StartTime <DateTime> ] [ <CommonParameters>]




Detailed Description

This topic describes the cmdlet in the 0.8.7 version of the Microsoft Azure PowerShell module. To get the version of the module you're using, in the Azure PowerShell console, type (Get-Module -Name Azure).Version.

The New-AzureSchedulerHttpJob cmdlet creates a scheduler job that has an HTTP action.

Parameters

-EndTime<DateTime>

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.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ErrorActionHeaders<Hashtable>

Specifies headers as a hashtable.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ErrorActionMethod<String>

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

-- GET
-- PUT
-- POST
-- HEAD
-- DELETE


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ErrorActionQueueMessageBody<String>

Specifies the body for storage job actions.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ErrorActionRequestBody<String>

Specifies the body for PUT and POST job actions.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ErrorActionSASToken<String>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ErrorActionStorageAccount<String>

Specifies the name of the storage account.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ErrorActionStorageQueue<String>

Specifies the name of the storage queue.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-ErrorActionURI<Uri>

Specifies the URI for the error job action.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-ExecutionCount<Int32>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Frequency<String>

Specifies the maximum frequency for this scheduler job.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Headers<Hashtable>

Specifies the headers as a hashtable.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Interval<Int32>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-JobCollectionName<String>

Specifies the name of the collection to contain the scheduler job.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-JobName<String>

Specifies the name for the scheduler job.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-JobState<String>

Specifies the state for the scheduler job.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

True (ByPropertyName)

Accept Wildcard Characters?

false

-Location<String>

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


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-Method<String>

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

-- GET
-- PUT
-- POST
-- HEAD
-- DELETE


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-RequestBody<String>

Specifies the body for PUT and POST job actions.


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-StartTime<DateTime>

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


Aliases

none

Required?

false

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

-URI<Uri>

Specifies a URI for a job action.


Aliases

none

Required?

true

Position?

named

Default Value

none

Accept Pipeline Input?

false

Accept Wildcard Characters?

false

<CommonParameters>

This cmdlet supports the common parameters: -Verbose, -Debug, -ErrorAction, -ErrorVariable, -OutBuffer, and -OutVariable. For more information, see  about_CommonParameters (http://go.microsoft.com/fwlink/p/?LinkID=113216).

Inputs

The input type is the type of the objects that you can pipe to the cmdlet.

Outputs

The output type is the type of the objects that the cmdlet emits.

Examples

Example 1: Create an HTTP job

This command creates a scheduler HTTP job in the job collection named JobCollection01. The command specifies a URI and specifies GET as the method.


PS C:\> New-AzureSchedulerHttpJob -JobCollectionName "JobCollection01" -JobName "Job01" -Location "North Central US" -Method "GET" -URI http://www.contoso.com

Example 2: Create an HTTP job for a specific run count

This command creates scheduler http job in the job collection named JobCollection01. The command specifies a URI and specifies GET as the method. This command causes the job to run 20 times.


PS C:\> New-AzureSchedulerHttpJob -JobCollectionName "JobCollection01 -JobName "Job23" -Location "North Central US" -Method "GET" -URI http://www.contoso.com -ExecutionCount 20

Related topics

Show:
© 2014 Microsoft