Azure Classic
ConnectionServicePrincipal
Manages an Automation Connection with type AzureServicePrincipal
.
Example Usage
Coming soon!
Coming soon!
package generated_program;
import java.util.*;
import java.io.*;
import java.nio.*;
import com.pulumi.*;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
var exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
final var exampleClientConfig = Output.of(CoreFunctions.getClientConfig());
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.getLocation())
.resourceGroupName(exampleResourceGroup.getName())
.sku(Map.of("name", "Basic"))
.build());
var exampleConnectionServicePrincipal = new ConnectionServicePrincipal("exampleConnectionServicePrincipal", ConnectionServicePrincipalArgs.builder()
.resourceGroupName(exampleResourceGroup.getName())
.automationAccountName(exampleAccount.getName())
.applicationId("00000000-0000-0000-0000-000000000000")
.tenantId(exampleClientConfig.apply(getClientConfigResult -> getClientConfigResult.getTenantId()))
.subscriptionId(exampleClientConfig.apply(getClientConfigResult -> getClientConfigResult.getSubscriptionId()))
.certificateThumbprint(Files.readString("automation_certificate_test.thumb"))
.build());
}
}
Coming soon!
Coming soon!
Coming soon!
Create a ConnectionServicePrincipal Resource
new ConnectionServicePrincipal(name: string, args: ConnectionServicePrincipalArgs, opts?: CustomResourceOptions);
@overload
def ConnectionServicePrincipal(resource_name: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
automation_account_name: Optional[str] = None,
certificate_thumbprint: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
subscription_id: Optional[str] = None,
tenant_id: Optional[str] = None)
@overload
def ConnectionServicePrincipal(resource_name: str,
args: ConnectionServicePrincipalArgs,
opts: Optional[ResourceOptions] = None)
func NewConnectionServicePrincipal(ctx *Context, name string, args ConnectionServicePrincipalArgs, opts ...ResourceOption) (*ConnectionServicePrincipal, error)
public ConnectionServicePrincipal(string name, ConnectionServicePrincipalArgs args, CustomResourceOptions? opts = null)
public ConnectionServicePrincipal(String name, ConnectionServicePrincipalArgs args)
public ConnectionServicePrincipal(String name, ConnectionServicePrincipalArgs args, CustomResourceOptions options)
type: azure:automation:ConnectionServicePrincipal
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionServicePrincipalArgs
- 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 ConnectionServicePrincipalArgs
- 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 ConnectionServicePrincipalArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionServicePrincipalArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionServicePrincipalArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
ConnectionServicePrincipal Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The ConnectionServicePrincipal resource accepts the following input properties:
- Application
Id string The (Client) ID of the Service Principal.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- Resource
Group stringName The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Subscription
Id string The subscription GUID.
- Tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- Description string
A description for this Connection.
- Name string
Specifies the name of the Connection. Changing this forces a new resource to be created.
- Application
Id string The (Client) ID of the Service Principal.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- Resource
Group stringName The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- Subscription
Id string The subscription GUID.
- Tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- Description string
A description for this Connection.
- Name string
Specifies the name of the Connection. Changing this forces a new resource to be created.
- application
Id String The (Client) ID of the Service Principal.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint String The thumbprint of the Service Principal Certificate.
- resource
Group StringName The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- subscription
Id String The subscription GUID.
- tenant
Id String The ID of the Tenant the Service Principal is assigned in.
- description String
A description for this Connection.
- name String
Specifies the name of the Connection. Changing this forces a new resource to be created.
- application
Id string The (Client) ID of the Service Principal.
- automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- resource
Group stringName The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- subscription
Id string The subscription GUID.
- tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- description string
A description for this Connection.
- name string
Specifies the name of the Connection. Changing this forces a new resource to be created.
- application_
id str The (Client) ID of the Service Principal.
- automation_
account_ strname The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate_
thumbprint str The thumbprint of the Service Principal Certificate.
- resource_
group_ strname The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- subscription_
id str The subscription GUID.
- tenant_
id str The ID of the Tenant the Service Principal is assigned in.
- description str
A description for this Connection.
- name str
Specifies the name of the Connection. Changing this forces a new resource to be created.
- application
Id String The (Client) ID of the Service Principal.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint String The thumbprint of the Service Principal Certificate.
- resource
Group StringName The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.
- subscription
Id String The subscription GUID.
- tenant
Id String The ID of the Tenant the Service Principal is assigned in.
- 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 ConnectionServicePrincipal 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 an Existing ConnectionServicePrincipal Resource
Get an existing ConnectionServicePrincipal 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?: ConnectionServicePrincipalState, opts?: CustomResourceOptions): ConnectionServicePrincipal
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
application_id: Optional[str] = None,
automation_account_name: Optional[str] = None,
certificate_thumbprint: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
subscription_id: Optional[str] = None,
tenant_id: Optional[str] = None) -> ConnectionServicePrincipal
func GetConnectionServicePrincipal(ctx *Context, name string, id IDInput, state *ConnectionServicePrincipalState, opts ...ResourceOption) (*ConnectionServicePrincipal, error)
public static ConnectionServicePrincipal Get(string name, Input<string> id, ConnectionServicePrincipalState? state, CustomResourceOptions? opts = null)
public static ConnectionServicePrincipal get(String name, Output<String> id, ConnectionServicePrincipalState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Application
Id string The (Client) ID of the Service Principal.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- 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.
- Subscription
Id string The subscription GUID.
- Tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- Application
Id string The (Client) ID of the Service Principal.
- Automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- Certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- 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.
- Subscription
Id string The subscription GUID.
- Tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- application
Id String The (Client) ID of the Service Principal.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint String The thumbprint of the Service Principal Certificate.
- 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.
- subscription
Id String The subscription GUID.
- tenant
Id String The ID of the Tenant the Service Principal is assigned in.
- application
Id string The (Client) ID of the Service Principal.
- automation
Account stringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint string The thumbprint of the Service Principal Certificate.
- 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.
- subscription
Id string The subscription GUID.
- tenant
Id string The ID of the Tenant the Service Principal is assigned in.
- application_
id str The (Client) ID of the Service Principal.
- automation_
account_ strname The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate_
thumbprint str The thumbprint of the Service Principal Certificate.
- 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.
- subscription_
id str The subscription GUID.
- tenant_
id str The ID of the Tenant the Service Principal is assigned in.
- application
Id String The (Client) ID of the Service Principal.
- automation
Account StringName The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.
- certificate
Thumbprint String The thumbprint of the Service Principal Certificate.
- 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.
- subscription
Id String The subscription GUID.
- tenant
Id String The ID of the Tenant the Service Principal is assigned in.
Import
Automation Connection can be imported using the resource id
, e.g.
$ pulumi import azure:automation/connectionServicePrincipal:ConnectionServicePrincipal conn1 /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/group1/providers/Microsoft.Automation/automationAccounts/account1/connections/conn1
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
This Pulumi package is based on the
azurerm
Terraform Provider.