We recommend using Azure Native.
azure.containerapp.EnvironmentCertificate
Explore with Pulumi AI
Manages a Container App Environment Certificate.
Example Usage
Coming soon!
Coming soon!
Coming soon!
Coming soon!
Coming soon!
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
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new EnvironmentCertificate(name: string, args: EnvironmentCertificateArgs, opts?: CustomResourceOptions);@overload
def EnvironmentCertificate(resource_name: str,
                           args: EnvironmentCertificateArgs,
                           opts: Optional[ResourceOptions] = None)
@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)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.
Parameters
- 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.
Constructor example
The following reference example uses placeholder values for all input properties.
var environmentCertificateResource = new Azure.ContainerApp.EnvironmentCertificate("environmentCertificateResource", new()
{
    CertificateBlobBase64 = "string",
    CertificatePassword = "string",
    ContainerAppEnvironmentId = "string",
    Name = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
example, err := containerapp.NewEnvironmentCertificate(ctx, "environmentCertificateResource", &containerapp.EnvironmentCertificateArgs{
	CertificateBlobBase64:     pulumi.String("string"),
	CertificatePassword:       pulumi.String("string"),
	ContainerAppEnvironmentId: pulumi.String("string"),
	Name:                      pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
var environmentCertificateResource = new EnvironmentCertificate("environmentCertificateResource", EnvironmentCertificateArgs.builder()
    .certificateBlobBase64("string")
    .certificatePassword("string")
    .containerAppEnvironmentId("string")
    .name("string")
    .tags(Map.of("string", "string"))
    .build());
environment_certificate_resource = azure.containerapp.EnvironmentCertificate("environmentCertificateResource",
    certificate_blob_base64="string",
    certificate_password="string",
    container_app_environment_id="string",
    name="string",
    tags={
        "string": "string",
    })
const environmentCertificateResource = new azure.containerapp.EnvironmentCertificate("environmentCertificateResource", {
    certificateBlobBase64: "string",
    certificatePassword: "string",
    containerAppEnvironmentId: "string",
    name: "string",
    tags: {
        string: "string",
    },
});
type: azure:containerapp:EnvironmentCertificate
properties:
    certificateBlobBase64: string
    certificatePassword: string
    containerAppEnvironmentId: string
    name: string
    tags:
        string: string
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
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The EnvironmentCertificate resource accepts the following input properties:
- CertificateBlob stringBase64 
- 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.
- ContainerApp stringEnvironment Id 
- 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.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- CertificateBlob stringBase64 
- 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.
- ContainerApp stringEnvironment Id 
- 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.
- map[string]string
- A mapping of tags to assign to the resource.
- certificateBlob StringBase64 
- 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.
- containerApp StringEnvironment Id 
- 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.
- Map<String,String>
- A mapping of tags to assign to the resource.
- certificateBlob stringBase64 
- 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.
- containerApp stringEnvironment Id 
- 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.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- certificate_blob_ strbase64 
- 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_ strenvironment_ id 
- 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.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- certificateBlob StringBase64 
- 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.
- containerApp StringEnvironment Id 
- 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.
- 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) -> EnvironmentCertificatefunc 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)resources:  _:    type: azure:containerapp:EnvironmentCertificate    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.
- CertificateBlob stringBase64 
- 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.
- ContainerApp stringEnvironment Id 
- 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.
- Dictionary<string, string>
- A mapping of tags to assign to the resource.
- Thumbprint string
- The Thumbprint of the Certificate.
- CertificateBlob stringBase64 
- 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.
- ContainerApp stringEnvironment Id 
- 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.
- map[string]string
- A mapping of tags to assign to the resource.
- Thumbprint string
- The Thumbprint of the Certificate.
- certificateBlob StringBase64 
- 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.
- containerApp StringEnvironment Id 
- 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.
- Map<String,String>
- A mapping of tags to assign to the resource.
- thumbprint String
- The Thumbprint of the Certificate.
- certificateBlob stringBase64 
- 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.
- containerApp stringEnvironment Id 
- 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.
- {[key: string]: string}
- A mapping of tags to assign to the resource.
- thumbprint string
- The Thumbprint of the Certificate.
- certificate_blob_ strbase64 
- 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_ strenvironment_ id 
- 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.
- Mapping[str, str]
- A mapping of tags to assign to the resource.
- thumbprint str
- The Thumbprint of the Certificate.
- certificateBlob StringBase64 
- 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.
- containerApp StringEnvironment Id 
- 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.
- 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"
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 azurermTerraform Provider.