Microsoft.Automation automationAccounts/watchers

ARM template resource definition

The automationAccounts/watchers 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/watchers resource, add the following JSON to your template.

{
  "type": "Microsoft.Automation/automationAccounts/watchers",
  "apiVersion": "2023-05-15-preview",
  "name": "string",
  "location": "string",
  "tags": {
    "tagName1": "tagValue1",
    "tagName2": "tagValue2"
  },
  "etag": "string",
  "properties": {
    "description": "string",
    "executionFrequencyInSeconds": "int",
    "scriptName": "string",
    "scriptParameters": {
      "{customized property}": "string"
    },
    "scriptRunOn": "string"
  }
}

Property values

automationAccounts/watchers

Name Description Value
type The resource type 'Microsoft.Automation/automationAccounts/watchers'
apiVersion The resource api version '2023-05-15-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)

Character limit: 1-63

Valid characters:
Alphanumerics, underscores, and hyphens.

Start with letter.
location The geo-location where the resource lives string
tags Resource tags. Dictionary of tag names and values. See Tags in templates
etag Gets or sets the etag of the resource. string
properties Gets or sets the watcher properties. WatcherProperties

WatcherProperties

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

WatcherPropertiesScriptParameters

Name Description Value
{customized property} string