We recommend using Azure Native.
azure.automation.ConnectionClassicCertificate
Explore with Pulumi AI
Manages an Automation Connection with type AzureClassicCertificate
.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("example", {
name: "resourceGroup-example",
location: "West Europe",
});
const example = azure.core.getClientConfig({});
const exampleAccount = new azure.automation.Account("example", {
name: "account-example",
location: exampleResourceGroup.location,
resourceGroupName: exampleResourceGroup.name,
skuName: "Basic",
});
const exampleConnectionClassicCertificate = new azure.automation.ConnectionClassicCertificate("example", {
name: "connection-example",
resourceGroupName: exampleResourceGroup.name,
automationAccountName: exampleAccount.name,
certificateAssetName: "cert1",
subscriptionName: "subs1",
subscriptionId: example.then(example => example.subscriptionId),
});
import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("example",
name="resourceGroup-example",
location="West Europe")
example = azure.core.get_client_config()
example_account = azure.automation.Account("example",
name="account-example",
location=example_resource_group.location,
resource_group_name=example_resource_group.name,
sku_name="Basic")
example_connection_classic_certificate = azure.automation.ConnectionClassicCertificate("example",
name="connection-example",
resource_group_name=example_resource_group.name,
automation_account_name=example_account.name,
certificate_asset_name="cert1",
subscription_name="subs1",
subscription_id=example.subscription_id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/automation"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("resourceGroup-example"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
example, err := core.GetClientConfig(ctx, map[string]interface{}{}, nil)
if err != nil {
return err
}
exampleAccount, err := automation.NewAccount(ctx, "example", &automation.AccountArgs{
Name: pulumi.String("account-example"),
Location: exampleResourceGroup.Location,
ResourceGroupName: exampleResourceGroup.Name,
SkuName: pulumi.String("Basic"),
})
if err != nil {
return err
}
_, err = automation.NewConnectionClassicCertificate(ctx, "example", &automation.ConnectionClassicCertificateArgs{
Name: pulumi.String("connection-example"),
ResourceGroupName: exampleResourceGroup.Name,
AutomationAccountName: exampleAccount.Name,
CertificateAssetName: pulumi.String("cert1"),
SubscriptionName: pulumi.String("subs1"),
SubscriptionId: pulumi.String(example.SubscriptionId),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("example", new()
{
Name = "resourceGroup-example",
Location = "West Europe",
});
var example = Azure.Core.GetClientConfig.Invoke();
var exampleAccount = new Azure.Automation.Account("example", new()
{
Name = "account-example",
Location = exampleResourceGroup.Location,
ResourceGroupName = exampleResourceGroup.Name,
SkuName = "Basic",
});
var exampleConnectionClassicCertificate = new Azure.Automation.ConnectionClassicCertificate("example", new()
{
Name = "connection-example",
ResourceGroupName = exampleResourceGroup.Name,
AutomationAccountName = exampleAccount.Name,
CertificateAssetName = "cert1",
SubscriptionName = "subs1",
SubscriptionId = example.Apply(getClientConfigResult => getClientConfigResult.SubscriptionId),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.core.CoreFunctions;
import com.pulumi.azure.automation.Account;
import com.pulumi.azure.automation.AccountArgs;
import com.pulumi.azure.automation.ConnectionClassicCertificate;
import com.pulumi.azure.automation.ConnectionClassicCertificateArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
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()
.name("resourceGroup-example")
.location("West Europe")
.build());
final var example = CoreFunctions.getClientConfig();
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.name("account-example")
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleConnectionClassicCertificate = new ConnectionClassicCertificate("exampleConnectionClassicCertificate", ConnectionClassicCertificateArgs.builder()
.name("connection-example")
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.certificateAssetName("cert1")
.subscriptionName("subs1")
.subscriptionId(example.applyValue(getClientConfigResult -> getClientConfigResult.subscriptionId()))
.build());
}
}
resources:
exampleResourceGroup:
type: azure:core:ResourceGroup
name: example
properties:
name: resourceGroup-example
location: West Europe
exampleAccount:
type: azure:automation:Account
name: example
properties:
name: account-example
location: ${exampleResourceGroup.location}
resourceGroupName: ${exampleResourceGroup.name}
skuName: Basic
exampleConnectionClassicCertificate:
type: azure:automation:ConnectionClassicCertificate
name: example
properties:
name: connection-example
resourceGroupName: ${exampleResourceGroup.name}
automationAccountName: ${exampleAccount.name}
certificateAssetName: cert1
subscriptionName: subs1
subscriptionId: ${example.subscriptionId}
variables:
example:
fn::invoke:
Function: azure:core:getClientConfig
Arguments: {}
Create ConnectionClassicCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new ConnectionClassicCertificate(name: string, args: ConnectionClassicCertificateArgs, opts?: CustomResourceOptions);
@overload
def ConnectionClassicCertificate(resource_name: str,
args: ConnectionClassicCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def ConnectionClassicCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
certificate_asset_name: Optional[str] = None,
resource_group_name: Optional[str] = None,
subscription_id: Optional[str] = None,
subscription_name: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None)
func NewConnectionClassicCertificate(ctx *Context, name string, args ConnectionClassicCertificateArgs, opts ...ResourceOption) (*ConnectionClassicCertificate, error)
public ConnectionClassicCertificate(string name, ConnectionClassicCertificateArgs args, CustomResourceOptions? opts = null)
public ConnectionClassicCertificate(String name, ConnectionClassicCertificateArgs args)
public ConnectionClassicCertificate(String name, ConnectionClassicCertificateArgs args, CustomResourceOptions options)
type: azure:automation:ConnectionClassicCertificate
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 ConnectionClassicCertificateArgs
- 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 ConnectionClassicCertificateArgs
- 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 ConnectionClassicCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ConnectionClassicCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ConnectionClassicCertificateArgs
- 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 connectionClassicCertificateResource = new Azure.Automation.ConnectionClassicCertificate("connectionClassicCertificateResource", new()
{
AutomationAccountName = "string",
CertificateAssetName = "string",
ResourceGroupName = "string",
SubscriptionId = "string",
SubscriptionName = "string",
Description = "string",
Name = "string",
});
example, err := automation.NewConnectionClassicCertificate(ctx, "connectionClassicCertificateResource", &automation.ConnectionClassicCertificateArgs{
AutomationAccountName: pulumi.String("string"),
CertificateAssetName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
SubscriptionName: pulumi.String("string"),
Description: pulumi.String("string"),
Name: pulumi.String("string"),
})
var connectionClassicCertificateResource = new ConnectionClassicCertificate("connectionClassicCertificateResource", ConnectionClassicCertificateArgs.builder()
.automationAccountName("string")
.certificateAssetName("string")
.resourceGroupName("string")
.subscriptionId("string")
.subscriptionName("string")
.description("string")
.name("string")
.build());
connection_classic_certificate_resource = azure.automation.ConnectionClassicCertificate("connectionClassicCertificateResource",
automation_account_name="string",
certificate_asset_name="string",
resource_group_name="string",
subscription_id="string",
subscription_name="string",
description="string",
name="string")
const connectionClassicCertificateResource = new azure.automation.ConnectionClassicCertificate("connectionClassicCertificateResource", {
automationAccountName: "string",
certificateAssetName: "string",
resourceGroupName: "string",
subscriptionId: "string",
subscriptionName: "string",
description: "string",
name: "string",
});
type: azure:automation:ConnectionClassicCertificate
properties:
automationAccountName: string
certificateAssetName: string
description: string
name: string
resourceGroupName: string
subscriptionId: string
subscriptionName: string
ConnectionClassicCertificate 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 ConnectionClassicCertificate 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.
- Certificate
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- Subscription
Name string - The name of subscription.
- 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.
- Certificate
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- Subscription
Name string - The name of subscription.
- 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.
- certificate
Asset StringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name String - The name of subscription.
- 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.
- certificate
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name string - The name of subscription.
- 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.
- certificate_
asset_ strname - The name of the certificate asset.
- 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 id of subscription.
- subscription_
name str - The name of subscription.
- 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.
- certificate
Asset StringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name String - The name of subscription.
- 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 ConnectionClassicCertificate 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 ConnectionClassicCertificate Resource
Get an existing ConnectionClassicCertificate 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?: ConnectionClassicCertificateState, opts?: CustomResourceOptions): ConnectionClassicCertificate
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
automation_account_name: Optional[str] = None,
certificate_asset_name: Optional[str] = None,
description: Optional[str] = None,
name: Optional[str] = None,
resource_group_name: Optional[str] = None,
subscription_id: Optional[str] = None,
subscription_name: Optional[str] = None) -> ConnectionClassicCertificate
func GetConnectionClassicCertificate(ctx *Context, name string, id IDInput, state *ConnectionClassicCertificateState, opts ...ResourceOption) (*ConnectionClassicCertificate, error)
public static ConnectionClassicCertificate Get(string name, Input<string> id, ConnectionClassicCertificateState? state, CustomResourceOptions? opts = null)
public static ConnectionClassicCertificate get(String name, Output<String> id, ConnectionClassicCertificateState 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.
- 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
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- Subscription
Name string - The name of subscription.
- 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
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- Subscription
Name string - The name of subscription.
- 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
Asset StringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name String - The name of subscription.
- 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
Asset stringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name string - The name of subscription.
- 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_
asset_ strname - The name of the certificate asset.
- 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 id of subscription.
- subscription_
name str - The name of subscription.
- 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
Asset StringName - The name of the certificate asset.
- 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 id of subscription.
- subscription
Name String - The name of subscription.
Import
Automation Connection can be imported using the resource id
, e.g.
$ pulumi import azure:automation/connectionClassicCertificate:ConnectionClassicCertificate conn1 /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
azurerm
Terraform Provider.