Microsoft.Automation automationAccounts/watchers 2015-10-31

Bicep 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 Bicep to your template.

resource symbolicname 'Microsoft.Automation/automationAccounts/watchers@2015-10-31' = {
  name: 'string'
  location: 'string'
  tags: {
    tagName1: 'tagValue1'
    tagName2: 'tagValue2'
  }
  parent: resourceSymbolicName
  etag: 'string'
  properties: {
    description: 'string'
    executionFrequencyInSeconds: int
    scriptName: 'string'
    scriptParameters: {
      {customized property}: 'string'
    }
    scriptRunOn: 'string'
  }
}

Property values

automationAccounts/watchers

Name Description Value
name The resource name

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

Character limit: 1-63

Valid characters:
Alphanumerics, underscores, and hyphens.

Start with letter.
location The Azure Region 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.
Symbolic name for resource of type: automationAccounts
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

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": "2015-10-31",
  "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 '2015-10-31'
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 Azure Region 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

Terraform (AzAPI provider) resource definition

The automationAccounts/watchers resource type can be deployed with operations that target:

  • Resource groups

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 Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts/watchers@2015-10-31"
  name = "string"
  location = "string"
  parent_id = "string"
  tags = {
    tagName1 = "tagValue1"
    tagName2 = "tagValue2"
  }
  body = jsonencode({
    properties = {
      description = "string"
      executionFrequencyInSeconds = int
      scriptName = "string"
      scriptParameters = {
        {customized property} = "string"
      }
      scriptRunOn = "string"
    }
    etag = "string"
  })
}

Property values

automationAccounts/watchers

Name Description Value
type The resource type "Microsoft.Automation/automationAccounts/watchers@2015-10-31"
name The resource name string (required)

Character limit: 1-63

Valid characters:
Alphanumerics, underscores, and hyphens.

Start with letter.
location The Azure Region where the resource lives string
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: automationAccounts
tags Resource tags. Dictionary of tag names and values.
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