1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. containerapp
  6. EnvironmentManagedCertificate

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.35.0
published on Tuesday, Apr 21, 2026 by Pulumi

    Manages a Container App Environment Managed Certificate.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = new azure.core.ResourceGroup("example", {
        name: "example-resources",
        location: "West Europe",
    });
    const exampleAnalyticsWorkspace = new azure.operationalinsights.AnalyticsWorkspace("example", {
        name: "example-workspace",
        location: example.location,
        resourceGroupName: example.name,
        sku: "PerGB2018",
        retentionInDays: 30,
    });
    const exampleEnvironment = new azure.containerapp.Environment("example", {
        name: "example-environment",
        location: example.location,
        resourceGroupName: example.name,
        logAnalyticsWorkspaceId: exampleAnalyticsWorkspace.id,
    });
    const exampleApp = new azure.containerapp.App("example", {
        name: "example-app",
        resourceGroupName: example.name,
        containerAppEnvironmentId: exampleEnvironment.id,
        revisionMode: "Single",
        template: {
            containers: [{
                name: "example-container",
                image: "mcr.microsoft.com/k8se/quickstart:latest",
                cpu: 0.25,
                memory: "0.5Gi",
            }],
        },
        ingress: {
            externalEnabled: true,
            targetPort: 80,
            transport: "http",
            trafficWeights: [{
                latestRevision: true,
                percentage: 100,
            }],
        },
    });
    const exampleCustomDomain = new azure.containerapp.CustomDomain("example", {
        name: "example.com",
        containerAppId: exampleApp.id,
    });
    const exampleEnvironmentManagedCertificate = new azure.containerapp.EnvironmentManagedCertificate("example", {
        name: "example-managed-cert",
        containerAppEnvironmentId: exampleEnvironment.id,
        subjectName: "example.com",
        domainControlValidation: "HTTP",
    }, {
        dependsOn: [exampleCustomDomain],
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.core.ResourceGroup("example",
        name="example-resources",
        location="West Europe")
    example_analytics_workspace = azure.operationalinsights.AnalyticsWorkspace("example",
        name="example-workspace",
        location=example.location,
        resource_group_name=example.name,
        sku="PerGB2018",
        retention_in_days=30)
    example_environment = azure.containerapp.Environment("example",
        name="example-environment",
        location=example.location,
        resource_group_name=example.name,
        log_analytics_workspace_id=example_analytics_workspace.id)
    example_app = azure.containerapp.App("example",
        name="example-app",
        resource_group_name=example.name,
        container_app_environment_id=example_environment.id,
        revision_mode="Single",
        template={
            "containers": [{
                "name": "example-container",
                "image": "mcr.microsoft.com/k8se/quickstart:latest",
                "cpu": 0.25,
                "memory": "0.5Gi",
            }],
        },
        ingress={
            "external_enabled": True,
            "target_port": 80,
            "transport": "http",
            "traffic_weights": [{
                "latest_revision": True,
                "percentage": 100,
            }],
        })
    example_custom_domain = azure.containerapp.CustomDomain("example",
        name="example.com",
        container_app_id=example_app.id)
    example_environment_managed_certificate = azure.containerapp.EnvironmentManagedCertificate("example",
        name="example-managed-cert",
        container_app_environment_id=example_environment.id,
        subject_name="example.com",
        domain_control_validation="HTTP",
        opts = pulumi.ResourceOptions(depends_on=[example_custom_domain]))
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
    	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/operationalinsights"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
    			Name:     pulumi.String("example-resources"),
    			Location: pulumi.String("West Europe"),
    		})
    		if err != nil {
    			return err
    		}
    		exampleAnalyticsWorkspace, err := operationalinsights.NewAnalyticsWorkspace(ctx, "example", &operationalinsights.AnalyticsWorkspaceArgs{
    			Name:              pulumi.String("example-workspace"),
    			Location:          example.Location,
    			ResourceGroupName: example.Name,
    			Sku:               pulumi.String("PerGB2018"),
    			RetentionInDays:   pulumi.Int(30),
    		})
    		if err != nil {
    			return err
    		}
    		exampleEnvironment, err := containerapp.NewEnvironment(ctx, "example", &containerapp.EnvironmentArgs{
    			Name:                    pulumi.String("example-environment"),
    			Location:                example.Location,
    			ResourceGroupName:       example.Name,
    			LogAnalyticsWorkspaceId: exampleAnalyticsWorkspace.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		exampleApp, err := containerapp.NewApp(ctx, "example", &containerapp.AppArgs{
    			Name:                      pulumi.String("example-app"),
    			ResourceGroupName:         example.Name,
    			ContainerAppEnvironmentId: exampleEnvironment.ID(),
    			RevisionMode:              pulumi.String("Single"),
    			Template: &containerapp.AppTemplateArgs{
    				Containers: containerapp.AppTemplateContainerArray{
    					&containerapp.AppTemplateContainerArgs{
    						Name:   pulumi.String("example-container"),
    						Image:  pulumi.String("mcr.microsoft.com/k8se/quickstart:latest"),
    						Cpu:    pulumi.Float64(0.25),
    						Memory: pulumi.String("0.5Gi"),
    					},
    				},
    			},
    			Ingress: &containerapp.AppIngressArgs{
    				ExternalEnabled: pulumi.Bool(true),
    				TargetPort:      pulumi.Int(80),
    				Transport:       pulumi.String("http"),
    				TrafficWeights: containerapp.AppIngressTrafficWeightArray{
    					&containerapp.AppIngressTrafficWeightArgs{
    						LatestRevision: pulumi.Bool(true),
    						Percentage:     pulumi.Int(100),
    					},
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		exampleCustomDomain, err := containerapp.NewCustomDomain(ctx, "example", &containerapp.CustomDomainArgs{
    			Name:           pulumi.String("example.com"),
    			ContainerAppId: exampleApp.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = containerapp.NewEnvironmentManagedCertificate(ctx, "example", &containerapp.EnvironmentManagedCertificateArgs{
    			Name:                      pulumi.String("example-managed-cert"),
    			ContainerAppEnvironmentId: exampleEnvironment.ID(),
    			SubjectName:               pulumi.String("example.com"),
    			DomainControlValidation:   pulumi.String("HTTP"),
    		}, pulumi.DependsOn([]pulumi.Resource{
    			exampleCustomDomain,
    		}))
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Azure = Pulumi.Azure;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Azure.Core.ResourceGroup("example", new()
        {
            Name = "example-resources",
            Location = "West Europe",
        });
    
        var exampleAnalyticsWorkspace = new Azure.OperationalInsights.AnalyticsWorkspace("example", new()
        {
            Name = "example-workspace",
            Location = example.Location,
            ResourceGroupName = example.Name,
            Sku = "PerGB2018",
            RetentionInDays = 30,
        });
    
        var exampleEnvironment = new Azure.ContainerApp.Environment("example", new()
        {
            Name = "example-environment",
            Location = example.Location,
            ResourceGroupName = example.Name,
            LogAnalyticsWorkspaceId = exampleAnalyticsWorkspace.Id,
        });
    
        var exampleApp = new Azure.ContainerApp.App("example", new()
        {
            Name = "example-app",
            ResourceGroupName = example.Name,
            ContainerAppEnvironmentId = exampleEnvironment.Id,
            RevisionMode = "Single",
            Template = new Azure.ContainerApp.Inputs.AppTemplateArgs
            {
                Containers = new[]
                {
                    new Azure.ContainerApp.Inputs.AppTemplateContainerArgs
                    {
                        Name = "example-container",
                        Image = "mcr.microsoft.com/k8se/quickstart:latest",
                        Cpu = 0.25,
                        Memory = "0.5Gi",
                    },
                },
            },
            Ingress = new Azure.ContainerApp.Inputs.AppIngressArgs
            {
                ExternalEnabled = true,
                TargetPort = 80,
                Transport = "http",
                TrafficWeights = new[]
                {
                    new Azure.ContainerApp.Inputs.AppIngressTrafficWeightArgs
                    {
                        LatestRevision = true,
                        Percentage = 100,
                    },
                },
            },
        });
    
        var exampleCustomDomain = new Azure.ContainerApp.CustomDomain("example", new()
        {
            Name = "example.com",
            ContainerAppId = exampleApp.Id,
        });
    
        var exampleEnvironmentManagedCertificate = new Azure.ContainerApp.EnvironmentManagedCertificate("example", new()
        {
            Name = "example-managed-cert",
            ContainerAppEnvironmentId = exampleEnvironment.Id,
            SubjectName = "example.com",
            DomainControlValidation = "HTTP",
        }, new CustomResourceOptions
        {
            DependsOn =
            {
                exampleCustomDomain,
            },
        });
    
    });
    
    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.App;
    import com.pulumi.azure.containerapp.AppArgs;
    import com.pulumi.azure.containerapp.inputs.AppTemplateArgs;
    import com.pulumi.azure.containerapp.inputs.AppIngressArgs;
    import com.pulumi.azure.containerapp.CustomDomain;
    import com.pulumi.azure.containerapp.CustomDomainArgs;
    import com.pulumi.azure.containerapp.EnvironmentManagedCertificate;
    import com.pulumi.azure.containerapp.EnvironmentManagedCertificateArgs;
    import com.pulumi.resources.CustomResourceOptions;
    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()
                .name("example-workspace")
                .location(example.location())
                .resourceGroupName(example.name())
                .sku("PerGB2018")
                .retentionInDays(30)
                .build());
    
            var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()
                .name("example-environment")
                .location(example.location())
                .resourceGroupName(example.name())
                .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
                .build());
    
            var exampleApp = new App("exampleApp", AppArgs.builder()
                .name("example-app")
                .resourceGroupName(example.name())
                .containerAppEnvironmentId(exampleEnvironment.id())
                .revisionMode("Single")
                .template(AppTemplateArgs.builder()
                    .containers(AppTemplateContainerArgs.builder()
                        .name("example-container")
                        .image("mcr.microsoft.com/k8se/quickstart:latest")
                        .cpu(0.25)
                        .memory("0.5Gi")
                        .build())
                    .build())
                .ingress(AppIngressArgs.builder()
                    .externalEnabled(true)
                    .targetPort(80)
                    .transport("http")
                    .trafficWeights(AppIngressTrafficWeightArgs.builder()
                        .latestRevision(true)
                        .percentage(100)
                        .build())
                    .build())
                .build());
    
            var exampleCustomDomain = new CustomDomain("exampleCustomDomain", CustomDomainArgs.builder()
                .name("example.com")
                .containerAppId(exampleApp.id())
                .build());
    
            var exampleEnvironmentManagedCertificate = new EnvironmentManagedCertificate("exampleEnvironmentManagedCertificate", EnvironmentManagedCertificateArgs.builder()
                .name("example-managed-cert")
                .containerAppEnvironmentId(exampleEnvironment.id())
                .subjectName("example.com")
                .domainControlValidation("HTTP")
                .build(), CustomResourceOptions.builder()
                    .dependsOn(exampleCustomDomain)
                    .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAnalyticsWorkspace:
        type: azure:operationalinsights:AnalyticsWorkspace
        name: example
        properties:
          name: example-workspace
          location: ${example.location}
          resourceGroupName: ${example.name}
          sku: PerGB2018
          retentionInDays: 30
      exampleEnvironment:
        type: azure:containerapp:Environment
        name: example
        properties:
          name: example-environment
          location: ${example.location}
          resourceGroupName: ${example.name}
          logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
      exampleApp:
        type: azure:containerapp:App
        name: example
        properties:
          name: example-app
          resourceGroupName: ${example.name}
          containerAppEnvironmentId: ${exampleEnvironment.id}
          revisionMode: Single
          template:
            containers:
              - name: example-container
                image: mcr.microsoft.com/k8se/quickstart:latest
                cpu: 0.25
                memory: 0.5Gi
          ingress:
            externalEnabled: true
            targetPort: 80
            transport: http
            trafficWeights:
              - latestRevision: true
                percentage: 100
      exampleCustomDomain:
        type: azure:containerapp:CustomDomain
        name: example
        properties:
          name: example.com
          containerAppId: ${exampleApp.id}
      exampleEnvironmentManagedCertificate:
        type: azure:containerapp:EnvironmentManagedCertificate
        name: example
        properties:
          name: example-managed-cert
          containerAppEnvironmentId: ${exampleEnvironment.id}
          subjectName: example.com
          domainControlValidation: HTTP
        options:
          dependsOn:
            - ${exampleCustomDomain}
    

    API Providers

    This resource uses the following Azure API Providers:

    • Microsoft.App - 2025-07-01

    Create EnvironmentManagedCertificate Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new EnvironmentManagedCertificate(name: string, args: EnvironmentManagedCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentManagedCertificate(resource_name: str,
                                      args: EnvironmentManagedCertificateArgs,
                                      opts: Optional[ResourceOptions] = None)
    
    @overload
    def EnvironmentManagedCertificate(resource_name: str,
                                      opts: Optional[ResourceOptions] = None,
                                      container_app_environment_id: Optional[str] = None,
                                      subject_name: Optional[str] = None,
                                      domain_control_validation: Optional[str] = None,
                                      name: Optional[str] = None,
                                      tags: Optional[Mapping[str, str]] = None)
    func NewEnvironmentManagedCertificate(ctx *Context, name string, args EnvironmentManagedCertificateArgs, opts ...ResourceOption) (*EnvironmentManagedCertificate, error)
    public EnvironmentManagedCertificate(string name, EnvironmentManagedCertificateArgs args, CustomResourceOptions? opts = null)
    public EnvironmentManagedCertificate(String name, EnvironmentManagedCertificateArgs args)
    public EnvironmentManagedCertificate(String name, EnvironmentManagedCertificateArgs args, CustomResourceOptions options)
    
    type: azure:containerapp:EnvironmentManagedCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args EnvironmentManagedCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args EnvironmentManagedCertificateArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args EnvironmentManagedCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentManagedCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentManagedCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var environmentManagedCertificateResource = new Azure.ContainerApp.EnvironmentManagedCertificate("environmentManagedCertificateResource", new()
    {
        ContainerAppEnvironmentId = "string",
        SubjectName = "string",
        DomainControlValidation = "string",
        Name = "string",
        Tags = 
        {
            { "string", "string" },
        },
    });
    
    example, err := containerapp.NewEnvironmentManagedCertificate(ctx, "environmentManagedCertificateResource", &containerapp.EnvironmentManagedCertificateArgs{
    	ContainerAppEnvironmentId: pulumi.String("string"),
    	SubjectName:               pulumi.String("string"),
    	DomainControlValidation:   pulumi.String("string"),
    	Name:                      pulumi.String("string"),
    	Tags: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    })
    
    var environmentManagedCertificateResource = new EnvironmentManagedCertificate("environmentManagedCertificateResource", EnvironmentManagedCertificateArgs.builder()
        .containerAppEnvironmentId("string")
        .subjectName("string")
        .domainControlValidation("string")
        .name("string")
        .tags(Map.of("string", "string"))
        .build());
    
    environment_managed_certificate_resource = azure.containerapp.EnvironmentManagedCertificate("environmentManagedCertificateResource",
        container_app_environment_id="string",
        subject_name="string",
        domain_control_validation="string",
        name="string",
        tags={
            "string": "string",
        })
    
    const environmentManagedCertificateResource = new azure.containerapp.EnvironmentManagedCertificate("environmentManagedCertificateResource", {
        containerAppEnvironmentId: "string",
        subjectName: "string",
        domainControlValidation: "string",
        name: "string",
        tags: {
            string: "string",
        },
    });
    
    type: azure:containerapp:EnvironmentManagedCertificate
    properties:
        containerAppEnvironmentId: string
        domainControlValidation: string
        name: string
        subjectName: string
        tags:
            string: string
    

    EnvironmentManagedCertificate Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The EnvironmentManagedCertificate resource accepts the following input properties:

    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    DomainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    Name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    DomainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    Name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    domainControlValidation String

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name String
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    containerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    subjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    domainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    container_app_environment_id str
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    subject_name str
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    domain_control_validation str

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name str
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    domainControlValidation String

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name String
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the EnvironmentManagedCertificate resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationToken string
    The validation token for the managed certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    ValidationToken string
    The validation token for the managed certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    validationToken String
    The validation token for the managed certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    validationToken string
    The validation token for the managed certificate.
    id str
    The provider-assigned unique ID for this managed resource.
    validation_token str
    The validation token for the managed certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    validationToken String
    The validation token for the managed certificate.

    Look up Existing EnvironmentManagedCertificate Resource

    Get an existing EnvironmentManagedCertificate resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: EnvironmentManagedCertificateState, opts?: CustomResourceOptions): EnvironmentManagedCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            container_app_environment_id: Optional[str] = None,
            domain_control_validation: Optional[str] = None,
            name: Optional[str] = None,
            subject_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            validation_token: Optional[str] = None) -> EnvironmentManagedCertificate
    func GetEnvironmentManagedCertificate(ctx *Context, name string, id IDInput, state *EnvironmentManagedCertificateState, opts ...ResourceOption) (*EnvironmentManagedCertificate, error)
    public static EnvironmentManagedCertificate Get(string name, Input<string> id, EnvironmentManagedCertificateState? state, CustomResourceOptions? opts = null)
    public static EnvironmentManagedCertificate get(String name, Output<String> id, EnvironmentManagedCertificateState state, CustomResourceOptions options)
    resources:  _:    type: azure:containerapp:EnvironmentManagedCertificate    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    DomainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    Name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    ValidationToken string
    The validation token for the managed certificate.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    DomainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    Name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    ValidationToken string
    The validation token for the managed certificate.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    domainControlValidation String

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name String
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    validationToken String
    The validation token for the managed certificate.
    containerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    domainControlValidation string

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name string
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    subjectName string
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    validationToken string
    The validation token for the managed certificate.
    container_app_environment_id str
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    domain_control_validation str

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name str
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    subject_name str
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    validation_token str
    The validation token for the managed certificate.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Managed Certificate on. Changing this forces a new resource to be created.
    domainControlValidation String

    The domain control validation type for the managed certificate. Possible values are CNAME and HTTP. Defaults to HTTP. Changing this forces a new resource to be created.

    Note: The supported validation methods depend on the domain. Azure will validate domain ownership based on the specified method. HTTP validation requires an HTTP endpoint at the domain, CNAME validation requires DNS CNAME record configuration.

    name String
    The name of the Container Apps Environment Managed Certificate. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name of the Certificate. Must be a valid domain name. Changing this forces a new resource to be created.
    tags Map<String>
    A mapping of tags to assign to the resource.
    validationToken String
    The validation token for the managed certificate.

    Import

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

    $ pulumi import azure:containerapp/environmentManagedCertificate:EnvironmentManagedCertificate example "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resGroup1/providers/Microsoft.App/managedEnvironments/myenv/managedCertificates/mycertificate"
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.35.0
    published on Tuesday, Apr 21, 2026 by Pulumi
      Try Pulumi Cloud free. Your team will thank you.