ConnectionServicePrincipal

class ConnectionServicePrincipal : KotlinCustomResource

Manages an Automation Connection with type AzureServicePrincipal.

Example Usage

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.ConnectionServicePrincipal;
import com.pulumi.azure.automation.ConnectionServicePrincipalArgs;
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()
.location("West Europe")
.build());
final var exampleClientConfig = CoreFunctions.getClientConfig();
var exampleAccount = new Account("exampleAccount", AccountArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.skuName("Basic")
.build());
var exampleConnectionServicePrincipal = new ConnectionServicePrincipal("exampleConnectionServicePrincipal", ConnectionServicePrincipalArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.automationAccountName(exampleAccount.name())
.applicationId("00000000-0000-0000-0000-000000000000")
.tenantId(exampleClientConfig.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
.subscriptionId(exampleClientConfig.applyValue(getClientConfigResult -> getClientConfigResult.subscriptionId()))
.certificateThumbprint(Files.readString(Paths.get("automation_certificate_test.thumb")))
.build());
}
}

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

Properties

Link copied to clipboard
val applicationId: Output<String>

The (Client) ID of the Service Principal.

Link copied to clipboard

The name of the automation account in which the Connection is created. Changing this forces a new resource to be created.

Link copied to clipboard

The thumbprint of the Service Principal Certificate.

Link copied to clipboard
val description: Output<String>?

A description for this Connection.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val name: Output<String>

Specifies the name of the Connection. Changing this forces a new resource to be created.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the resource group in which the Connection is created. Changing this forces a new resource to be created.

Link copied to clipboard
val subscriptionId: Output<String>

The subscription GUID.

Link copied to clipboard
val tenantId: Output<String>

The ID of the Tenant the Service Principal is assigned in.

Link copied to clipboard
val urn: Output<String>