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

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

azure.containerapp.EnvironmentCertificate

Explore with Pulumi AI

azure logo

We recommend using Azure Native.

Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi

    Manages a Container App Environment Certificate.

    Example Usage

    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="python">
    

    Coming soon!```

    Coming soon!```
    </pulumi-choosable>
    </div>
    <div>
    <pulumi-choosable type="language" values="csharp">
    

    Coming soon!```

    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 example = new ResourceGroup("example", ResourceGroupArgs.builder()        
                .name("example-resources")
                .location("West Europe")
                .build());
    
            var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()        
                .name("acctest-01")
                .location(example.location())
                .resourceGroupName(example.name())
                .sku("PerGB2018")
                .retentionInDays(30)
                .build());
    
            var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()        
                .name("myEnvironment")
                .location(example.location())
                .resourceGroupName(example.name())
                .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
                .build());
    
            var exampleEnvironmentCertificate = new EnvironmentCertificate("exampleEnvironmentCertificate", EnvironmentCertificateArgs.builder()        
                .name("myfriendlyname")
                .containerAppEnvironmentId(exampleEnvironment.id())
                .certificateBlob(StdFunctions.filebase64(Filebase64Args.builder()
                    .input("path/to/certificate_file.pfx")
                    .build()).result())
                .certificatePassword("$3cretSqu1rreL")
                .build());
    
        }
    }
    
    resources:
      example:
        type: azure:core:ResourceGroup
        properties:
          name: example-resources
          location: West Europe
      exampleAnalyticsWorkspace:
        type: azure:operationalinsights:AnalyticsWorkspace
        name: example
        properties:
          name: acctest-01
          location: ${example.location}
          resourceGroupName: ${example.name}
          sku: PerGB2018
          retentionInDays: 30
      exampleEnvironment:
        type: azure:containerapp:Environment
        name: example
        properties:
          name: myEnvironment
          location: ${example.location}
          resourceGroupName: ${example.name}
          logAnalyticsWorkspaceId: ${exampleAnalyticsWorkspace.id}
      exampleEnvironmentCertificate:
        type: azure:containerapp:EnvironmentCertificate
        name: example
        properties:
          name: myfriendlyname
          containerAppEnvironmentId: ${exampleEnvironment.id}
          certificateBlob:
            fn::invoke:
              Function: std:filebase64
              Arguments:
                input: path/to/certificate_file.pfx
              Return: result
          certificatePassword: $3cretSqu1rreL
    

    Create EnvironmentCertificate Resource

    new EnvironmentCertificate(name: string, args: EnvironmentCertificateArgs, opts?: CustomResourceOptions);
    @overload
    def EnvironmentCertificate(resource_name: str,
                               opts: Optional[ResourceOptions] = None,
                               certificate_blob_base64: Optional[str] = None,
                               certificate_password: Optional[str] = None,
                               container_app_environment_id: Optional[str] = None,
                               name: Optional[str] = None,
                               tags: Optional[Mapping[str, str]] = None)
    @overload
    def EnvironmentCertificate(resource_name: str,
                               args: EnvironmentCertificateArgs,
                               opts: Optional[ResourceOptions] = None)
    func NewEnvironmentCertificate(ctx *Context, name string, args EnvironmentCertificateArgs, opts ...ResourceOption) (*EnvironmentCertificate, error)
    public EnvironmentCertificate(string name, EnvironmentCertificateArgs args, CustomResourceOptions? opts = null)
    public EnvironmentCertificate(String name, EnvironmentCertificateArgs args)
    public EnvironmentCertificate(String name, EnvironmentCertificateArgs args, CustomResourceOptions options)
    
    type: azure:containerapp:EnvironmentCertificate
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    name string
    The unique name of the resource.
    args EnvironmentCertificateArgs
    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 EnvironmentCertificateArgs
    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 EnvironmentCertificateArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args EnvironmentCertificateArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args EnvironmentCertificateArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    EnvironmentCertificate Resource Properties

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

    Inputs

    The EnvironmentCertificate resource accepts the following input properties:

    CertificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    CertificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    Name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    CertificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    CertificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    Name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    certificateBlobBase64 String
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword String
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    name String
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    certificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    certificate_blob_base64 str
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificate_password str
    The password for the Certificate. Changing this forces a new resource to be created.
    container_app_environment_id str
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    name str
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    certificateBlobBase64 String
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword String
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    name String
    The name of the Container Apps Environment 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 EnvironmentCertificate resource produces the following output properties:

    ExpirationDate string
    The expiration date for the Certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssueDate string
    The date of issue for the Certificate.
    Issuer string
    The Certificate Issuer.
    SubjectName string
    The Subject Name for the Certificate.
    Thumbprint string
    The Thumbprint of the Certificate.
    ExpirationDate string
    The expiration date for the Certificate.
    Id string
    The provider-assigned unique ID for this managed resource.
    IssueDate string
    The date of issue for the Certificate.
    Issuer string
    The Certificate Issuer.
    SubjectName string
    The Subject Name for the Certificate.
    Thumbprint string
    The Thumbprint of the Certificate.
    expirationDate String
    The expiration date for the Certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issueDate String
    The date of issue for the Certificate.
    issuer String
    The Certificate Issuer.
    subjectName String
    The Subject Name for the Certificate.
    thumbprint String
    The Thumbprint of the Certificate.
    expirationDate string
    The expiration date for the Certificate.
    id string
    The provider-assigned unique ID for this managed resource.
    issueDate string
    The date of issue for the Certificate.
    issuer string
    The Certificate Issuer.
    subjectName string
    The Subject Name for the Certificate.
    thumbprint string
    The Thumbprint of the Certificate.
    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.
    subject_name str
    The Subject Name for the Certificate.
    thumbprint str
    The Thumbprint of the Certificate.
    expirationDate String
    The expiration date for the Certificate.
    id String
    The provider-assigned unique ID for this managed resource.
    issueDate String
    The date of issue for the Certificate.
    issuer String
    The Certificate Issuer.
    subjectName String
    The Subject Name for the Certificate.
    thumbprint String
    The Thumbprint of the Certificate.

    Look up Existing EnvironmentCertificate Resource

    Get an existing EnvironmentCertificate 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?: EnvironmentCertificateState, opts?: CustomResourceOptions): EnvironmentCertificate
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            certificate_blob_base64: Optional[str] = None,
            certificate_password: Optional[str] = None,
            container_app_environment_id: Optional[str] = None,
            expiration_date: Optional[str] = None,
            issue_date: Optional[str] = None,
            issuer: Optional[str] = None,
            name: Optional[str] = None,
            subject_name: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            thumbprint: Optional[str] = None) -> EnvironmentCertificate
    func GetEnvironmentCertificate(ctx *Context, name string, id IDInput, state *EnvironmentCertificateState, opts ...ResourceOption) (*EnvironmentCertificate, error)
    public static EnvironmentCertificate Get(string name, Input<string> id, EnvironmentCertificateState? state, CustomResourceOptions? opts = null)
    public static EnvironmentCertificate get(String name, Output<String> id, EnvironmentCertificateState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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:
    CertificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    CertificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    ExpirationDate string
    The expiration date for the Certificate.
    IssueDate string
    The date of issue for the Certificate.
    Issuer string
    The Certificate Issuer.
    Name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name for the Certificate.
    Tags Dictionary<string, string>
    A mapping of tags to assign to the resource.
    Thumbprint string
    The Thumbprint of the Certificate.
    CertificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    CertificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    ContainerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    ExpirationDate string
    The expiration date for the Certificate.
    IssueDate string
    The date of issue for the Certificate.
    Issuer string
    The Certificate Issuer.
    Name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    SubjectName string
    The Subject Name for the Certificate.
    Tags map[string]string
    A mapping of tags to assign to the resource.
    Thumbprint string
    The Thumbprint of the Certificate.
    certificateBlobBase64 String
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword String
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    expirationDate String
    The expiration date for the Certificate.
    issueDate String
    The date of issue for the Certificate.
    issuer String
    The Certificate Issuer.
    name String
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name for the Certificate.
    tags Map<String,String>
    A mapping of tags to assign to the resource.
    thumbprint String
    The Thumbprint of the Certificate.
    certificateBlobBase64 string
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword string
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId string
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    expirationDate string
    The expiration date for the Certificate.
    issueDate string
    The date of issue for the Certificate.
    issuer string
    The Certificate Issuer.
    name string
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    subjectName string
    The Subject Name for the Certificate.
    tags {[key: string]: string}
    A mapping of tags to assign to the resource.
    thumbprint string
    The Thumbprint of the Certificate.
    certificate_blob_base64 str
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificate_password str
    The password for the Certificate. Changing this forces a new resource to be created.
    container_app_environment_id str
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    expiration_date str
    The expiration date for the Certificate.
    issue_date str
    The date of issue for the Certificate.
    issuer str
    The Certificate Issuer.
    name str
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    subject_name str
    The Subject Name for the Certificate.
    tags Mapping[str, str]
    A mapping of tags to assign to the resource.
    thumbprint str
    The Thumbprint of the Certificate.
    certificateBlobBase64 String
    The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
    certificatePassword String
    The password for the Certificate. Changing this forces a new resource to be created.
    containerAppEnvironmentId String
    The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
    expirationDate String
    The expiration date for the Certificate.
    issueDate String
    The date of issue for the Certificate.
    issuer String
    The Certificate Issuer.
    name String
    The name of the Container Apps Environment Certificate. Changing this forces a new resource to be created.
    subjectName String
    The Subject Name for the Certificate.
    tags Map<String>
    A mapping of tags to assign to the resource.
    thumbprint String
    The Thumbprint of the Certificate.

    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"
    

    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.

    Azure Classic v5.70.0 published on Wednesday, Mar 27, 2024 by Pulumi