Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The automationAccounts/connections resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands
For a list of changed properties in each API version, see change log.
Usage Examples
Bicep Samples
A basic example of deploying Automation Connection.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
@description('The Application ID of the Azure service principal for the automation account connection')
param servicePrincipalApplicationId string
resource automationAccount 'Microsoft.Automation/automationAccounts@2021-06-22' = {
name: resourceName
location: location
properties: {
encryption: {
keySource: 'Microsoft.Automation'
}
publicNetworkAccess: true
sku: {
name: 'Basic'
}
}
}
resource connection 'Microsoft.Automation/automationAccounts/connections@2020-01-13-preview' = {
name: resourceName
parent: automationAccount
properties: {
connectionType: {
name: 'AzureServicePrincipal'
}
description: ''
fieldDefinitionValues: {
ApplicationId: servicePrincipalApplicationId
CertificateThumbprint: '''AEB97B81A68E8988850972916A8B8B6CD8F39813
'''
SubscriptionId: subscription().subscriptionId
TenantId: tenant().tenantId
}
}
}
Resource format
To create a Microsoft.Automation/automationAccounts/connections resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Automation/automationAccounts/connections@2024-10-23' = {
parent: resourceSymbolicName
name: 'string'
properties: {
connectionType: {
name: 'string'
}
description: 'string'
fieldDefinitionValues: {
{customized property}: 'string'
}
}
}
Property Values
Microsoft.Automation/automationAccounts/connections
| 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 connection. | ConnectionCreateOrUpdatePropertiesOrConnectionProperties (required) |
ConnectionCreateOrUpdatePropertiesFieldDefinitionValues
| Name | Description | Value |
|---|
ConnectionCreateOrUpdatePropertiesOrConnectionProperties
| Name | Description | Value |
|---|---|---|
| connectionType | Gets or sets the connectionType of the connection. | ConnectionTypeAssociationProperty (required) |
| description | Gets or sets the description of the connection. | string |
| fieldDefinitionValues | Gets or sets the field definition properties of the connection. | ConnectionCreateOrUpdatePropertiesFieldDefinitionValues |
ConnectionTypeAssociationProperty
| Name | Description | Value |
|---|---|---|
| name | Gets or sets the name of the connection type. | string |
ARM template resource definition
The automationAccounts/connections resource type can be deployed with operations that target:
- Resource groups - See resource group deployment commands For a list of changed properties in each API version, see change log.
Usage Examples
Resource format
To create a Microsoft.Automation/automationAccounts/connections resource, add the following JSON to your template.
{
"type": "Microsoft.Automation/automationAccounts/connections",
"apiVersion": "2024-10-23",
"name": "string",
"properties": {
"connectionType": {
"name": "string"
},
"description": "string",
"fieldDefinitionValues": {
"{customized property}": "string"
}
}
}
Property Values
Microsoft.Automation/automationAccounts/connections
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2024-10-23' |
| name | The resource name | string (required) |
| properties | Gets or sets the properties of the connection. | ConnectionCreateOrUpdatePropertiesOrConnectionProperties (required) |
| type | The resource type | 'Microsoft.Automation/automationAccounts/connections' |
ConnectionCreateOrUpdatePropertiesFieldDefinitionValues
| Name | Description | Value |
|---|
ConnectionCreateOrUpdatePropertiesOrConnectionProperties
| Name | Description | Value |
|---|---|---|
| connectionType | Gets or sets the connectionType of the connection. | ConnectionTypeAssociationProperty (required) |
| description | Gets or sets the description of the connection. | string |
| fieldDefinitionValues | Gets or sets the field definition properties of the connection. | ConnectionCreateOrUpdatePropertiesFieldDefinitionValues |
ConnectionTypeAssociationProperty
| Name | Description | Value |
|---|---|---|
| name | Gets or sets the name of the connection type. | string |
Terraform (AzAPI provider) resource definition
The automationAccounts/connections resource type can be deployed with operations that target:
- Resource groups For a list of changed properties in each API version, see change log.
Usage Examples
Terraform Samples
A basic example of deploying Automation Connection.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
azurerm = {
source = "hashicorp/azurerm"
}
}
}
provider "azurerm" {
features {
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
variable "service_principal_application_id" {
type = string
description = "The Application ID of the Azure service principal for the automation account connection"
sensitive = false
}
data "azurerm_client_config" "current" {
}
resource "azapi_resource" "resourceGroup" {
type = "Microsoft.Resources/resourceGroups@2020-06-01"
name = var.resource_name
location = var.location
}
resource "azapi_resource" "automationAccount" {
type = "Microsoft.Automation/automationAccounts@2021-06-22"
parent_id = azapi_resource.resourceGroup.id
name = var.resource_name
location = var.location
body = {
properties = {
encryption = {
keySource = "Microsoft.Automation"
}
publicNetworkAccess = true
sku = {
name = "Basic"
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
resource "azapi_resource" "connection" {
type = "Microsoft.Automation/automationAccounts/connections@2020-01-13-preview"
parent_id = azapi_resource.automationAccount.id
name = var.resource_name
body = {
properties = {
connectionType = {
name = "AzureServicePrincipal"
}
description = ""
fieldDefinitionValues = {
ApplicationId = var.service_principal_application_id
CertificateThumbprint = "AEB97B81A68E8988850972916A8B8B6CD8F39813\n"
SubscriptionId = data.azurerm_client_config.current.subscription_id
TenantId = data.azurerm_client_config.current.tenant_id
}
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Resource format
To create a Microsoft.Automation/automationAccounts/connections resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Automation/automationAccounts/connections@2024-10-23"
name = "string"
parent_id = "string"
body = {
properties = {
connectionType = {
name = "string"
}
description = "string"
fieldDefinitionValues = {
{customized property} = "string"
}
}
}
}
Property Values
Microsoft.Automation/automationAccounts/connections
| 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 connection. | ConnectionCreateOrUpdatePropertiesOrConnectionProperties (required) |
| type | The resource type | "Microsoft.Automation/automationAccounts/connections@2024-10-23" |
ConnectionCreateOrUpdatePropertiesFieldDefinitionValues
| Name | Description | Value |
|---|
ConnectionCreateOrUpdatePropertiesOrConnectionProperties
| Name | Description | Value |
|---|---|---|
| connectionType | Gets or sets the connectionType of the connection. | ConnectionTypeAssociationProperty (required) |
| description | Gets or sets the description of the connection. | string |
| fieldDefinitionValues | Gets or sets the field definition properties of the connection. | ConnectionCreateOrUpdatePropertiesFieldDefinitionValues |
ConnectionTypeAssociationProperty
| Name | Description | Value |
|---|---|---|
| name | Gets or sets the name of the connection type. | string |