» 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.

  • key_size - (Optional) Certificate key size.

  • product_type - (Optional) Certificate product type, such as Standard or WildCard.

  • validity_in_years - (Optional) Duration in years (must be between 1 and 3).

» Attributes Reference

The following attributes are exported:


certificates supports the following:

» 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