We recommend using Azure Native.
Azure v6.28.0 published on Friday, Oct 3, 2025 by Pulumi
azure.containerapp.getEnvironmentCertificate
Start a Neo task
Explain and create an azure.containerapp.getEnvironmentCertificate resource
Use this data source to access information about an existing Container App Environment Certificate.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.containerapp.getEnvironment({
name: "example-environment",
resourceGroupName: "example-resources",
});
const exampleGetEnvironmentCertificate = example.then(example => azure.containerapp.getEnvironmentCertificate({
name: "mycertificate",
containerAppEnvironmentId: example.id,
}));
import pulumi
import pulumi_azure as azure
example = azure.containerapp.get_environment(name="example-environment",
resource_group_name="example-resources")
example_get_environment_certificate = azure.containerapp.get_environment_certificate(name="mycertificate",
container_app_environment_id=example.id)
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/containerapp"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := containerapp.LookupEnvironment(ctx, &containerapp.LookupEnvironmentArgs{
Name: "example-environment",
ResourceGroupName: "example-resources",
}, nil)
if err != nil {
return err
}
_, err = containerapp.LookupEnvironmentCertificate(ctx, &containerapp.LookupEnvironmentCertificateArgs{
Name: "mycertificate",
ContainerAppEnvironmentId: example.Id,
}, nil)
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 = Azure.ContainerApp.GetEnvironment.Invoke(new()
{
Name = "example-environment",
ResourceGroupName = "example-resources",
});
var exampleGetEnvironmentCertificate = Azure.ContainerApp.GetEnvironmentCertificate.Invoke(new()
{
Name = "mycertificate",
ContainerAppEnvironmentId = example.Apply(getEnvironmentResult => getEnvironmentResult.Id),
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.containerapp.ContainerappFunctions;
import com.pulumi.azure.containerapp.inputs.GetEnvironmentArgs;
import com.pulumi.azure.containerapp.inputs.GetEnvironmentCertificateArgs;
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) {
final var example = ContainerappFunctions.getEnvironment(GetEnvironmentArgs.builder()
.name("example-environment")
.resourceGroupName("example-resources")
.build());
final var exampleGetEnvironmentCertificate = ContainerappFunctions.getEnvironmentCertificate(GetEnvironmentCertificateArgs.builder()
.name("mycertificate")
.containerAppEnvironmentId(example.id())
.build());
}
}
variables:
example:
fn::invoke:
function: azure:containerapp:getEnvironment
arguments:
name: example-environment
resourceGroupName: example-resources
exampleGetEnvironmentCertificate:
fn::invoke:
function: azure:containerapp:getEnvironmentCertificate
arguments:
name: mycertificate
containerAppEnvironmentId: ${example.id}
API Providers
This data source uses the following Azure API Providers:
Microsoft.App- 2025-01-01
Using getEnvironmentCertificate
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getEnvironmentCertificate(args: GetEnvironmentCertificateArgs, opts?: InvokeOptions): Promise<GetEnvironmentCertificateResult>
function getEnvironmentCertificateOutput(args: GetEnvironmentCertificateOutputArgs, opts?: InvokeOptions): Output<GetEnvironmentCertificateResult>def get_environment_certificate(container_app_environment_id: Optional[str] = None,
name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetEnvironmentCertificateResult
def get_environment_certificate_output(container_app_environment_id: Optional[pulumi.Input[str]] = None,
name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetEnvironmentCertificateResult]func LookupEnvironmentCertificate(ctx *Context, args *LookupEnvironmentCertificateArgs, opts ...InvokeOption) (*LookupEnvironmentCertificateResult, error)
func LookupEnvironmentCertificateOutput(ctx *Context, args *LookupEnvironmentCertificateOutputArgs, opts ...InvokeOption) LookupEnvironmentCertificateResultOutput> Note: This function is named LookupEnvironmentCertificate in the Go SDK.
public static class GetEnvironmentCertificate
{
public static Task<GetEnvironmentCertificateResult> InvokeAsync(GetEnvironmentCertificateArgs args, InvokeOptions? opts = null)
public static Output<GetEnvironmentCertificateResult> Invoke(GetEnvironmentCertificateInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetEnvironmentCertificateResult> getEnvironmentCertificate(GetEnvironmentCertificateArgs args, InvokeOptions options)
public static Output<GetEnvironmentCertificateResult> getEnvironmentCertificate(GetEnvironmentCertificateArgs args, InvokeOptions options)
fn::invoke:
function: azure:containerapp/getEnvironmentCertificate:getEnvironmentCertificate
arguments:
# arguments dictionaryThe following arguments are supported:
- Container
App stringEnvironment Id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- Name string
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
- Container
App stringEnvironment Id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- Name string
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
- container
App StringEnvironment Id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- name String
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
- container
App stringEnvironment Id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- name string
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
- container_
app_ strenvironment_ id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- name str
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
- container
App StringEnvironment Id - The ID of the Container App Environment to configure this Certificate on. Changing this forces a new resource to be created.
- name String
- The name of the Container Apps Certificate. Changing this forces a new resource to be created.
getEnvironmentCertificate Result
The following output properties are available:
- Container
App stringEnvironment Id - Expiration
Date string - The expiration date for the Certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issue
Date string - The date of issue for the Certificate.
- Issuer string
- The Certificate Issuer.
- Name string
- Subject
Name string - The Subject Name for the Certificate.
- Dictionary<string, string>
- A mapping of tags assigned to the resource.
- Thumbprint string
- The Thumbprint of the Certificate.
- Container
App stringEnvironment Id - Expiration
Date string - The expiration date for the Certificate.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issue
Date string - The date of issue for the Certificate.
- Issuer string
- The Certificate Issuer.
- Name string
- Subject
Name string - The Subject Name for the Certificate.
- map[string]string
- A mapping of tags assigned to the resource.
- Thumbprint string
- The Thumbprint of the Certificate.
- container
App StringEnvironment Id - expiration
Date String - The expiration date for the Certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- issue
Date String - The date of issue for the Certificate.
- issuer String
- The Certificate Issuer.
- name String
- subject
Name String - The Subject Name for the Certificate.
- Map<String,String>
- A mapping of tags assigned to the resource.
- thumbprint String
- The Thumbprint of the Certificate.
- container
App stringEnvironment Id - expiration
Date string - The expiration date for the Certificate.
- id string
- The provider-assigned unique ID for this managed resource.
- issue
Date string - The date of issue for the Certificate.
- issuer string
- The Certificate Issuer.
- name string
- subject
Name string - The Subject Name for the Certificate.
- {[key: string]: string}
- A mapping of tags assigned to the resource.
- thumbprint string
- The Thumbprint of the Certificate.
- container_
app_ strenvironment_ id - expiration_
date str - The expiration date for the Certificate.
- id str
- The provider-assigned unique ID for this managed resource.
- issue_
date str - The date of issue for the Certificate.
- issuer str
- The Certificate Issuer.
- name str
- subject_
name str - The Subject Name for the Certificate.
- Mapping[str, str]
- A mapping of tags assigned to the resource.
- thumbprint str
- The Thumbprint of the Certificate.
- container
App StringEnvironment Id - expiration
Date String - The expiration date for the Certificate.
- id String
- The provider-assigned unique ID for this managed resource.
- issue
Date String - The date of issue for the Certificate.
- issuer String
- The Certificate Issuer.
- name String
- subject
Name String - The Subject Name for the Certificate.
- Map<String>
- A mapping of tags assigned to the resource.
- thumbprint String
- The Thumbprint of the Certificate.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
