Certificate

class Certificate : KotlinCustomResource

SSL certificate for an app. API Version: 2020-12-01.

Example Usage

Create Or Update Certificate

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var certificate = new AzureNative.Web.Certificate("certificate", new()
{
HostNames = new[]
{
"ServerCert",
},
Location = "East US",
Name = "testc6282",
Password = "<password>",
ResourceGroupName = "testrg123",
});
});
package main
import (
web "github.com/pulumi/pulumi-azure-native-sdk/web"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := web.NewCertificate(ctx, "certificate", &web.CertificateArgs{
HostNames: pulumi.StringArray{
pulumi.String("ServerCert"),
},
Location: pulumi.String("East US"),
Name: pulumi.String("testc6282"),
Password: pulumi.String("<password>"),
ResourceGroupName: pulumi.String("testrg123"),
})
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.azurenative.web.Certificate;
import com.pulumi.azurenative.web.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 certificate = new Certificate("certificate", CertificateArgs.builder()
.hostNames("ServerCert")
.location("East US")
.name("testc6282")
.password("<password>")
.resourceGroupName("testrg123")
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:web:Certificate testc6282 /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/testrg123/providers/Microsoft.Web/certificates/testc6282

Properties

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

CNAME of the certificate to be issued via free certificate

Link copied to clipboard
val cerBlob: Output<String>

Raw bytes of .cer file

Link copied to clipboard

Method of domain validation for free cert

Link copied to clipboard
val expirationDate: Output<String>

Certificate expiration date.

Link copied to clipboard
val friendlyName: Output<String>

Friendly name of the certificate.

Link copied to clipboard

Specification for the App Service Environment to use for the certificate.

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

Host names the certificate applies to.

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

Certificate issue Date.

Link copied to clipboard
val issuer: Output<String>

Certificate issuer.

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

Key Vault Csm resource Id.

Link copied to clipboard

Key Vault secret name.

Link copied to clipboard

Status of the Key Vault secret.

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

Kind of resource.

Link copied to clipboard
val location: Output<String>

Resource Location.

Link copied to clipboard
val name: Output<String>

Resource Name.

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

Pfx blob.

Link copied to clipboard
val publicKeyHash: Output<String>

Public key hash.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val selfLink: Output<String>

Self link.

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

Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".

Link copied to clipboard
val siteName: Output<String>

App name.

Link copied to clipboard
val subjectName: Output<String>

Subject name of the certificate.

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

Resource tags.

Link copied to clipboard
val thumbprint: Output<String>

Certificate thumbprint.

Link copied to clipboard
val type: Output<String>

Resource type.

Link copied to clipboard
val urn: Output<String>
Link copied to clipboard
val valid: Output<Boolean>

Is the certificate valid?.