CertificateOrder

class CertificateOrder : KotlinCustomResource

Manages an App Service Certificate Order.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = new azure.core.ResourceGroup("example", {
name: "example-resources",
location: "West Europe",
});
const exampleCertificateOrder = new azure.appservice.CertificateOrder("example", {
name: "example-cert-order",
resourceGroupName: example.name,
location: "global",
distinguishedName: "CN=example.com",
productType: "Standard",
});
import pulumi
import pulumi_azure as azure
example = azure.core.ResourceGroup("example",
name="example-resources",
location="West Europe")
example_certificate_order = azure.appservice.CertificateOrder("example",
name="example-cert-order",
resource_group_name=example.name,
location="global",
distinguished_name="CN=example.com",
product_type="Standard")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = new Azure.Core.ResourceGroup("example", new()
{
Name = "example-resources",
Location = "West Europe",
});
var exampleCertificateOrder = new Azure.AppService.CertificateOrder("example", new()
{
Name = "example-cert-order",
ResourceGroupName = example.Name,
Location = "global",
DistinguishedName = "CN=example.com",
ProductType = "Standard",
});
});
package main
import (
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/appservice"
"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
Name: pulumi.String("example-resources"),
Location: pulumi.String("West Europe"),
})
if err != nil {
return err
}
_, err = appservice.NewCertificateOrder(ctx, "example", &appservice.CertificateOrderArgs{
Name: pulumi.String("example-cert-order"),
ResourceGroupName: example.Name,
Location: pulumi.String("global"),
DistinguishedName: pulumi.String("CN=example.com"),
ProductType: pulumi.String("Standard"),
})
if err != nil {
return err
}
return nil
})
}
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.appservice.CertificateOrder;
import com.pulumi.azure.appservice.CertificateOrderArgs;
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 example = new ResourceGroup("example", ResourceGroupArgs.builder()
.name("example-resources")
.location("West Europe")
.build());
var exampleCertificateOrder = new CertificateOrder("exampleCertificateOrder", CertificateOrderArgs.builder()
.name("example-cert-order")
.resourceGroupName(example.name())
.location("global")
.distinguishedName("CN=example.com")
.productType("Standard")
.build());
}
}
resources:
example:
type: azure:core:ResourceGroup
properties:
name: example-resources
location: West Europe
exampleCertificateOrder:
type: azure:appservice:CertificateOrder
name: example
properties:
name: example-cert-order
resourceGroupName: ${example.name}
location: global
distinguishedName: CN=example.com
productType: Standard

Import

App Service Certificate Orders can be imported using the resource id, e.g.

$ pulumi import azure:appservice/certificateOrder:CertificateOrder example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.CertificateRegistration/certificateOrders/certificateorder1

Properties

Link copied to clipboard

Reasons why App Service Certificate is not renewable at the current moment.

Link copied to clipboard
val autoRenew: Output<Boolean>?

true if the certificate should be automatically renewed when it expires; otherwise, false. Defaults to true.

Link copied to clipboard

State of the Key Vault secret. A certificates block as defined below.

Link copied to clipboard
val csr: Output<String>

Last CSR that was created for this order.

Link copied to clipboard

The Distinguished Name for the App Service Certificate Order.

Link copied to clipboard

Domain verification token.

Link copied to clipboard
val expirationTime: Output<String>

Certificate expiration time.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard

Certificate thumbprint intermediate certificate.

Link copied to clipboard

Whether the private key is external or not.

Link copied to clipboard
val keySize: Output<Int>?

Certificate key size. Defaults to 2048.

Link copied to clipboard
val location: Output<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.

Link copied to clipboard
val name: Output<String>

Specifies the name of the certificate. Changing this forces a new resource to be created.

Link copied to clipboard
val productType: Output<String>?

Certificate product type, such as Standard or WildCard. Defaults to Standard.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

The name of the resource group in which to create the certificate. Changing this forces a new resource to be created.

Link copied to clipboard
val rootThumbprint: Output<String>

Certificate thumbprint for root certificate.

Link copied to clipboard

Certificate thumbprint for signed certificate.

Link copied to clipboard
val status: Output<String>

Current order status.

Link copied to clipboard
val tags: Output<Map<String, String>>?

(Optional) A mapping of tags to assign to the resource.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val validityInYears: Output<Int>?

Duration in years (must be between 1 and 3). Defaults to 1.