Microsoft.Automation automationAccounts/jobSchedules 2015-10-31

Bicep resource definition

The automationAccounts/jobSchedules resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Automation/automationAccounts/jobSchedules resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Automation/automationAccounts/jobSchedules@2015-10-31' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    parameters: {
      {customized property}: 'string'
    }
    runbook: {
      name: 'string'
    }
    runOn: 'string'
    schedule: {
      name: 'string'
    }
  }
}

Property values

JobScheduleCreatePropertiesOrJobScheduleProperties

Name Description Value
parameters Gets or sets a list of job properties. JobScheduleCreatePropertiesParameters
runbook Gets or sets the runbook. RunbookAssociationProperty (required)
runOn Gets or sets the hybrid worker group that the scheduled job should run on. string
schedule Gets or sets the schedule. ScheduleAssociationProperty (required)

JobScheduleCreatePropertiesParameters

Name Description Value

Microsoft.Automation/automationAccounts/jobSchedules

Name Description Value
name The resource name string

Constraints:
Min length = 36
Max length = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: automationAccounts
properties Gets or sets the list of job schedule properties. JobScheduleCreatePropertiesOrJobScheduleProperties (required)

RunbookAssociationProperty

Name Description Value
name Gets or sets the name of the runbook. string

ScheduleAssociationProperty

Name Description Value
name Gets or sets the name of the Schedule. string

ARM template resource definition

The automationAccounts/jobSchedules resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Automation/automationAccounts/jobSchedules resource, add the following JSON to your template.

{
  "type": "Microsoft.Automation/automationAccounts/jobSchedules",
  "apiVersion": "2015-10-31",
  "name": "string",
  "properties": {
    "parameters": {
      "{customized property}": "string"
    },
    "runbook": {
      "name": "string"
    },
    "runOn": "string",
    "schedule": {
      "name": "string"
    }
  }
}

Property values

JobScheduleCreatePropertiesOrJobScheduleProperties

Name Description Value
parameters Gets or sets a list of job properties. JobScheduleCreatePropertiesParameters
runbook Gets or sets the runbook. RunbookAssociationProperty (required)
runOn Gets or sets the hybrid worker group that the scheduled job should run on. string
schedule Gets or sets the schedule. ScheduleAssociationProperty (required)

JobScheduleCreatePropertiesParameters

Name Description Value

Microsoft.Automation/automationAccounts/jobSchedules

Name Description Value
apiVersion The api version '2015-10-31'
name The resource name string

Constraints:
Min length = 36
Max length = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (required)
properties Gets or sets the list of job schedule properties. JobScheduleCreatePropertiesOrJobScheduleProperties (required)
type The resource type 'Microsoft.Automation/automationAccounts/jobSchedules'

RunbookAssociationProperty

Name Description Value
name Gets or sets the name of the runbook. string

ScheduleAssociationProperty

Name Description Value
name Gets or sets the name of the Schedule. string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Azure Resource Optimization (ARO) Toolkit

Deploy to Azure
The Azure Resource Optimization Toolkit is a decentralized, native Azure solution using serverless technologies to optimize Azure resources on your subscription. Optimization happens automatically on your subscription once you enable or create your own schedule, including on new resources. This is an Azure Automation account with preconfigured runbooks and schedules you can utilize on your subscription to start saving money.

Terraform (AzAPI provider) resource definition

The automationAccounts/jobSchedules resource type can be deployed with operations that target:

  • Resource groups

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Automation/automationAccounts/jobSchedules resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts/jobSchedules@2015-10-31"
  name = "string"
  body = jsonencode({
    properties = {
      parameters = {
        {customized property} = "string"
      }
      runbook = {
        name = "string"
      }
      runOn = "string"
      schedule = {
        name = "string"
      }
    }
  })
}

Property values

JobScheduleCreatePropertiesOrJobScheduleProperties

Name Description Value
parameters Gets or sets a list of job properties. JobScheduleCreatePropertiesParameters
runbook Gets or sets the runbook. RunbookAssociationProperty (required)
runOn Gets or sets the hybrid worker group that the scheduled job should run on. string
schedule Gets or sets the schedule. ScheduleAssociationProperty (required)

JobScheduleCreatePropertiesParameters

Name Description Value

Microsoft.Automation/automationAccounts/jobSchedules

Name Description Value
name The resource name string

Constraints:
Min length = 36
Max length = 36
Pattern = ^[0-9a-fA-F]{8}-([0-9a-fA-F]{4}-){3}[0-9a-fA-F]{12}$ (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: automationAccounts
properties Gets or sets the list of job schedule properties. JobScheduleCreatePropertiesOrJobScheduleProperties (required)
type The resource type "Microsoft.Automation/automationAccounts/jobSchedules@2015-10-31"

RunbookAssociationProperty

Name Description Value
name Gets or sets the name of the runbook. string

ScheduleAssociationProperty

Name Description Value
name Gets or sets the name of the Schedule. string