Managed Certificate Args
data class ManagedCertificateArgs(val environmentName: Output<String>? = null, val location: Output<String>? = null, val managedCertificateName: Output<String>? = null, val properties: Output<ManagedCertificatePropertiesArgs>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ManagedCertificateArgs>
Managed certificates used for Custom Domain bindings of Container Apps in a Managed Environment Uses Azure REST API version 2023-04-01-preview. Other available API versions: 2023-05-01, 2023-05-02-preview, 2023-08-01-preview, 2023-11-02-preview, 2024-02-02-preview, 2024-03-01, 2024-08-02-preview, 2024-10-02-preview, 2025-01-01.
Example Usage
Create or Update Certificate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var managedCertificate = new AzureNative.App.ManagedCertificate("managedCertificate", new()
{
EnvironmentName = "testcontainerenv",
Location = "East US",
ManagedCertificateName = "certificate-firendly-name",
Properties = new AzureNative.App.Inputs.ManagedCertificatePropertiesArgs
{
DomainControlValidation = AzureNative.App.ManagedCertificateDomainControlValidation.CNAME,
SubjectName = "my-subject-name.company.country.net",
},
ResourceGroupName = "examplerg",
});
});
Content copied to clipboard
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.NewManagedCertificate(ctx, "managedCertificate", &app.ManagedCertificateArgs{
EnvironmentName: pulumi.String("testcontainerenv"),
Location: pulumi.String("East US"),
ManagedCertificateName: pulumi.String("certificate-firendly-name"),
Properties: &app.ManagedCertificatePropertiesArgs{
DomainControlValidation: pulumi.String(app.ManagedCertificateDomainControlValidationCNAME),
SubjectName: pulumi.String("my-subject-name.company.country.net"),
},
ResourceGroupName: pulumi.String("examplerg"),
})
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.app.ManagedCertificate;
import com.pulumi.azurenative.app.ManagedCertificateArgs;
import com.pulumi.azurenative.app.inputs.ManagedCertificatePropertiesArgs;
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 managedCertificate = new ManagedCertificate("managedCertificate", ManagedCertificateArgs.builder()
.environmentName("testcontainerenv")
.location("East US")
.managedCertificateName("certificate-firendly-name")
.properties(ManagedCertificatePropertiesArgs.builder()
.domainControlValidation("CNAME")
.subjectName("my-subject-name.company.country.net")
.build())
.resourceGroupName("examplerg")
.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:app:ManagedCertificate myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.App/managedEnvironments/{environmentName}/managedCertificates/{managedCertificateName}
Content copied to clipboard