1. Packages
  2. Azure Native
  3. API Docs
  4. certificateregistration
  5. AppServiceCertificateOrderCertificate
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi

azure-native.certificateregistration.AppServiceCertificateOrderCertificate

Explore with Pulumi AI

azure-native logo
This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi

    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:

    CertificateOrderName string
    Name of the certificate order.
    ResourceGroupName string
    Name of the resource group to which the resource belongs.
    KeyVaultId string
    Key Vault resource Id.
    KeyVaultSecretName string
    Key Vault secret name.
    Kind string
    Kind of resource.
    Location string
    Resource Location.
    Name string
    Name of the certificate.
    Tags Dictionary<string, string>
    Resource tags.
    CertificateOrderName string
    Name of the certificate order.
    ResourceGroupName string
    Name of the resource group to which the resource belongs.
    KeyVaultId string
    Key Vault resource Id.
    KeyVaultSecretName string
    Key Vault secret name.
    Kind string
    Kind of resource.
    Location string
    Resource Location.
    Name string
    Name of the certificate.
    Tags map[string]string
    Resource tags.
    certificateOrderName String
    Name of the certificate order.
    resourceGroupName String
    Name of the resource group to which the resource belongs.
    keyVaultId String
    Key Vault resource Id.
    keyVaultSecretName String
    Key Vault secret name.
    kind String
    Kind of resource.
    location String
    Resource Location.
    name String
    Name of the certificate.
    tags Map<String,String>
    Resource tags.
    certificateOrderName string
    Name of the certificate order.
    resourceGroupName string
    Name of the resource group to which the resource belongs.
    keyVaultId string
    Key Vault resource Id.
    keyVaultSecretName string
    Key Vault secret name.
    kind string
    Kind of resource.
    location string
    Resource Location.
    name string
    Name of the certificate.
    tags {[key: string]: string}
    Resource tags.
    certificate_order_name str
    Name of the certificate order.
    resource_group_name str
    Name of the resource group to which the resource belongs.
    key_vault_id str
    Key Vault resource Id.
    key_vault_secret_name str
    Key Vault secret name.
    kind str
    Kind of resource.
    location str
    Resource Location.
    name str
    Name of the certificate.
    tags Mapping[str, str]
    Resource tags.
    certificateOrderName String
    Name of the certificate order.
    resourceGroupName String
    Name of the resource group to which the resource belongs.
    keyVaultId String
    Key Vault resource Id.
    keyVaultSecretName String
    Key Vault secret name.
    kind String
    Kind of resource.
    location String
    Resource Location.
    name String
    Name of the certificate.
    tags 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.
    ProvisioningState string
    Status of the Key Vault secret.
    Type string
    Resource type.
    Id string
    The provider-assigned unique ID for this managed resource.
    ProvisioningState string
    Status of the Key Vault secret.
    Type string
    Resource type.
    id String
    The provider-assigned unique ID for this managed resource.
    provisioningState String
    Status of the Key Vault secret.
    type String
    Resource type.
    id string
    The provider-assigned unique ID for this managed resource.
    provisioningState 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.
    provisioningState 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
    azure-native logo
    This is the latest version of Azure Native. Use the Azure Native v1 docs if using the v1 version of this package.
    Azure Native v2.75.0 published on Saturday, Nov 30, 2024 by Pulumi