CertificateArgs

data class CertificateArgs(val appServicePlanId: Output<String>? = null, val keyVaultSecretId: Output<String>? = null, val location: Output<String>? = null, val name: Output<String>? = null, val password: Output<String>? = null, val pfxBlob: Output<String>? = null, val resourceGroupName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<CertificateArgs>

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

Constructors

Link copied to clipboard
fun CertificateArgs(appServicePlanId: Output<String>? = null, keyVaultSecretId: Output<String>? = null, location: Output<String>? = null, name: Output<String>? = null, password: Output<String>? = null, pfxBlob: Output<String>? = null, resourceGroupName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): CertificateArgs

Properties

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

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 keyVaultSecretId: Output<String>? = null

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

Link copied to clipboard
val location: Output<String>? = null

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>? = null

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

Link copied to clipboard
val password: Output<String>? = null

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>? = null

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

Link copied to clipboard
val resourceGroupName: Output<String>? = null

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 tags: Output<Map<String, String>>? = null

A mapping of tags to assign to the resource.