Certificate
Manages an App Service certificate.
Create a Certificate Resource
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);def Certificate(resource_name, opts=None, hosting_environment_profile_id=None, key_vault_secret_id=None, location=None, name=None, password=None, pfx_blob=None, resource_group_name=None, tags=None, __props__=None);func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- opts ResourceOptions
- A bag of options that control this resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The Certificate resource accepts the following input properties:
- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- Key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- Pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- Dictionary<string, string>
- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- Key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- Pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- map[string]string
- resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- {[key: string]: string}
- resource_
group_ strname The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- hosting_
environment_ strprofile_ id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- key_
vault_ strsecret_ id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the certificate. Changing this forces a new resource to be created.
- password str
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- pfx_
blob str The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- Dict[str, str]
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names List<string> List of host names the certificate applies to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Subject
Name string The subject name of the certificate.
- Thumbprint string
The thumbprint for the certificate.
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names []string List of host names the certificate applies to.
- Id string
- The provider-assigned unique ID for this managed resource.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Subject
Name string The subject name of the certificate.
- Thumbprint string
The thumbprint for the certificate.
- expiration
Date string The expiration date for the certificate.
- friendly
Name string The friendly name of the certificate.
- host
Names string[] List of host names the certificate applies to.
- id string
- The provider-assigned unique ID for this managed resource.
- issue
Date string The issue date for the certificate.
- issuer string
The name of the certificate issuer.
- subject
Name string The subject name of the certificate.
- thumbprint string
The thumbprint for the certificate.
- expiration_
date str The expiration date for the certificate.
- friendly_
name str The friendly name of the certificate.
- host_
names List[str] List of host names the certificate applies to.
- id str
- The provider-assigned unique ID for this managed resource.
- issue_
date str The issue date for the certificate.
- issuer str
The name of the certificate issuer.
- subject_
name str The subject name of the certificate.
- thumbprint str
The thumbprint for the certificate.
Look up an Existing Certificate Resource
Get an existing Certificate 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?: CertificateState, opts?: CustomResourceOptions): Certificatestatic get(resource_name, id, opts=None, expiration_date=None, friendly_name=None, host_names=None, hosting_environment_profile_id=None, issue_date=None, issuer=None, key_vault_secret_id=None, location=None, name=None, password=None, pfx_blob=None, resource_group_name=None, subject_name=None, tags=None, thumbprint=None, __props__=None);func GetCertificate(ctx *Context, name string, id IDInput, state *CertificateState, opts ...ResourceOption) (*Certificate, error)public static Certificate Get(string name, Input<string> id, CertificateState? state, CustomResourceOptions? opts = null)- 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.
The following state arguments are supported:
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names List<string> List of host names the certificate applies to.
- Hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- Pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Subject
Name string The subject name of the certificate.
- Dictionary<string, string>
- Thumbprint string
The thumbprint for the certificate.
- Expiration
Date string The expiration date for the certificate.
- Friendly
Name string The friendly name of the certificate.
- Host
Names []string List of host names the certificate applies to.
- Hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- Issue
Date string The issue date for the certificate.
- Issuer string
The name of the certificate issuer.
- Key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- Pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Subject
Name string The subject name of the certificate.
- map[string]string
- Thumbprint string
The thumbprint for the certificate.
- expiration
Date string The expiration date for the certificate.
- friendly
Name string The friendly name of the certificate.
- host
Names string[] List of host names the certificate applies to.
- hosting
Environment stringProfile Id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- issue
Date string The issue date for the certificate.
- issuer string
The name of the certificate issuer.
- key
Vault stringSecret Id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- password string
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- pfx
Blob string The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- subject
Name string The subject name of the certificate.
- {[key: string]: string}
- thumbprint string
The thumbprint for the certificate.
- expiration_
date str The expiration date for the certificate.
- friendly_
name str The friendly name of the certificate.
- host_
names List[str] List of host names the certificate applies to.
- hosting_
environment_ strprofile_ id Must be specified when the certificate is for an App Service Environment hosted App Service. Changing this forces a new resource to be created.
- issue_
date str The issue date for the certificate.
- issuer str
The name of the certificate issuer.
- key_
vault_ strsecret_ id The ID of the Key Vault secret. Changing this forces a new resource to be created.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.
- name str
Specifies the name of the certificate. Changing this forces a new resource to be created.
- password str
The password to access the certificate’s private key. Changing this forces a new resource to be created.
- pfx_
blob str The base64-encoded contents of the certificate. Changing this forces a new resource to be created.
- resource_
group_ strname The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- subject_
name str The subject name of the certificate.
- Dict[str, str]
- thumbprint str
The thumbprint for the certificate.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.