CertificateArgs

data class CertificateArgs(val certificateName: Output<String>? = null, val environmentName: Output<String>? = null, val location: Output<String>? = null, val properties: Output<CertificatePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CertificateArgs>

Certificate used for Custom Domain bindings of Container Apps in a Managed Environment Uses Azure REST API version 2024-03-01. In version 2.x of the Azure Native provider, it used API version 2022-10-01. Other available API versions: 2022-10-01, 2022-11-01-preview, 2023-04-01-preview, 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native app [ApiVersion]. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.

Example Usage

Create or Update Certificate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificate = new AzureNative.App.Certificate("certificate", new()
{
CertificateName = "certificate-firendly-name",
EnvironmentName = "testcontainerenv",
Location = "East US",
Properties = new AzureNative.App.Inputs.CertificatePropertiesArgs
{
Password = "private key password",
Value = "Y2VydA==",
},
ResourceGroupName = "examplerg",
});
});
package main
import (
app "github.com/pulumi/pulumi-azure-native-sdk/app/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := app.NewCertificate(ctx, "certificate", &app.CertificateArgs{
CertificateName: pulumi.String("certificate-firendly-name"),
EnvironmentName: pulumi.String("testcontainerenv"),
Location: pulumi.String("East US"),
Properties: &app.CertificatePropertiesArgs{
Password: pulumi.String("private key password"),
Value: pulumi.String("Y2VydA=="),
},
ResourceGroupName: pulumi.String("examplerg"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.app.Certificate;
import com.pulumi.azurenative.app.CertificateArgs;
import com.pulumi.azurenative.app.inputs.CertificatePropertiesArgs;
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()
.certificateName("certificate-firendly-name")
.environmentName("testcontainerenv")
.location("East US")
.properties(CertificatePropertiesArgs.builder()
.password("private key password")
.value("Y2VydA==")
.build())
.resourceGroupName("examplerg")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:app:Certificate myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/certificates/{certificateName}

Constructors

Link copied to clipboard
constructor(certificateName: Output<String>? = null, environmentName: Output<String>? = null, location: Output<String>? = null, properties: Output<CertificatePropertiesArgs>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Properties

Link copied to clipboard
val certificateName: Output<String>? = null

Name of the Certificate.

Link copied to clipboard
val environmentName: Output<String>? = null

Name of the Managed Environment.

Link copied to clipboard
val location: Output<String>? = null

The geo-location where the resource lives

Link copied to clipboard

Certificate resource specific properties

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

Resource tags.

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs