Microsoft.Automation automationAccounts/variables

Bicep resource definition

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

resource symbolicname 'Microsoft.Automation/automationAccounts/variables@2024-10-23' = {
  parent: resourceSymbolicName
  name: 'string'
  properties: {
    description: 'string'
    isEncrypted: bool
    value: 'string'
  }
}

Property values

Microsoft.Automation/automationAccounts/variables

Name Description Value
name The resource name string (required)
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
properties Gets or sets the properties of the variable. VariableCreateOrUpdatePropertiesOrVariableProperties (required)

VariableCreateOrUpdatePropertiesOrVariableProperties

Name Description Value
description Gets or sets the description of the variable. string
isEncrypted Gets or sets the encrypted flag of the variable. bool
value Gets or sets the value of the variable. string

Quickstart samples

The following quickstart samples deploy this resource type.

Bicep File Description
ASR Runbooks Deploys Automation Runbooks for ASR Recovery Plans

ARM template resource definition

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

{
  "type": "Microsoft.Automation/automationAccounts/variables",
  "apiVersion": "2024-10-23",
  "name": "string",
  "properties": {
    "description": "string",
    "isEncrypted": "bool",
    "value": "string"
  }
}

Property values

Microsoft.Automation/automationAccounts/variables

Name Description Value
apiVersion The api version '2024-10-23'
name The resource name string (required)
properties Gets or sets the properties of the variable. VariableCreateOrUpdatePropertiesOrVariableProperties (required)
type The resource type 'Microsoft.Automation/automationAccounts/variables'

VariableCreateOrUpdatePropertiesOrVariableProperties

Name Description Value
description Gets or sets the description of the variable. string
isEncrypted Gets or sets the encrypted flag of the variable. bool
value Gets or sets the value of the variable. string

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
ASR Runbooks

Deploy to Azure
Deploys Automation Runbooks for ASR Recovery Plans
Azure Resource Optimization (ARO) Toolkit

Deploy to Azure
The Azure Resource Optimization Toolkit is a decentralized, native Azure solution using serverless technologies to optimize Azure resources on your subscription. Optimization happens automatically on your subscription once you enable or create your own schedule, including on new resources. This is an Azure Automation account with preconfigured runbooks and schedules you can utilize on your subscription to start saving money.

Terraform (AzAPI provider) resource definition

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Automation/automationAccounts/variables@2024-10-23"
  name = "string"
  body = jsonencode({
    properties = {
      description = "string"
      isEncrypted = bool
      value = "string"
    }
  })
}

Property values

Microsoft.Automation/automationAccounts/variables

Name Description Value
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: automationAccounts
properties Gets or sets the properties of the variable. VariableCreateOrUpdatePropertiesOrVariableProperties (required)
type The resource type "Microsoft.Automation/automationAccounts/variables@2024-10-23"

VariableCreateOrUpdatePropertiesOrVariableProperties

Name Description Value
description Gets or sets the description of the variable. string
isEncrypted Gets or sets the encrypted flag of the variable. bool
value Gets or sets the value of the variable. string