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/connectionTypes 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 Type.
param resourceName string = 'acctest0001'
param location string = 'westeurope'
resource automationAccount 'Microsoft.Automation/automationAccounts@2021-06-22' = {
name: resourceName
location: location
properties: {
encryption: {
keySource: 'Microsoft.Automation'
}
publicNetworkAccess: true
sku: {
name: 'Basic'
}
}
}
resource connectionType 'Microsoft.Automation/automationAccounts/connectionTypes@2020-01-13-preview' = {
name: resourceName
parent: automationAccount
properties: {
fieldDefinitions: {
my_def: {
isEncrypted: false
isOptional: false
type: 'string'
}
}
isGlobal: false
}
}
Resource format
To create a Microsoft.Automation/automationAccounts/connectionTypes resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Automation/automationAccounts/connectionTypes@2015-10-31' = {
parent: resourceSymbolicName
name: 'string'
properties: {
fieldDefinitions: {
{customized property}: {
isEncrypted: bool
isOptional: bool
type: 'string'
}
}
isGlobal: bool
}
}
Property Values
Microsoft.Automation/automationAccounts/connectionTypes
| 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 value of the connection type. | ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties (required) |
ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions
| Name | Description | Value |
|---|
ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties
| Name | Description | Value |
|---|---|---|
| fieldDefinitions | Gets or sets the field definitions of the connection type. | ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions (required) |
| isGlobal | Gets or sets a Boolean value to indicate if the connection type is global. | bool |
FieldDefinition
| Name | Description | Value |
|---|---|---|
| isEncrypted | Gets or sets the isEncrypted flag of the connection field definition. | bool |
| isOptional | Gets or sets the isOptional flag of the connection field definition. | bool |
| type | Gets or sets the type of the connection field definition. | string (required) |
ARM template resource definition
The automationAccounts/connectionTypes 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/connectionTypes resource, add the following JSON to your template.
{
"type": "Microsoft.Automation/automationAccounts/connectionTypes",
"apiVersion": "2015-10-31",
"name": "string",
"properties": {
"fieldDefinitions": {
"{customized property}": {
"isEncrypted": "bool",
"isOptional": "bool",
"type": "string"
}
},
"isGlobal": "bool"
}
}
Property Values
Microsoft.Automation/automationAccounts/connectionTypes
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2015-10-31' |
| name | The resource name | string (required) |
| properties | Gets or sets the value of the connection type. | ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties (required) |
| type | The resource type | 'Microsoft.Automation/automationAccounts/connectionTypes' |
ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions
| Name | Description | Value |
|---|
ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties
| Name | Description | Value |
|---|---|---|
| fieldDefinitions | Gets or sets the field definitions of the connection type. | ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions (required) |
| isGlobal | Gets or sets a Boolean value to indicate if the connection type is global. | bool |
FieldDefinition
| Name | Description | Value |
|---|---|---|
| isEncrypted | Gets or sets the isEncrypted flag of the connection field definition. | bool |
| isOptional | Gets or sets the isOptional flag of the connection field definition. | bool |
| type | Gets or sets the type of the connection field definition. | string (required) |
Terraform (AzAPI provider) resource definition
The automationAccounts/connectionTypes 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 Type.
terraform {
required_providers {
azapi = {
source = "Azure/azapi"
}
}
}
provider "azapi" {
skip_provider_registration = false
}
variable "resource_name" {
type = string
default = "acctest0001"
}
variable "location" {
type = string
default = "westeurope"
}
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" "connectionType" {
type = "Microsoft.Automation/automationAccounts/connectionTypes@2020-01-13-preview"
parent_id = azapi_resource.automationAccount.id
name = var.resource_name
body = {
properties = {
fieldDefinitions = {
my_def = {
isEncrypted = false
isOptional = false
type = "string"
}
}
isGlobal = false
}
}
schema_validation_enabled = false
response_export_values = ["*"]
}
Resource format
To create a Microsoft.Automation/automationAccounts/connectionTypes resource, add the following Terraform to your template.
resource "azapi_resource" "symbolicname" {
type = "Microsoft.Automation/automationAccounts/connectionTypes@2015-10-31"
name = "string"
parent_id = "string"
body = {
properties = {
fieldDefinitions = {
{customized property} = {
isEncrypted = bool
isOptional = bool
type = "string"
}
}
isGlobal = bool
}
}
}
Property Values
Microsoft.Automation/automationAccounts/connectionTypes
| 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 value of the connection type. | ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties (required) |
| type | The resource type | "Microsoft.Automation/automationAccounts/connectionTypes@2015-10-31" |
ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions
| Name | Description | Value |
|---|
ConnectionTypeCreateOrUpdatePropertiesOrConnectionTypeProperties
| Name | Description | Value |
|---|---|---|
| fieldDefinitions | Gets or sets the field definitions of the connection type. | ConnectionTypeCreateOrUpdatePropertiesFieldDefinitions (required) |
| isGlobal | Gets or sets a Boolean value to indicate if the connection type is global. | bool |
FieldDefinition
| Name | Description | Value |
|---|---|---|
| isEncrypted | Gets or sets the isEncrypted flag of the connection field definition. | bool |
| isOptional | Gets or sets the isOptional flag of the connection field definition. | bool |
| type | Gets or sets the type of the connection field definition. | string (required) |