Microsoft.Automation automationAccounts/watchers

The automationAccounts/watchers resource type can be deployed to: Resource groups.

To learn about resource group deployments, see Bicep or ARM template.

Template format

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

resource symbolicname 'Microsoft.Automation/automationAccounts/watchers@2020-01-13-preview' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  parent: parentSymbolicName
  etag: 'string'
  properties: {
    description: 'string'
    executionFrequencyInSeconds: int
    scriptName: 'string'
    scriptParameters: {}
    scriptRunOn: 'string'

Property values


Name Description Value
type The resource type

For Bicep, set this value in the resource declaration.
apiVersion The resource api version

For Bicep, set this value in the resource declaration.
name The resource name

See how to set names and types for child resources in Bicep or JSON ARM templates.
string (required)
location The geo-location where the resource lives string
tags Resource tags. Dictionary of tag names and values. See Tags in templates
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.
etag Gets or sets the etag of the resource. string
properties Definition of the watcher properties 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. object
scriptRunOn Gets or sets the name of the hybrid worker group the watcher will run on. string