Microsoft.Automation automationAccounts/schedules template reference

Template format

To create a Microsoft.Automation/automationAccounts/schedules resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Automation/automationAccounts/schedules",
  "apiVersion": "2015-10-31",
  "properties": {
    "description": "string",
    "startTime": "string",
    "expiryTime": "string",
    "interval": {},
    "frequency": "string",
    "timeZone": "string",
    "advancedSchedule": {
      "weekDays": [
        "string"
      ],
      "monthDays": [
        "integer"
      ],
      "monthlyOccurrences": [
        {
          "occurrence": "integer",
          "day": "string"
        }
      ]
    }
  }
}

Property values

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

Microsoft.Automation/automationAccounts/schedules object

Name Type Required Value
name string Yes The schedule name.
type enum Yes schedules
-or-
Microsoft.Automation/automationAccounts/schedules

See Set name and type for child resources.
apiVersion enum Yes 2015-10-31
properties object Yes Gets or sets the list of schedule properties. - ScheduleCreateOrUpdateProperties object

ScheduleCreateOrUpdateProperties object

Name Type Required Value
description string No Gets or sets the description of the schedule.
startTime string Yes Gets or sets the start time of the schedule.
expiryTime string No Gets or sets the end time of the schedule.
interval object No Gets or sets the interval of the schedule.
frequency enum Yes Gets or sets the frequency of the schedule. - OneTime, Day, Hour, Week, Month, Minute
timeZone string No Gets or sets the time zone of the schedule.
advancedSchedule object No Gets or sets the AdvancedSchedule. - AdvancedSchedule object

AdvancedSchedule object

Name Type Required Value
weekDays array No Days of the week that the job should execute on. - string
monthDays array No Days of the month that the job should execute on. Must be between 1 and 31. - integer
monthlyOccurrences array No Occurrences of days within a month. - AdvancedScheduleMonthlyOccurrence object

AdvancedScheduleMonthlyOccurrence object

Name Type Required Value
occurrence integer No Occurrence of the week within the month. Must be between 1 and 5
day enum No Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. - Monday, Tuesday, Wednesday, Thursday, Friday, Saturday, Sunday

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
OMS ASR Solution

Deploy to Azure
Enables the ASR (v2) Solution in OMS
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.
OMS - Azure Resource Usage Solution

Deploy to Azure
Solution brings billing infortmation about Azure Resources into OMS. Cost of resources can be displayed in different currency and locale.
OMS - Azure VM Inventory Solution

Deploy to Azure
Enables Azure VM Inventory Solution in OMS. Solution collects Azure VM inventory along with disks, networking components, NSG rules and extensions into OMS workspace.
OMS Service Bus Solution

Deploy to Azure
Monitors Azure Service Bus instances