» azurerm_app_service_certificate_order
Manages an App Service Certificate Order.
» Example Usage
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_app_service_certificate_order" "example" {
name = "example-cert-order"
resource_group_name = "${azurerm_resource_group.example.name}"
location = "global"
distinguished_name = "CN=example.com"
product_type = "standard"
}
» Argument Reference
The following arguments are supported:
name
- (Required) Specifies the name of the certificate. Changing this forces a new resource to be created.resource_group_name
- (Required) The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.location
- (Required) Specifies the supported Azure location where the resource exists. Changing this forces a new resource to be created.auto_renew
- (Optional) true if the certificate should be automatically renewed when it expires; otherwise, false.csr
- (Optional) Last CSR that was created for this order.distinguished_name
- (Optional) The Distinguished Name for the App Service Certificate Order.
NOTE: Either csr
or distinguished_name
must be set - but not both.
key_size
- (Optional) Certificate key size.product_type
- (Optional) Certificate product type, such asStandard
orWildCard
.validity_in_years
- (Optional) Duration in years (must be between 1 and 3).
» Attributes Reference
The following attributes are exported:
id
- The App Service Certificate Order ID.certificates
- State of the Key Vault secret. Acertificates
block as defined below.domain_verification_token
- Domain verification token.status
- Current order status.expiration_time
- Certificate expiration time.is_private_key_external
- Whether the private key is external or not.app_service_certificate_not_renewable_reasons
- Reasons why App Service Certificate is not renewable at the current moment.signed_certificate_thumbprint
- Certificate thumbprint for signed certificate.root_thumbprint
- Certificate thumbprint for root certificate.intermediate_thumbprint
- Certificate thumbprint intermediate certificate.tags
- A mapping of tags to assign to the resource.
certificates
supports the following:
certificate_name
- The name of the App Service Certificate.key_vault_id
- Key Vault resource Id.key_vault_secret_name
- Key Vault secret name.provisioning_state
- Status of the Key Vault secret.
» Import
App Service certificate order can be imported using the resource id
, e.g.
terraform import azurerm_app_certificate_order.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.CertificateRegistration/certificateOrders/certificateorder1