Certificate

class Certificate : KotlinCustomResource

Manages an App Service certificate.

Example Usage

This example provisions an App Service Certificate from a Local File.

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.Certificate;
import com.pulumi.azure.appservice.CertificateArgs;
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 exampleResourceGroup = new ResourceGroup("exampleResourceGroup", ResourceGroupArgs.builder()
.location("West Europe")
.build());
var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()
.resourceGroupName(exampleResourceGroup.name())
.location(exampleResourceGroup.location())
.pfxBlob(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("certificate.pfx"))))
.password("password123!")
.build());
}
}

Import

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

$ pulumi import azure:appservice/certificate:Certificate example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.Web/certificates/certificate1

Properties

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

The ID of the associated App Service plan. Must be specified when the certificate is used inside an App Service Environment hosted App Service. Changing this forces a new resource to be created.

Link copied to clipboard
val expirationDate: Output<String>

The expiration date for the certificate.

Link copied to clipboard
val friendlyName: Output<String>

The friendly name of the certificate.

Link copied to clipboard

The ID of the App Service Environment where the certificate is in use.

Link copied to clipboard
val hostNames: Output<List<String>>

List of host names the certificate applies to.

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

The issue date for the certificate.

Link copied to clipboard
val issuer: Output<String>

The name of the certificate issuer.

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

The ID of the Key Vault secret. Changing this forces a new resource to be created.

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.

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 password: Output<String>?

The password to access the certificate's private key. Changing this forces a new resource to be created.

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

The base64-encoded contents of the certificate. Changing this forces a new resource to be created.

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 subjectName: Output<String>

The subject name of the certificate.

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

A mapping of tags to assign to the resource.

Link copied to clipboard
val thumbprint: Output<String>

The thumbprint for the certificate.

Link copied to clipboard
val urn: Output<String>