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
The EnvironmentCertificate resource accepts the following input properties:
- Certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- Certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- Container
App 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.
- Certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- Certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- Container
App 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.
- certificate
Blob StringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password String - The password for the Certificate. Changing this forces a new resource to be created.
- container
App 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.
- certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- container
App 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.
- certificate
Blob StringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password String - The password for the Certificate. Changing this forces a new resource to be created.
- container
App 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:
- 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.
- Subject
Name string - The Subject Name for the Certificate.
- Thumbprint string
- The Thumbprint of the Certificate.
- 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.
- Subject
Name string - The Subject Name for the Certificate.
- Thumbprint string
- The Thumbprint of the Certificate.
- 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.
- subject
Name String - The Subject Name for the Certificate.
- thumbprint String
- The Thumbprint of the Certificate.
- 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.
- subject
Name 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.
- 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.
- subject
Name 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.
- Certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- Certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- Container
App stringEnvironment Id - The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
- Expiration
Date string - The expiration date for the Certificate.
- Issue
Date 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.
- Subject
Name 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.
- Certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- Certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- Container
App stringEnvironment Id - The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
- Expiration
Date string - The expiration date for the Certificate.
- Issue
Date 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.
- Subject
Name 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.
- certificate
Blob StringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password String - The password for the Certificate. Changing this forces a new resource to be created.
- container
App StringEnvironment Id - The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
- expiration
Date String - The expiration date for the Certificate.
- issue
Date 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.
- subject
Name 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.
- certificate
Blob stringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password string - The password for the Certificate. Changing this forces a new resource to be created.
- container
App stringEnvironment Id - The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
- expiration
Date string - The expiration date for the Certificate.
- issue
Date 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.
- subject
Name 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.
- certificate
Blob StringBase64 - The Certificate Private Key as a base64 encoded PFX or PEM. Changing this forces a new resource to be created.
- certificate
Password String - The password for the Certificate. Changing this forces a new resource to be created.
- container
App StringEnvironment Id - The Container App Managed Environment ID to configure this Certificate on. Changing this forces a new resource to be created.
- expiration
Date String - The expiration date for the Certificate.
- issue
Date 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.
- subject
Name 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
azurerm
Terraform Provider.