New-​Azure​Rm​Scheduler​Service​Bus​Queue​Job

Creates a service bus queue job.

Syntax

New-AzureRmSchedulerServiceBusQueueJob
   [-EndTime <DateTime>]
   [-ErrorActionType <String>]
   [-ExecutionCount <Int32>]
   [-Frequency <String>]
   [-Interval <Int32>]
   -JobCollectionName <String>
   -JobName <String>
   [-JobState <String>]
   -ResourceGroupName <String>
   -ServiceBusMessage <String>
   -ServiceBusNamespace <String>
   -ServiceBusQueueName <String>
   -ServiceBusSasKeyName <String>
   -ServiceBusSasKeyValue <String>
   -ServiceBusTransportType <String>
   [-StartTime <DateTime>]
   [-Confirm]
   [-WhatIf]
   [<CommonParameters>]

Description

The New-AzureRmSchedulerServiceBusQueueJob cmdlet creates a service bus queue job in Azure Scheduler.

This cmdlet supports dynamic parameters based on the ErrorActionType parameter. Dynamic parameters become available based on other parameter values.

To discover the names of dynamic parameters after you specify the other parameters, type a hyphen (-), and then press the Tab key repeatedly to cycle through the available parameters. If you omit a required parameter, the cmdlet prompts you for the value.

Examples

1:

Required Parameters

-JobCollectionName

Specifies the name of the job collection to which the job belongs.

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

Specifies a name for the job.

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

Specifies the resource group to which the job belongs.

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

Specifies a service bus queue message.

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

Specifies a service bus namespace.

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

Specifies a service bus queue name.

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

Specifies a shared access signature key name.

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

Specifies a shared access signature key value.

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

Specifies a service bus transport type. The acceptable values for this parameter are:

  • NetMessaging
  • AMQP
Type:String
Parameter Sets:NetMessaging, AMQP
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False

Optional Parameters

-Confirm

Prompts you for confirmation before running the cmdlet.

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False
-EndTime

Specifies an end time, as a DateTime object, for the job. To obtain a DateTime object, use the Get-Date cmdlet.

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

Specifies an error action setting for the job. The acceptable values for this parameter are:

  • Http
  • Https
  • StorageQueue
  • ServiceBusQueue
  • ServiceBusTopic
Type:String
Parameter Sets:Http, Https, StorageQueue, ServiceBusQueue, ServiceBusTopic
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ExecutionCount

Specifies how many times the job runs. By default, a job recurs indefinitely.

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

Specifies a frequency for the job. The acceptable values for this parameter are:

  • Minute
  • Hour
  • Day
  • Week
  • Month
Type:String
Parameter Sets:Minute, Hour, Day, Week, Month
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
-Interval

Specifies an interval of recurrence for the job.

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

Specifies the state of the job. The acceptable values for this parameter are:

  • Enabled
  • Disabled
Type:String
Parameter Sets:Enabled, Disabled
Position:Named
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-StartTime

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

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

Shows what would happen if the cmdlet runs. The cmdlet is not run.

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:False
Accept pipeline input:False
Accept wildcard characters:False