Azure Classic

v5.19.0 published on Friday, Sep 16, 2022 by Pulumi

FrontdoorSecret

Import

Frontdoor Secrets can be imported using the resource id, e.g.

 $ pulumi import azure:cdn/frontdoorSecret:FrontdoorSecret example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/secrets/secrets1

Example Usage

using System;
using System.Collections.Generic;
using System.IO;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;

	private static string ReadFileBase64(string path) {
		return Convert.ToBase64String(Encoding.UTF8.GetBytes(File.ReadAllText(path)))
	}

return await Deployment.RunAsync(() => 
{
    var current = Azure.Core.GetClientConfig.Invoke();

    var frontdoor = AzureAD.GetServicePrincipal.Invoke(new()
    {
        DisplayName = "Microsoft.AzureFrontDoor-Cdn",
    });

    var exampleKeyVault = new Azure.KeyVault.KeyVault("exampleKeyVault", new()
    {
        Location = azurerm_resource_group.Example.Location,
        ResourceGroupName = azurerm_resource_group.Example.Name,
        TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
        SkuName = "premium",
        SoftDeleteRetentionDays = 7,
        NetworkAcls = new Azure.KeyVault.Inputs.KeyVaultNetworkAclsArgs
        {
            DefaultAction = "Deny",
            Bypass = "AzureServices",
            IpRules = new[]
            {
                "10.0.0.0/24",
            },
        },
        AccessPolicies = new[]
        {
            new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
            {
                TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
                ObjectId = frontdoor.Apply(getServicePrincipalResult => getServicePrincipalResult.ObjectId),
                SecretPermissions = new[]
                {
                    "Get",
                },
            },
            new Azure.KeyVault.Inputs.KeyVaultAccessPolicyArgs
            {
                TenantId = current.Apply(getClientConfigResult => getClientConfigResult.TenantId),
                ObjectId = current.Apply(getClientConfigResult => getClientConfigResult.ObjectId),
                CertificatePermissions = new[]
                {
                    "Get",
                    "Import",
                    "Delete",
                    "Purge",
                },
                SecretPermissions = new[]
                {
                    "Get",
                },
            },
        },
    });

    var exampleCertificate = new Azure.KeyVault.Certificate("exampleCertificate", new()
    {
        KeyVaultId = azurerm_key_vault.Test.Id,
        KeyVaultCertificate = new Azure.KeyVault.Inputs.CertificateCertificateArgs
        {
            Contents = ReadFileBase64("my-certificate.pfx"),
        },
    });

    var exampleFrontdoorSecret = new Azure.Cdn.FrontdoorSecret("exampleFrontdoorSecret", new()
    {
        CdnFrontdoorProfileId = azurerm_cdn_frontdoor_profile.Test.Id,
        Secret = new Azure.Cdn.Inputs.FrontdoorSecretSecretArgs
        {
            CustomerCertificates = new[]
            {
                new Azure.Cdn.Inputs.FrontdoorSecretSecretCustomerCertificateArgs
                {
                    KeyVaultCertificateId = azurerm_key_vault_certificate.Test.Id,
                },
            },
        },
    });

});
package main

