azure-native.web.Certificate
Explore with Pulumi AI
SSL certificate for an app. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-12-01.
Other available API versions: 2015-08-01, 2016-03-01, 2020-10-01, 2023-01-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 (
"github.com/pulumi/pulumi-azure-native-sdk/web/v2"
"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 pulumi
import pulumi_azure_native as azure_native
certificate = azure_native.web.Certificate("certificate",
host_names=["ServerCert"],
location="East US",
name="testc6282",
password="<password>",
resource_group_name="testrg123")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const certificate = new azure_native.web.Certificate("certificate", {
hostNames: ["ServerCert"],
location: "East US",
name: "testc6282",
password: "<password>",
resourceGroupName: "testrg123",
});
resources:
certificate:
type: azure-native:web:Certificate
properties:
hostNames:
- ServerCert
location: East US
name: testc6282
password: <password>
resourceGroupName: testrg123
Create Certificate Resource
new Certificate(name: string, args: CertificateArgs, opts?: CustomResourceOptions);
@overload
def Certificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
canonical_name: Optional[str] = None,
domain_validation_method: Optional[str] = None,
host_names: Optional[Sequence[str]] = None,
key_vault_id: Optional[str] = None,
key_vault_secret_name: Optional[str] = None,
kind: Optional[str] = None,
location: Optional[str] = None,
name: Optional[str] = None,
password: Optional[str] = None,
pfx_blob: Optional[str] = None,
resource_group_name: Optional[str] = None,
server_farm_id: Optional[str] = None,
tags: Optional[Mapping[str, str]] = None)
@overload
def Certificate(resource_name: str,
args: CertificateArgs,
opts: Optional[ResourceOptions] = None)
func NewCertificate(ctx *Context, name string, args CertificateArgs, opts ...ResourceOption) (*Certificate, error)
public Certificate(string name, CertificateArgs args, CustomResourceOptions? opts = null)
public Certificate(String name, CertificateArgs args)
public Certificate(String name, CertificateArgs args, CustomResourceOptions options)
type: azure-native:web:Certificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args CertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Certificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
The Certificate resource accepts the following input properties:
- Resource
Group stringName Name of the resource group to which the resource belongs.
- Canonical
Name string CNAME of the certificate to be issued via free certificate
- Domain
Validation stringMethod Method of domain validation for free cert
- Host
Names List<string> Host names the certificate applies to.
- Key
Vault stringId Key Vault Csm resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Kind string
Kind of resource.
- Location string
Resource Location.
- Name string
Name of the certificate.
- Password string
Certificate password.
- Pfx
Blob string Pfx blob.
- Server
Farm stringId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- Dictionary<string, string>
Resource tags.
- Resource
Group stringName Name of the resource group to which the resource belongs.
- Canonical
Name string CNAME of the certificate to be issued via free certificate
- Domain
Validation stringMethod Method of domain validation for free cert
- Host
Names []string Host names the certificate applies to.
- Key
Vault stringId Key Vault Csm resource Id.
- Key
Vault stringSecret Name Key Vault secret name.
- Kind string
Kind of resource.
- Location string
Resource Location.
- Name string
Name of the certificate.
- Password string
Certificate password.
- Pfx
Blob string Pfx blob.
- Server
Farm stringId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- map[string]string
Resource tags.
- resource
Group StringName Name of the resource group to which the resource belongs.
- canonical
Name String CNAME of the certificate to be issued via free certificate
- domain
Validation StringMethod Method of domain validation for free cert
- host
Names List<String> Host names the certificate applies to.
- key
Vault StringId Key Vault Csm resource Id.
- key
Vault StringSecret Name Key Vault secret name.
- kind String
Kind of resource.
- location String
Resource Location.
- name String
Name of the certificate.
- password String
Certificate password.
- pfx
Blob String Pfx blob.
- server
Farm StringId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- Map<String,String>
Resource tags.
- resource
Group stringName Name of the resource group to which the resource belongs.
- canonical
Name string CNAME of the certificate to be issued via free certificate
- domain
Validation stringMethod Method of domain validation for free cert
- host
Names string[] Host names the certificate applies to.
- key
Vault stringId Key Vault Csm resource Id.
- key
Vault stringSecret Name Key Vault secret name.
- kind string
Kind of resource.
- location string
Resource Location.
- name string
Name of the certificate.
- password string
Certificate password.
- pfx
Blob string Pfx blob.
- server
Farm stringId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- {[key: string]: string}
Resource tags.
- resource_
group_ strname Name of the resource group to which the resource belongs.
- canonical_
name str CNAME of the certificate to be issued via free certificate
- domain_
validation_ strmethod Method of domain validation for free cert
- host_
names Sequence[str] Host names the certificate applies to.
- key_
vault_ strid Key Vault Csm resource Id.
- key_
vault_ strsecret_ name Key Vault secret name.
- kind str
Kind of resource.
- location str
Resource Location.
- name str
Name of the certificate.
- password str
Certificate password.
- pfx_
blob str Pfx blob.
- server_
farm_ strid Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- Mapping[str, str]
Resource tags.
- resource
Group StringName Name of the resource group to which the resource belongs.
- canonical
Name String CNAME of the certificate to be issued via free certificate
- domain
Validation StringMethod Method of domain validation for free cert
- host
Names List<String> Host names the certificate applies to.
- key
Vault StringId Key Vault Csm resource Id.
- key
Vault StringSecret Name Key Vault secret name.
- kind String
Kind of resource.
- location String
Resource Location.
- name String
Name of the certificate.
- password String
Certificate password.
- pfx
Blob String Pfx blob.
- server
Farm StringId Resource ID of the associated App Service plan, formatted as: "/subscriptions/{subscriptionID}/resourceGroups/{groupName}/providers/Microsoft.Web/serverfarms/{appServicePlanName}".
- Map<String>
Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the Certificate resource produces the following output properties:
- Cer
Blob string Raw bytes of .cer file
- Expiration
Date string Certificate expiration date.
- Friendly
Name string Friendly name of the certificate.
- Hosting
Environment Pulumi.Profile Azure Native. Web. Outputs. Hosting Environment Profile Response Specification for the App Service Environment to use for the certificate.
- Id string
The provider-assigned unique ID for this managed resource.
- Issue
Date string Certificate issue Date.
- Issuer string
Certificate issuer.
- Key
Vault stringSecret Status Status of the Key Vault secret.
- Public
Key stringHash Public key hash.
- Self
Link string Self link.
- Site
Name string App name.
- Subject
Name string Subject name of the certificate.
- Thumbprint string
Certificate thumbprint.
- Type string
Resource type.
- Valid bool
Is the certificate valid?.
- Cer
Blob string Raw bytes of .cer file
- Expiration
Date string Certificate expiration date.
- Friendly
Name string Friendly name of the certificate.
- Hosting
Environment HostingProfile Environment Profile Response Specification for the App Service Environment to use for the certificate.
- Id string
The provider-assigned unique ID for this managed resource.
- Issue
Date string Certificate issue Date.
- Issuer string
Certificate issuer.
- Key
Vault stringSecret Status Status of the Key Vault secret.
- Public
Key stringHash Public key hash.
- Self
Link string Self link.
- Site
Name string App name.
- Subject
Name string Subject name of the certificate.
- Thumbprint string
Certificate thumbprint.
- Type string
Resource type.
- Valid bool
Is the certificate valid?.
- cer
Blob String Raw bytes of .cer file
- expiration
Date String Certificate expiration date.
- friendly
Name String Friendly name of the certificate.
- hosting
Environment HostingProfile Environment Profile Response Specification for the App Service Environment to use for the certificate.
- id String
The provider-assigned unique ID for this managed resource.
- issue
Date String Certificate issue Date.
- issuer String
Certificate issuer.
- key
Vault StringSecret Status Status of the Key Vault secret.
- public
Key StringHash Public key hash.
- self
Link String Self link.
- site
Name String App name.
- subject
Name String Subject name of the certificate.
- thumbprint String
Certificate thumbprint.
- type String
Resource type.
- valid Boolean
Is the certificate valid?.
- cer
Blob string Raw bytes of .cer file
- expiration
Date string Certificate expiration date.
- friendly
Name string Friendly name of the certificate.
- hosting
Environment HostingProfile Environment Profile Response Specification for the App Service Environment to use for the certificate.
- id string
The provider-assigned unique ID for this managed resource.
- issue
Date string Certificate issue Date.
- issuer string
Certificate issuer.
- key
Vault stringSecret Status Status of the Key Vault secret.
- public
Key stringHash Public key hash.
- self
Link string Self link.
- site
Name string App name.
- subject
Name string Subject name of the certificate.
- thumbprint string
Certificate thumbprint.
- type string
Resource type.
- valid boolean
Is the certificate valid?.
- cer_
blob str Raw bytes of .cer file
- expiration_
date str Certificate expiration date.
- friendly_
name str Friendly name of the certificate.
- hosting_
environment_ Hostingprofile Environment Profile Response Specification for the App Service Environment to use for the certificate.
- id str
The provider-assigned unique ID for this managed resource.
- issue_
date str Certificate issue Date.
- issuer str
Certificate issuer.
- key_
vault_ strsecret_ status Status of the Key Vault secret.
- public_
key_ strhash Public key hash.
- self_
link str Self link.
- site_
name str App name.
- subject_
name str Subject name of the certificate.
- thumbprint str
Certificate thumbprint.
- type str
Resource type.
- valid bool
Is the certificate valid?.
- cer
Blob String Raw bytes of .cer file
- expiration
Date String Certificate expiration date.
- friendly
Name String Friendly name of the certificate.
- hosting
Environment Property MapProfile Specification for the App Service Environment to use for the certificate.
- id String
The provider-assigned unique ID for this managed resource.
- issue
Date String Certificate issue Date.
- issuer String
Certificate issuer.
- key
Vault StringSecret Status Status of the Key Vault secret.
- public
Key StringHash Public key hash.
- self
Link String Self link.
- site
Name String App name.
- subject
Name String Subject name of the certificate.
- thumbprint String
Certificate thumbprint.
- type String
Resource type.
- valid Boolean
Is the certificate valid?.
Supporting Types
HostingEnvironmentProfileResponse, HostingEnvironmentProfileResponseArgs
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:web:Certificate testc6282 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/certificates/{name}
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0