Microsoft.Automation automationAccounts/watchers template reference

Template format

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

{
  "name": "string",
  "type": "Microsoft.Automation/automationAccounts/watchers",
  "apiVersion": "2015-10-31",
  "tags": {},
  "location": "string",
  "properties": {
    "executionFrequencyInSeconds": "integer",
    "scriptName": "string",
    "scriptParameters": {},
    "scriptRunOn": "string",
    "description": "string"
  }
}

Property values

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

Microsoft.Automation/automationAccounts/watchers object

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

See Set name and type for child resources.
apiVersion enum Yes 2015-10-31
tags object No Resource tags.
location string No The Azure Region where the resource lives
properties object Yes Gets or sets the watcher properties. - WatcherProperties object

WatcherProperties object

Name Type Required Value
executionFrequencyInSeconds integer No Gets or sets the frequency at which the watcher is invoked.
scriptName string No Gets or sets the name of the script the watcher is attached to, i.e. the name of an existing runbook.
scriptParameters object No Gets or sets the parameters of the script.
scriptRunOn string No Gets or sets the name of the hybrid worker group the watcher will run on.
description string No Gets or sets the description.