We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
Manages an Automation Connection.
Example Usage
Example coming soon!
Example coming soon!
Example coming soon!
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleClientConfig = azure.core.getClientConfig({});
const exampleAccount = new azure.automation.Account("exampleAccount", {
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
sku: [{
name: "Basic",
}],
});
const exampleConnection = new azure.automation.Connection("exampleConnection", {
resourceGroupName: exampleResourceGroup.name,
automationAccountName: exampleAccount.name,
type: "AzureServicePrincipal",
values: {
ApplicationId: "00000000-0000-0000-0000-000000000000",
TenantId: exampleClientConfig.then(exampleClientConfig => exampleClientConfig.tenantId),
SubscriptionId: exampleClientConfig.then(exampleClientConfig => exampleClientConfig.subscriptionId),
CertificateThumbprint: "sample-certificate-thumbprint",
},
});
Example coming soon!
Example coming soon!
Create Connection Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Connection(name: string, args: ConnectionArgs, opts?: CustomResourceOptions);@overload
def Connection(resource_name: str,
args: ConnectionArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Connection(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
type: Optional[str] = None,
values: Optional[Mapping[str, str]] = None,
description: Optional[str] = None,
name: Optional[str] = None)func NewConnection(ctx *Context, name string, args ConnectionArgs, opts ...ResourceOption) (*Connection, error)public Connection(string name, ConnectionArgs args, CustomResourceOptions? opts = null)
public Connection(String name, ConnectionArgs args)
public Connection(String name, ConnectionArgs args, CustomResourceOptions options)
type: azure:automation:Connection
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var connectionResource = new Azure.Automation.Connection("connectionResource", new()
{
AutomationAccountName = "string",
ResourceGroupName = "string",
Type = "string",
Values =
{
{ "string", "string" },
},
Description = "string",
Name = "string",
});
example, err := automation.NewConnection(ctx, "connectionResource", &automation.ConnectionArgs{
AutomationAccountName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
Type: pulumi.String("string"),
Values: pulumi.StringMap{
"string": pulumi.String("string"),
},
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var connectionResource = new com.pulumi.azure.automation.Connection("connectionResource", com.pulumi.azure.automation.ConnectionArgs.builder()
.automationAccountName("string")
.resourceGroupName("string")
.type("string")
.values(Map.of("string", "string"))
.description("string")
.name("string")
.build());
connection_resource = azure.automation.Connection("connectionResource",
automation_account_name="string",
resource_group_name="string",
type="string",
values={
"string": "string",
},
description="string",
name="string")
const connectionResource = new azure.automation.Connection("connectionResource", {
automationAccountName: "string",
resourceGroupName: "string",
type: "string",
values: {
string: "string",
},
description: "string",
name: "string",
});
type: azure:automation:Connection
properties:
automationAccountName: string
description: string
name: string
resourceGroupName: string
type: string
values:
string: string
Connection Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Connection resource accepts the following input properties:
- Automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - Values Dictionary<string, string>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - Description string
- A description for this Connection.
- Name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- Automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - Values map[string]string
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - Description string
- A description for this Connection.
- Name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- automation
Account StringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type String
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Map<String,String>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - description String
- A description for this Connection.
- name String
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values {[key: string]: string}
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - description string
- A description for this Connection.
- name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- automation_
account_ strname - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type str
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Mapping[str, str]
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - description str
- A description for this Connection.
- name str
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- automation
Account StringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type String
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Map<String>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below: - description String
- A description for this Connection.
- name String
- Specifies the name of the Connection. Changing this forces a new resource to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the Connection resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing Connection Resource
Get an existing Connection resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ConnectionState, opts?: CustomResourceOptions): Connection@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
type: Optional[str] = None,
values: Optional[Mapping[str, str]] = None) -> Connectionfunc GetConnection(ctx *Context, name string, id IDInput, state *ConnectionState, opts ...ResourceOption) (*Connection, error)public static Connection Get(string name, Input<string> id, ConnectionState? state, CustomResourceOptions? opts = null)public static Connection get(String name, Output<String> id, ConnectionState state, CustomResourceOptions options)resources: _: type: azure:automation:Connection get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Description string
- A description for this Connection.
- Name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - Values Dictionary<string, string>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
- Automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Description string
- A description for this Connection.
- Name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- Resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - Values map[string]string
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
- automation
Account StringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- description String
- A description for this Connection.
- name String
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type String
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Map<String,String>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
- automation
Account stringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- description string
- A description for this Connection.
- name string
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- resource
Group stringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type string
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values {[key: string]: string}
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
- automation_
account_ strname - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- description str
- A description for this Connection.
- name str
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- resource_
group_ strname - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type str
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Mapping[str, str]
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
- automation
Account StringName - The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- description String
- A description for this Connection.
- name String
- Specifies the name of the Connection. Changing this forces a new resource to be created.
- resource
Group StringName - The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- type String
- The type of the Connection - can be either builtin type such as
Azure,AzureClassicCertificate, andAzureServicePrincipal, or a user defined types. Changing this forces a new resource to be created. - values Map<String>
- A mapping of key value pairs passed to the connection. Different
typeneeds different parameters in thevalues. Builtin types have required field values as below:
Import
Automation Connection can be imported using the resource id, e.g.
$ pulumi import azure:automation/connection:Connection example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/connections/conn1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
published on Monday, Mar 9, 2026 by Pulumi
