EnvironmentCertificate

class EnvironmentCertificate : KotlinCustomResource

Manages a Container App Environment Certificate.

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.operationalinsights.AnalyticsWorkspace;
import com.pulumi.azure.operationalinsights.AnalyticsWorkspaceArgs;
import com.pulumi.azure.containerapp.Environment;
import com.pulumi.azure.containerapp.EnvironmentArgs;
import com.pulumi.azure.containerapp.EnvironmentCertificate;
import com.pulumi.azure.containerapp.EnvironmentCertificateArgs;
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());
var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.sku("PerGB2018")
.retentionInDays(30)
.build());
var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
.location(exampleResourceGroup.location())
.resourceGroupName(exampleResourceGroup.name())
.logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
.build());
var exampleEnvironmentCertificate = new EnvironmentCertificate("exampleEnvironmentCertificate", EnvironmentCertificateArgs.builder()
.containerAppEnvironmentId(exampleEnvironment.id())
.certificateBlob(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("path/to/certificate_file.pfx"))))
.certificatePassword("$3cretSqu1rreL")
.build());
}
}

Import

A Container App Environment Certificate can be imported using the resource id, e.g.

$ pulumi import azure:containerapp/environmentCertificate:EnvironmentCertificate example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/certificates/mycertificate"

Properties

Link copied to clipboard

The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.

Link copied to clipboard

The password for the Certificate. Changing this forces a new resource to be created.

Link copied to clipboard

The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.

Link copied to clipboard
val expirationDate: Output<String>

The expiration date for the Certificate.

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

The date of issue for the Certificate.

Link copied to clipboard
val issuer: Output<String>

The Certificate Issuer.

Link copied to clipboard
val name: Output<String>

The name of the Container Apps Environment Certificate. 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
val subjectName: Output<String>

The Subject Name for the Certificate.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val thumbprint: Output<String>

The Thumbprint of the Certificate.

Link copied to clipboard
val urn: Output<String>