CertificateOrder
Manages an App Service Certificate Order.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "West Europe",
});
var exampleCertificateOrder = new Azure.AppService.CertificateOrder("exampleCertificateOrder", new Azure.AppService.CertificateOrderArgs
{
ResourceGroupName = exampleResourceGroup.Name,
Location = "global",
DistinguishedName = "CN=example.com",
ProductType = "Standard",
});
}
}
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v3/go/azure/core"
"github.com/pulumi/pulumi/sdk/v2/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
exampleResourceGroup, err := core.NewResourceGroup(ctx, "exampleResourceGroup", &core.ResourceGroupArgs{
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = appservice.NewCertificateOrder(ctx, "exampleCertificateOrder", &appservice.CertificateOrderArgs{
ResourceGroupName: exampleResourceGroup.Name,
Location: pulumi.String("global"),
DistinguishedName: pulumi.String("CN=example.com"),
ProductType: pulumi.String("Standard"),
})
if err != nil {
return err
}
return nil
})
}import pulumi
import pulumi_azure as azure
example_resource_group = azure.core.ResourceGroup("exampleResourceGroup", location="West Europe")
example_certificate_order = azure.appservice.CertificateOrder("exampleCertificateOrder",
resource_group_name=example_resource_group.name,
location="global",
distinguished_name="CN=example.com",
product_type="Standard")import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const exampleResourceGroup = new azure.core.ResourceGroup("exampleResourceGroup", {location: "West Europe"});
const exampleCertificateOrder = new azure.appservice.CertificateOrder("exampleCertificateOrder", {
resourceGroupName: exampleResourceGroup.name,
location: "global",
distinguishedName: "CN=example.com",
productType: "Standard",
});Create a CertificateOrder Resource
new CertificateOrder(name: string, args: CertificateOrderArgs, opts?: CustomResourceOptions);def CertificateOrder(resource_name, opts=None, auto_renew=None, csr=None, distinguished_name=None, key_size=None, location=None, name=None, product_type=None, resource_group_name=None, tags=None, validity_in_years=None, __props__=None);func NewCertificateOrder(ctx *Context, name string, args CertificateOrderArgs, opts ...ResourceOption) (*CertificateOrder, error)public CertificateOrder(string name, CertificateOrderArgs args, CustomResourceOptions? opts = null)- name string
- The unique name of the resource.
- args CertificateOrderArgs
- 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 CertificateOrderArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateOrderArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
CertificateOrder Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Programming Model docs.
Inputs
The CertificateOrder 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.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Key
Size int Certificate key size. Defaults to 2048.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Product
Type string Certificate product type, such as
StandardorWildCard.- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between
1and3). Defaults to1.
- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Key
Size int Certificate key size. Defaults to 2048.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Product
Type string Certificate product type, such as
StandardorWildCard.- map[string]string
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between
1and3). Defaults to1.
- resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- auto
Renew boolean true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- csr string
Last CSR that was created for this order.
- distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- key
Size number Certificate key size. Defaults to 2048.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- product
Type string Certificate product type, such as
StandardorWildCard.- {[key: string]: string}
A mapping of tags to assign to the resource.
- validity
In numberYears Duration in years (must be between
1and3). Defaults to1.
- resource_
group_ strname The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- auto_
renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- csr str
Last CSR that was created for this order.
- distinguished_
name str The Distinguished Name for the App Service Certificate Order.
- key_
size float Certificate key size. Defaults to 2048.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- name str
Specifies the name of the certificate. Changing this forces a new resource to be created.
- product_
type str Certificate product type, such as
StandardorWildCard.- Dict[str, str]
A mapping of tags to assign to the resource.
- validity_
in_ floatyears Duration in years (must be between
1and3). Defaults to1.
Outputs
All input properties are implicitly available as output properties. Additionally, the CertificateOrder resource produces the following output properties:
- App
Service List<string>Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Certificates
List<Certificate
Order Certificate> State of the Key Vault secret. A
certificatesblock as defined below.- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- App
Service []stringCertificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Certificates
[]Certificate
Order Certificate State of the Key Vault secret. A
certificatesblock as defined below.- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Id string
- The provider-assigned unique ID for this managed resource.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- app
Service string[]Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- certificates
Certificate
Order Certificate[] State of the Key Vault secret. A
certificatesblock as defined below.- domain
Verification stringToken Domain verification token.
- expiration
Time string Certificate expiration time.
- id string
- The provider-assigned unique ID for this managed resource.
- intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- is
Private booleanKey External Whether the private key is external or not.
- root
Thumbprint string Certificate thumbprint for root certificate.
- signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- status string
Current order status.
- app_
service_ List[str]certificate_ not_ renewable_ reasons Reasons why App Service Certificate is not renewable at the current moment.
- certificates
List[Certificate
Order Certificate] State of the Key Vault secret. A
certificatesblock as defined below.- domain_
verification_ strtoken Domain verification token.
- expiration_
time str Certificate expiration time.
- id str
- The provider-assigned unique ID for this managed resource.
- intermediate_
thumbprint str Certificate thumbprint intermediate certificate.
- is_
private_ boolkey_ external Whether the private key is external or not.
- root_
thumbprint str Certificate thumbprint for root certificate.
- signed_
certificate_ strthumbprint Certificate thumbprint for signed certificate.
- status str
Current order status.
Look up an Existing CertificateOrder Resource
Get an existing CertificateOrder 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?: CertificateOrderState, opts?: CustomResourceOptions): CertificateOrderstatic get(resource_name, id, opts=None, app_service_certificate_not_renewable_reasons=None, auto_renew=None, certificates=None, csr=None, distinguished_name=None, domain_verification_token=None, expiration_time=None, intermediate_thumbprint=None, is_private_key_external=None, key_size=None, location=None, name=None, product_type=None, resource_group_name=None, root_thumbprint=None, signed_certificate_thumbprint=None, status=None, tags=None, validity_in_years=None, __props__=None);func GetCertificateOrder(ctx *Context, name string, id IDInput, state *CertificateOrderState, opts ...ResourceOption) (*CertificateOrder, error)public static CertificateOrder Get(string name, Input<string> id, CertificateOrderState? 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:
- App
Service List<string>Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- Certificates
List<Certificate
Order Certificate Args> State of the Key Vault secret. A
certificatesblock as defined below.- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Key
Size int Certificate key size. Defaults to 2048.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Product
Type string Certificate product type, such as
StandardorWildCard.- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- Dictionary<string, string>
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between
1and3). Defaults to1.
- App
Service []stringCertificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- Auto
Renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- Certificates
[]Certificate
Order Certificate State of the Key Vault secret. A
certificatesblock as defined below.- Csr string
Last CSR that was created for this order.
- Distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- Domain
Verification stringToken Domain verification token.
- Expiration
Time string Certificate expiration time.
- Intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- Is
Private boolKey External Whether the private key is external or not.
- Key
Size int Certificate key size. Defaults to 2048.
- Location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- Name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- Product
Type string Certificate product type, such as
StandardorWildCard.- Resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- Root
Thumbprint string Certificate thumbprint for root certificate.
- Signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- Status string
Current order status.
- map[string]string
A mapping of tags to assign to the resource.
- Validity
In intYears Duration in years (must be between
1and3). Defaults to1.
- app
Service string[]Certificate Not Renewable Reasons Reasons why App Service Certificate is not renewable at the current moment.
- auto
Renew boolean true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- certificates
Certificate
Order Certificate[] State of the Key Vault secret. A
certificatesblock as defined below.- csr string
Last CSR that was created for this order.
- distinguished
Name string The Distinguished Name for the App Service Certificate Order.
- domain
Verification stringToken Domain verification token.
- expiration
Time string Certificate expiration time.
- intermediate
Thumbprint string Certificate thumbprint intermediate certificate.
- is
Private booleanKey External Whether the private key is external or not.
- key
Size number Certificate key size. Defaults to 2048.
- location string
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- name string
Specifies the name of the certificate. Changing this forces a new resource to be created.
- product
Type string Certificate product type, such as
StandardorWildCard.- resource
Group stringName The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- root
Thumbprint string Certificate thumbprint for root certificate.
- signed
Certificate stringThumbprint Certificate thumbprint for signed certificate.
- status string
Current order status.
- {[key: string]: string}
A mapping of tags to assign to the resource.
- validity
In numberYears Duration in years (must be between
1and3). Defaults to1.
- app_
service_ List[str]certificate_ not_ renewable_ reasons Reasons why App Service Certificate is not renewable at the current moment.
- auto_
renew bool true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.
- certificates
List[Certificate
Order Certificate] State of the Key Vault secret. A
certificatesblock as defined below.- csr str
Last CSR that was created for this order.
- distinguished_
name str The Distinguished Name for the App Service Certificate Order.
- domain_
verification_ strtoken Domain verification token.
- expiration_
time str Certificate expiration time.
- intermediate_
thumbprint str Certificate thumbprint intermediate certificate.
- is_
private_ boolkey_ external Whether the private key is external or not.
- key_
size float Certificate key size. Defaults to 2048.
- location str
Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created. Currently the only valid value is
global.- name str
Specifies the name of the certificate. Changing this forces a new resource to be created.
- product_
type str Certificate product type, such as
StandardorWildCard.- resource_
group_ strname The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.
- root_
thumbprint str Certificate thumbprint for root certificate.
- signed_
certificate_ strthumbprint Certificate thumbprint for signed certificate.
- status str
Current order status.
- Dict[str, str]
A mapping of tags to assign to the resource.
- validity_
in_ floatyears Duration in years (must be between
1and3). Defaults to1.
Supporting Types
CertificateOrderCertificate
See the output API doc for this type.
See the output API doc for this type.
See the output API doc for this type.
- Certificate
Name string The name of the App Service Certificate.
- Key
Vault stringId Key Vault resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Provisioning
State string Status of the Key Vault secret.
- Certificate
Name string The name of the App Service Certificate.
- Key
Vault stringId Key Vault resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Provisioning
State string Status of the Key Vault secret.
- certificate
Name string The name of the App Service Certificate.
- key
Vault stringId Key Vault resource Id.
- key
Vault stringSecret Name Key Vault secret name.
- provisioning
State string Status of the Key Vault secret.
- certificate
Name str The name of the App Service Certificate.
- key
Vault strSecret Name Key Vault secret name.
- key_
vault_ strid Key Vault resource Id.
- provisioning
State str Status of the Key Vault secret.
Package Details
- Repository
- https://github.com/pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.