azure-native.certificateregistration.AppServiceCertificateOrderCertificate
Explore with Pulumi AI
Key Vault container ARM resource for a certificate that is purchased through Azure. Azure REST API version: 2022-09-01. Prior API version in Azure Native 1.x: 2020-10-01.
Other available API versions: 2020-10-01, 2023-01-01, 2023-12-01, 2024-04-01.
Example Usage
Create Certificate
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var appServiceCertificateOrderCertificate = new AzureNative.CertificateRegistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificate", new()
{
CertificateOrderName = "SampleCertificateOrderName",
KeyVaultId = "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName",
KeyVaultSecretName = "SampleSecretName1",
Location = "Global",
Name = "SampleCertName1",
ResourceGroupName = "testrg123",
});
});
package main
import (
certificateregistration "github.com/pulumi/pulumi-azure-native-sdk/certificateregistration/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := certificateregistration.NewAppServiceCertificateOrderCertificate(ctx, "appServiceCertificateOrderCertificate", &certificateregistration.AppServiceCertificateOrderCertificateArgs{
CertificateOrderName: pulumi.String("SampleCertificateOrderName"),
KeyVaultId: pulumi.String("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName"),
KeyVaultSecretName: pulumi.String("SampleSecretName1"),
Location: pulumi.String("Global"),
Name: pulumi.String("SampleCertName1"),
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.certificateregistration.AppServiceCertificateOrderCertificate;
import com.pulumi.azurenative.certificateregistration.AppServiceCertificateOrderCertificateArgs;
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 appServiceCertificateOrderCertificate = new AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificate", AppServiceCertificateOrderCertificateArgs.builder()
.certificateOrderName("SampleCertificateOrderName")
.keyVaultId("/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName")
.keyVaultSecretName("SampleSecretName1")
.location("Global")
.name("SampleCertName1")
.resourceGroupName("testrg123")
.build());
}
}
import pulumi
import pulumi_azure_native as azure_native
app_service_certificate_order_certificate = azure_native.certificateregistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificate",
certificate_order_name="SampleCertificateOrderName",
key_vault_id="/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName",
key_vault_secret_name="SampleSecretName1",
location="Global",
name="SampleCertName1",
resource_group_name="testrg123")
import * as pulumi from "@pulumi/pulumi";
import * as azure_native from "@pulumi/azure-native";
const appServiceCertificateOrderCertificate = new azure_native.certificateregistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificate", {
certificateOrderName: "SampleCertificateOrderName",
keyVaultId: "/subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName",
keyVaultSecretName: "SampleSecretName1",
location: "Global",
name: "SampleCertName1",
resourceGroupName: "testrg123",
});
resources:
appServiceCertificateOrderCertificate:
type: azure-native:certificateregistration:AppServiceCertificateOrderCertificate
properties:
certificateOrderName: SampleCertificateOrderName
keyVaultId: /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourcegroups/testrg123/providers/microsoft.keyvault/vaults/SamplevaultName
keyVaultSecretName: SampleSecretName1
location: Global
name: SampleCertName1
resourceGroupName: testrg123
Create AppServiceCertificateOrderCertificate Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new AppServiceCertificateOrderCertificate(name: string, args: AppServiceCertificateOrderCertificateArgs, opts?: CustomResourceOptions);
@overload
def AppServiceCertificateOrderCertificate(resource_name: str,
args: AppServiceCertificateOrderCertificateArgs,
opts: Optional[ResourceOptions] = None)
@overload
def AppServiceCertificateOrderCertificate(resource_name: str,
opts: Optional[ResourceOptions] = None,
certificate_order_name: Optional[str] = None,
resource_group_name: Optional[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,
tags: Optional[Mapping[str, str]] = None)
func NewAppServiceCertificateOrderCertificate(ctx *Context, name string, args AppServiceCertificateOrderCertificateArgs, opts ...ResourceOption) (*AppServiceCertificateOrderCertificate, error)
public AppServiceCertificateOrderCertificate(string name, AppServiceCertificateOrderCertificateArgs args, CustomResourceOptions? opts = null)
public AppServiceCertificateOrderCertificate(String name, AppServiceCertificateOrderCertificateArgs args)
public AppServiceCertificateOrderCertificate(String name, AppServiceCertificateOrderCertificateArgs args, CustomResourceOptions options)
type: azure-native:certificateregistration:AppServiceCertificateOrderCertificate
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args AppServiceCertificateOrderCertificateArgs
- 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 AppServiceCertificateOrderCertificateArgs
- 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 AppServiceCertificateOrderCertificateArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args AppServiceCertificateOrderCertificateArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args AppServiceCertificateOrderCertificateArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var appServiceCertificateOrderCertificateResource = new AzureNative.CertificateRegistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificateResource", new()
{
CertificateOrderName = "string",
ResourceGroupName = "string",
KeyVaultId = "string",
KeyVaultSecretName = "string",
Kind = "string",
Location = "string",
Name = "string",
Tags =
{
{ "string", "string" },
},
});
example, err := certificateregistration.NewAppServiceCertificateOrderCertificate(ctx, "appServiceCertificateOrderCertificateResource", &certificateregistration.AppServiceCertificateOrderCertificateArgs{
CertificateOrderName: pulumi.String("string"),
ResourceGroupName: pulumi.String("string"),
KeyVaultId: pulumi.String("string"),
KeyVaultSecretName: pulumi.String("string"),
Kind: pulumi.String("string"),
Location: pulumi.String("string"),
Name: pulumi.String("string"),
Tags: pulumi.StringMap{
"string": pulumi.String("string"),
},
})
var appServiceCertificateOrderCertificateResource = new AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificateResource", AppServiceCertificateOrderCertificateArgs.builder()
.certificateOrderName("string")
.resourceGroupName("string")
.keyVaultId("string")
.keyVaultSecretName("string")
.kind("string")
.location("string")
.name("string")
.tags(Map.of("string", "string"))
.build());
app_service_certificate_order_certificate_resource = azure_native.certificateregistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificateResource",
certificate_order_name="string",
resource_group_name="string",
key_vault_id="string",
key_vault_secret_name="string",
kind="string",
location="string",
name="string",
tags={
"string": "string",
})
const appServiceCertificateOrderCertificateResource = new azure_native.certificateregistration.AppServiceCertificateOrderCertificate("appServiceCertificateOrderCertificateResource", {
certificateOrderName: "string",
resourceGroupName: "string",
keyVaultId: "string",
keyVaultSecretName: "string",
kind: "string",
location: "string",
name: "string",
tags: {
string: "string",
},
});
type: azure-native:certificateregistration:AppServiceCertificateOrderCertificate
properties:
certificateOrderName: string
keyVaultId: string
keyVaultSecretName: string
kind: string
location: string
name: string
resourceGroupName: string
tags:
string: string
AppServiceCertificateOrderCertificate Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The AppServiceCertificateOrderCertificate resource accepts the following input properties:
- Certificate
Order stringName - Name of the certificate order.
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Key
Vault stringId - Key Vault 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.
- Dictionary<string, string>
- Resource tags.
- Certificate
Order stringName - Name of the certificate order.
- Resource
Group stringName - Name of the resource group to which the resource belongs.
- Key
Vault stringId - Key Vault 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.
- map[string]string
- Resource tags.
- certificate
Order StringName - Name of the certificate order.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- key
Vault StringId - Key Vault 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.
- Map<String,String>
- Resource tags.
- certificate
Order stringName - Name of the certificate order.
- resource
Group stringName - Name of the resource group to which the resource belongs.
- key
Vault stringId - Key Vault 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.
- {[key: string]: string}
- Resource tags.
- certificate_
order_ strname - Name of the certificate order.
- resource_
group_ strname - Name of the resource group to which the resource belongs.
- key_
vault_ strid - Key Vault 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.
- Mapping[str, str]
- Resource tags.
- certificate
Order StringName - Name of the certificate order.
- resource
Group StringName - Name of the resource group to which the resource belongs.
- key
Vault StringId - Key Vault 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.
- Map<String>
- Resource tags.
Outputs
All input properties are implicitly available as output properties. Additionally, the AppServiceCertificateOrderCertificate resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Status of the Key Vault secret.
- Type string
- Resource type.
- Id string
- The provider-assigned unique ID for this managed resource.
- Provisioning
State string - Status of the Key Vault secret.
- Type string
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Status of the Key Vault secret.
- type String
- Resource type.
- id string
- The provider-assigned unique ID for this managed resource.
- provisioning
State string - Status of the Key Vault secret.
- type string
- Resource type.
- id str
- The provider-assigned unique ID for this managed resource.
- provisioning_
state str - Status of the Key Vault secret.
- type str
- Resource type.
- id String
- The provider-assigned unique ID for this managed resource.
- provisioning
State String - Status of the Key Vault secret.
- type String
- Resource type.
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:certificateregistration:AppServiceCertificateOrderCertificate SampleCertName1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.CertificateRegistration/certificateOrders/{certificateOrderName}/certificates/{name}
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Native pulumi/pulumi-azure-native
- License
- Apache-2.0