Microsoft.Scheduler jobCollections template reference

Template format

To create a Microsoft.Scheduler/jobCollections resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Scheduler/jobCollections",
  "apiVersion": "2016-01-01",
  "location": "string",
  "tags": {},
  "properties": {
    "sku": {
      "name": "string"
    },
    "state": "string",
    "quota": {
      "maxJobCount": "integer",
      "maxJobOccurrence": "integer",
      "maxRecurrence": {
        "frequency": "string",
        "interval": "integer"
      }
    }
  },
  "resources": []
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Scheduler/jobCollections object

Name Type Required Value
name string Yes The job collection name.
type enum Yes Microsoft.Scheduler/jobCollections
apiVersion enum Yes 2016-01-01
location string No Gets or sets the storage account location.
tags object No Gets or sets the tags.
properties object Yes Gets or sets the job collection properties. - JobCollectionProperties object
resources array No jobs

JobCollectionProperties object

Name Type Required Value
sku object No Gets or sets the SKU. - Sku object
state enum No Gets or sets the state. - Enabled, Disabled, Suspended, Deleted
quota object No Gets or sets the job collection quota. - JobCollectionQuota object

Sku object

Name Type Required Value
name enum No Gets or set the SKU. - Standard, Free, Premium

JobCollectionQuota object

Name Type Required Value
maxJobCount integer No Gets or set the maximum job count.
maxJobOccurrence integer No Gets or sets the maximum job occurrence.
maxRecurrence object No Gets or set the maximum recurrence. - JobMaxRecurrence object

JobMaxRecurrence object

Name Type Required Value
frequency enum No Gets or sets the frequency of recurrence (second, minute, hour, day, week, month). - Minute, Hour, Day, Week, Month
interval integer No Gets or sets the interval between retries.

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create a Service Bus Queue and Azure Scheduler Job

Deploy to Azure
An Service Bus namespace, queue, and write-only SAS policy, and an Azure Scheduler job collection and job that will post a message into the Service Bus queue at a regular interval. Template originally authored by John Downs.
Web App with a Scheduler Job

Deploy to Azure
This template deploys an App Service Plan, creates a Web App in the App Service Plan , creates a scheduler job collection and creates a job inside it. The job is scheduled to run on Weekdays Monday to Friday everyday twice.