Certificate Args
data class CertificateArgs(val automationAccountName: Output<String>? = null, val base64Value: Output<String>? = null, val certificateName: Output<String>? = null, val description: Output<String>? = null, val isExportable: Output<Boolean>? = null, val name: Output<String>? = null, val resourceGroupName: Output<String>? = null, val thumbprint: Output<String>? = null) : ConvertibleToJava<CertificateArgs>
Definition of the certificate. Uses Azure REST API version 2022-08-08. In version 1.x of the Azure Native provider, it used API version 2019-06-01. Other available API versions: 2023-05-15-preview, 2023-11-01, 2024-10-23.
Example Usage
Create or update a certificate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificate = new AzureNative.Automation.Certificate("certificate", new()
{
AutomationAccountName = "myAutomationAccount18",
Base64Value = "base 64 value of cert",
CertificateName = "testCert",
Description = "Sample Cert",
IsExportable = false,
Name = "testCert",
ResourceGroupName = "rg",
Thumbprint = "thumbprint of cert",
});
});
Content copied to clipboard
package main
import (
automation "github.com/pulumi/pulumi-azure-native-sdk/automation/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := automation.NewCertificate(ctx, "certificate", &automation.CertificateArgs{
AutomationAccountName: pulumi.String("myAutomationAccount18"),
Base64Value: pulumi.String("base 64 value of cert"),
CertificateName: pulumi.String("testCert"),
Description: pulumi.String("Sample Cert"),
IsExportable: pulumi.Bool(false),
Name: pulumi.String("testCert"),
ResourceGroupName: pulumi.String("rg"),
Thumbprint: pulumi.String("thumbprint of cert"),
})
if err != nil {
return err
}
return nil
})
}
Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.automation.Certificate;
import com.pulumi.azurenative.automation.CertificateArgs;
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 certificate = new Certificate("certificate", CertificateArgs.builder()
.automationAccountName("myAutomationAccount18")
.base64Value("base 64 value of cert")
.certificateName("testCert")
.description("Sample Cert")
.isExportable(false)
.name("testCert")
.resourceGroupName("rg")
.thumbprint("thumbprint of cert")
.build());
}
}
Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:automation:Certificate testCert /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}
Content copied to clipboard
Constructors
Link copied to clipboard
constructor(automationAccountName: Output<String>? = null, base64Value: Output<String>? = null, certificateName: Output<String>? = null, description: Output<String>? = null, isExportable: Output<Boolean>? = null, name: Output<String>? = null, resourceGroupName: Output<String>? = null, thumbprint: Output<String>? = null)
Properties
Link copied to clipboard
The name of the automation account.
Link copied to clipboard
Gets or sets the base64 encoded value of the certificate.
Link copied to clipboard
The parameters supplied to the create or update certificate operation.
Link copied to clipboard
Gets or sets the description of the certificate.
Link copied to clipboard
Gets or sets the is exportable flag of the certificate.
Link copied to clipboard
Name of an Azure Resource group.
Link copied to clipboard
Gets or sets the thumbprint of the certificate.