Microsoft.Automation automationAccounts/watchers 2019-06-01

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": "2019-06-01",
  "properties": {
    "executionFrequencyInSeconds": "integer",
    "scriptName": "string",
    "scriptParameters": {},
    "scriptRunOn": "string",
    "description": "string"
  "tags": {},
  "location": "string"

Property values

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

Microsoft.Automation/automationAccounts/watchers object


In Bicep, type and apiVersion are specified in the first line of the resource declaration. Use the format <type>@<apiVersion>. Don't set those properties in the resource body.

Name Type Required Value
name string Yes The watcher name.
type enum Yes For JSON -watchers

See Set name and type for child resources.
apiVersion enum Yes For JSON - 2019-06-01
properties object Yes Gets or sets the watcher properties. - WatcherProperties object
tags object No Resource tags.
location string No The geo-location where the resource lives

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.