azure.containerapp.EnvironmentCertificate

Manages a Container App Environment Certificate.

Example Usage

Coming soon!

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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()        
            .location("West Europe")
            .build());

        var exampleAnalyticsWorkspace = new AnalyticsWorkspace("exampleAnalyticsWorkspace", AnalyticsWorkspaceArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .sku("PerGB2018")
            .retentionInDays(30)
            .build());

        var exampleEnvironment = new Environment("exampleEnvironment", EnvironmentArgs.builder()        
            .location(exampleResourceGroup.location())
            .resourceGroupName(exampleResourceGroup.name())
            .logAnalyticsWorkspaceId(exampleAnalyticsWorkspace.id())
            .build());

        var exampleEnvironmentCertificate = new EnvironmentCertificate("exampleEnvironmentCertificate", EnvironmentCertificateArgs.builder()        
            .containerAppEnvironmentId(exampleEnvironment.id())
            .certificateBlob(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("path/to/certificate_file.pfx"))))
            .certificatePassword("$3cretSqu1rreL")
            .build());

    }
}

Coming soon!

Coming soon!

Coming soon!

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.