import (
	"encoding/base64"
	"io/ioutil"

	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/cdn"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v5/go/azure/keyvault"
	"github.com/pulumi/pulumi-azuread/sdk/v4/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func filebase64OrPanic(path string) pulumi.StringPtrInput {
	if fileData, err := ioutil.ReadFile(path); err == nil {
		return pulumi.String(base64.StdEncoding.EncodeToString(fileData[:]))
	} else {
		panic(err.Error())
	}
}

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		current, err := core.GetClientConfig(ctx, nil, nil)
		if err != nil {
			return err
		}
		frontdoor, err := azuread.LookupServicePrincipal(ctx, &GetServicePrincipalArgs{
			DisplayName: pulumi.StringRef("Microsoft.AzureFrontDoor-Cdn"),
		}, nil)
		if err != nil {
			return err
		}
		_, err = keyvault.NewKeyVault(ctx, "exampleKeyVault", &keyvault.KeyVaultArgs{
			Location:                pulumi.Any(azurerm_resource_group.Example.Location),
			ResourceGroupName:       pulumi.Any(azurerm_resource_group.Example.Name),
			TenantId:                pulumi.String(current.TenantId),
			SkuName:                 pulumi.String("premium"),
			SoftDeleteRetentionDays: pulumi.Int(7),
			NetworkAcls: &keyvault.KeyVaultNetworkAclsArgs{
				DefaultAction: pulumi.String("Deny"),
				Bypass:        pulumi.String("AzureServices"),
				IpRules: pulumi.StringArray{
					pulumi.String("10.0.0.0/24"),
				},
			},
			AccessPolicies: keyvault.KeyVaultAccessPolicyArray{
				&keyvault.KeyVaultAccessPolicyArgs{
					TenantId: pulumi.String(current.TenantId),
					ObjectId: pulumi.String(frontdoor.ObjectId),
					SecretPermissions: pulumi.StringArray{
						pulumi.String("Get"),
					},
				},
				&keyvault.KeyVaultAccessPolicyArgs{
					TenantId: pulumi.String(current.TenantId),
					ObjectId: pulumi.String(current.ObjectId),
					CertificatePermissions: pulumi.StringArray{
						pulumi.String("Get"),
						pulumi.String("Import"),
						pulumi.String("Delete"),
						pulumi.String("Purge"),
					},
					SecretPermissions: pulumi.StringArray{
						pulumi.String("Get"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = keyvault.NewCertificate(ctx, "exampleCertificate", &keyvault.CertificateArgs{
			KeyVaultId: pulumi.Any(azurerm_key_vault.Test.Id),
			Certificate: &keyvault.CertificateCertificateArgs{
				Contents: filebase64OrPanic("my-certificate.pfx"),
			},
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewFrontdoorSecret(ctx, "exampleFrontdoorSecret", &cdn.FrontdoorSecretArgs{
			CdnFrontdoorProfileId: pulumi.Any(azurerm_cdn_frontdoor_profile.Test.Id),
			Secret: &cdn.FrontdoorSecretSecretArgs{
				CustomerCertificates: cdn.FrontdoorSecretSecretCustomerCertificateArray{
					&cdn.FrontdoorSecretSecretCustomerCertificateArgs{
						KeyVaultCertificateId: pulumi.Any(azurerm_key_vault_certificate.Test.Id),
					},
				},
			},
		})
		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.azure.core.CoreFunctions;
import com.pulumi.azuread.AzureadFunctions;
import com.pulumi.azuread.inputs.GetServicePrincipalArgs;
import com.pulumi.azure.keyvault.KeyVault;
import com.pulumi.azure.keyvault.KeyVaultArgs;
import com.pulumi.azure.keyvault.inputs.KeyVaultNetworkAclsArgs;
import com.pulumi.azure.keyvault.inputs.KeyVaultAccessPolicyArgs;
import com.pulumi.azure.keyvault.Certificate;
import com.pulumi.azure.keyvault.CertificateArgs;
import com.pulumi.azure.keyvault.inputs.CertificateCertificateArgs;
import com.pulumi.azure.cdn.FrontdoorSecret;
import com.pulumi.azure.cdn.FrontdoorSecretArgs;
import com.pulumi.azure.cdn.inputs.FrontdoorSecretSecretArgs;
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) {
        final var current = CoreFunctions.getClientConfig();

        final var frontdoor = AzureadFunctions.getServicePrincipal(GetServicePrincipalArgs.builder()
            .displayName("Microsoft.AzureFrontDoor-Cdn")
            .build());

        var exampleKeyVault = new KeyVault("exampleKeyVault", KeyVaultArgs.builder()        
            .location(azurerm_resource_group.example().location())
            .resourceGroupName(azurerm_resource_group.example().name())
            .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
            .skuName("premium")
            .softDeleteRetentionDays(7)
            .networkAcls(KeyVaultNetworkAclsArgs.builder()
                .defaultAction("Deny")
                .bypass("AzureServices")
                .ipRules("10.0.0.0/24")
                .build())
            .accessPolicies(            
                KeyVaultAccessPolicyArgs.builder()
                    .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
                    .objectId(frontdoor.applyValue(getServicePrincipalResult -> getServicePrincipalResult.objectId()))
                    .secretPermissions("Get")
                    .build(),
                KeyVaultAccessPolicyArgs.builder()
                    .tenantId(current.applyValue(getClientConfigResult -> getClientConfigResult.tenantId()))
                    .objectId(current.applyValue(getClientConfigResult -> getClientConfigResult.objectId()))
                    .certificatePermissions(                    
                        "Get",
                        "Import",
                        "Delete",
                        "Purge")
                    .secretPermissions("Get")
                    .build())
            .build());

        var exampleCertificate = new Certificate("exampleCertificate", CertificateArgs.builder()        
            .keyVaultId(azurerm_key_vault.test().id())
            .certificate(CertificateCertificateArgs.builder()
                .contents(Base64.getEncoder().encodeToString(Files.readAllBytes(Paths.get("my-certificate.pfx"))))
                .build())
            .build());

        var exampleFrontdoorSecret = new FrontdoorSecret("exampleFrontdoorSecret", FrontdoorSecretArgs.builder()        
            .cdnFrontdoorProfileId(azurerm_cdn_frontdoor_profile.test().id())
            .secret(FrontdoorSecretSecretArgs.builder()
                .customerCertificates(FrontdoorSecretSecretCustomerCertificateArgs.builder()
                    .keyVaultCertificateId(azurerm_key_vault_certificate.test().id())
                    .build())
                .build())
            .build());

    }
}
import pulumi
import base64
import pulumi_azure as azure
import pulumi_azuread as azuread

current = azure.core.get_client_config()
frontdoor = azuread.get_service_principal(display_name="Microsoft.AzureFrontDoor-Cdn")
example_key_vault = azure.keyvault.KeyVault("exampleKeyVault",
    location=azurerm_resource_group["example"]["location"],
    resource_group_name=azurerm_resource_group["example"]["name"],
    tenant_id=current.tenant_id,
    sku_name="premium",
    soft_delete_retention_days=7,
    network_acls=azure.keyvault.KeyVaultNetworkAclsArgs(
        default_action="Deny",
        bypass="AzureServices",
        ip_rules=["10.0.0.0/24"],
    ),
    access_policies=[
        azure.keyvault.KeyVaultAccessPolicyArgs(
            tenant_id=current.tenant_id,
            object_id=frontdoor.object_id,
            secret_permissions=["Get"],
        ),
        azure.keyvault.KeyVaultAccessPolicyArgs(
            tenant_id=current.tenant_id,
            object_id=current.object_id,
            certificate_permissions=[
                "Get",
                "Import",
                "Delete",
                "Purge",
            ],
            secret_permissions=["Get"],
        ),
    ])
example_certificate = azure.keyvault.Certificate("exampleCertificate",
    key_vault_id=azurerm_key_vault["test"]["id"],
    certificate=azure.keyvault.CertificateCertificateArgs(
        contents=(lambda path: base64.b64encode(open(path).read().encode()).decode())("my-certificate.pfx"),
    ))
example_frontdoor_secret = azure.cdn.FrontdoorSecret("exampleFrontdoorSecret",
    cdn_frontdoor_profile_id=azurerm_cdn_frontdoor_profile["test"]["id"],
    secret=azure.cdn.FrontdoorSecretSecretArgs(
        customer_certificates=[azure.cdn.FrontdoorSecretSecretCustomerCertificateArgs(
            key_vault_certificate_id=azurerm_key_vault_certificate["test"]["id"],
        )],
    ))
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";
import * as fs from "fs";

const current = azure.core.getClientConfig({});
const frontdoor = azuread.getServicePrincipal({
    displayName: "Microsoft.AzureFrontDoor-Cdn",
});
const exampleKeyVault = new azure.keyvault.KeyVault("exampleKeyVault", {
    location: azurerm_resource_group.example.location,
    resourceGroupName: azurerm_resource_group.example.name,
    tenantId: current.then(current => current.tenantId),
    skuName: "premium",
    softDeleteRetentionDays: 7,
    networkAcls: {
        defaultAction: "Deny",
        bypass: "AzureServices",
        ipRules: ["10.0.0.0/24"],
    },
    accessPolicies: [
        {
            tenantId: current.then(current => current.tenantId),
            objectId: frontdoor.then(frontdoor => frontdoor.objectId),
            secretPermissions: ["Get"],
        },
        {
            tenantId: current.then(current => current.tenantId),
            objectId: current.then(current => current.objectId),
            certificatePermissions: [
                "Get",
                "Import",
                "Delete",
                "Purge",
            ],
            secretPermissions: ["Get"],
        },
    ],
});
const exampleCertificate = new azure.keyvault.Certificate("exampleCertificate", {
    keyVaultId: azurerm_key_vault.test.id,
    certificate: {
        contents: Buffer.from(fs.readFileSync("my-certificate.pfx"), 'binary').toString('base64'),
    },
});
const exampleFrontdoorSecret = new azure.cdn.FrontdoorSecret("exampleFrontdoorSecret", {
    cdnFrontdoorProfileId: azurerm_cdn_frontdoor_profile.test.id,
    secret: {
        customerCertificates: [{
            keyVaultCertificateId: azurerm_key_vault_certificate.test.id,
        }],
    },
});

Coming soon!

Create a FrontdoorSecret Resource

new FrontdoorSecret(name: string, args: FrontdoorSecretArgs, opts?: CustomResourceOptions);
@overload
def FrontdoorSecret(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    cdn_frontdoor_profile_id: Optional[str] = None,
                    name: Optional[str] = None,
                    secret: Optional[FrontdoorSecretSecretArgs] = None)
@overload
def FrontdoorSecret(resource_name: str,
                    args: FrontdoorSecretArgs,
                    opts: Optional[ResourceOptions] = None)
func NewFrontdoorSecret(ctx *Context, name string, args FrontdoorSecretArgs, opts ...ResourceOption) (*FrontdoorSecret, error)
public FrontdoorSecret(string name, FrontdoorSecretArgs args, CustomResourceOptions? opts = null)
public FrontdoorSecret(String name, FrontdoorSecretArgs args)
public FrontdoorSecret(String name, FrontdoorSecretArgs args, CustomResourceOptions options)
type: azure:cdn:FrontdoorSecret
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

name string
The unique name of the resource.
args FrontdoorSecretArgs
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 FrontdoorSecretArgs
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 FrontdoorSecretArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name string
The unique name of the resource.
args FrontdoorSecretArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name String
The unique name of the resource.
args FrontdoorSecretArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

FrontdoorSecret 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 FrontdoorSecret resource accepts the following input properties:

CdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

Secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

Name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

CdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

Secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

Name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId String

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

name String

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

cdn_frontdoor_profile_id str

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

name str

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId String

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

secret Property Map

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

name String

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

Outputs

All input properties are implicitly available as output properties. Additionally, the FrontdoorSecret resource produces the following output properties:

CdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

Id string

The provider-assigned unique ID for this managed resource.

CdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

Id string

The provider-assigned unique ID for this managed resource.

cdnFrontdoorProfileName String

The name of the Frontdoor Profile containing this Frontdoor Secret.

id String

The provider-assigned unique ID for this managed resource.

cdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

id string

The provider-assigned unique ID for this managed resource.

cdn_frontdoor_profile_name str

The name of the Frontdoor Profile containing this Frontdoor Secret.

id str

The provider-assigned unique ID for this managed resource.

cdnFrontdoorProfileName String

The name of the Frontdoor Profile containing this Frontdoor Secret.

id String

The provider-assigned unique ID for this managed resource.

Look up an Existing FrontdoorSecret Resource

Get an existing FrontdoorSecret resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: FrontdoorSecretState, opts?: CustomResourceOptions): FrontdoorSecret
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cdn_frontdoor_profile_id: Optional[str] = None,
        cdn_frontdoor_profile_name: Optional[str] = None,
        name: Optional[str] = None,
        secret: Optional[FrontdoorSecretSecretArgs] = None) -> FrontdoorSecret
func GetFrontdoorSecret(ctx *Context, name string, id IDInput, state *FrontdoorSecretState, opts ...ResourceOption) (*FrontdoorSecret, error)
public static FrontdoorSecret Get(string name, Input<string> id, FrontdoorSecretState? state, CustomResourceOptions? opts = null)
public static FrontdoorSecret get(String name, Output<String> id, FrontdoorSecretState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name
The unique name of the resulting resource.
id
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

CdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

Name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

Secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

CdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

CdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

Name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

Secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId String

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileName String

The name of the Frontdoor Profile containing this Frontdoor Secret.

name String

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId string

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileName string

The name of the Frontdoor Profile containing this Frontdoor Secret.

name string

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

cdn_frontdoor_profile_id str

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

cdn_frontdoor_profile_name str

The name of the Frontdoor Profile containing this Frontdoor Secret.

name str

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

secret FrontdoorSecretSecretArgs

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileId String

The Resource ID of the Frontdoor Profile. Changing this forces a new Frontdoor Secret to be created.

cdnFrontdoorProfileName String

The name of the Frontdoor Profile containing this Frontdoor Secret.

name String

The name which should be used for this Frontdoor Secret. Possible values must start with a letter or a number, only contain letters, numbers and hyphens and have a length of between 2 and 260 characters. Changing this forces a new Frontdoor Secret to be created.

secret Property Map

A secret block as defined below. Changing this forces a new Frontdoor Secret to be created.

Supporting Types

FrontdoorSecretSecret

CustomerCertificates List<FrontdoorSecretSecretCustomerCertificate>

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

CustomerCertificates []FrontdoorSecretSecretCustomerCertificate

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

customerCertificates List<FrontdoorSecretSecretCustomerCertificate>

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

customerCertificates FrontdoorSecretSecretCustomerCertificate[]

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

customer_certificates Sequence[FrontdoorSecretSecretCustomerCertificate]

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

customerCertificates List<Property Map>

A customer_certificate block as defined below. Changing this forces a new Frontdoor Secret to be created.

FrontdoorSecretSecretCustomerCertificate

KeyVaultCertificateId string

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

SubjectAlternativeNames List<string>

One or more subject alternative names contained within the key vault certificate.

KeyVaultCertificateId string

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

SubjectAlternativeNames []string

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId String

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

subjectAlternativeNames List<String>

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId string

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

subjectAlternativeNames string[]

One or more subject alternative names contained within the key vault certificate.

key_vault_certificate_id str

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

subject_alternative_names Sequence[str]

One or more subject alternative names contained within the key vault certificate.

keyVaultCertificateId String

The key vault certificate resources ID attribute. Changing this forces a new Frontdoor Secret to be created.

subjectAlternativeNames List<String>

One or more subject alternative names contained within the key vault certificate.

Package Details

Repository
https://github.com/pulumi/pulumi-azure
License
Apache-2.0
Notes

This Pulumi package is based on the azurerm Terraform Provider.