We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.cdn.getFrontdoorSecret
Explore with Pulumi AI
Use this data source to access information about an existing Front Door (standard/premium) Secret.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.cdn.getFrontdoorSecret({
    name: "example-secret",
    profileName: "example-profile",
    resourceGroupName: "example-resources",
});
import pulumi
import pulumi_azure as azure
example = azure.cdn.get_frontdoor_secret(name="example-secret",
    profile_name="example-profile",
    resource_group_name="example-resources")
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cdn.LookupFrontdoorSecret(ctx, &cdn.LookupFrontdoorSecretArgs{
			Name:              "example-secret",
			ProfileName:       "example-profile",
			ResourceGroupName: "example-resources",
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() => 
{
    var example = Azure.Cdn.GetFrontdoorSecret.Invoke(new()
    {
        Name = "example-secret",
        ProfileName = "example-profile",
        ResourceGroupName = "example-resources",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.cdn.CdnFunctions;
import com.pulumi.azure.cdn.inputs.GetFrontdoorSecretArgs;
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 example = CdnFunctions.getFrontdoorSecret(GetFrontdoorSecretArgs.builder()
            .name("example-secret")
            .profileName("example-profile")
            .resourceGroupName("example-resources")
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:cdn:getFrontdoorSecret
      arguments:
        name: example-secret
        profileName: example-profile
        resourceGroupName: example-resources
Using getFrontdoorSecret
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getFrontdoorSecret(args: GetFrontdoorSecretArgs, opts?: InvokeOptions): Promise<GetFrontdoorSecretResult>
function getFrontdoorSecretOutput(args: GetFrontdoorSecretOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorSecretResult>def get_frontdoor_secret(name: Optional[str] = None,
                         profile_name: Optional[str] = None,
                         resource_group_name: Optional[str] = None,
                         opts: Optional[InvokeOptions] = None) -> GetFrontdoorSecretResult
def get_frontdoor_secret_output(name: Optional[pulumi.Input[str]] = None,
                         profile_name: Optional[pulumi.Input[str]] = None,
                         resource_group_name: Optional[pulumi.Input[str]] = None,
                         opts: Optional[InvokeOptions] = None) -> Output[GetFrontdoorSecretResult]func LookupFrontdoorSecret(ctx *Context, args *LookupFrontdoorSecretArgs, opts ...InvokeOption) (*LookupFrontdoorSecretResult, error)
func LookupFrontdoorSecretOutput(ctx *Context, args *LookupFrontdoorSecretOutputArgs, opts ...InvokeOption) LookupFrontdoorSecretResultOutput> Note: This function is named LookupFrontdoorSecret in the Go SDK.
public static class GetFrontdoorSecret 
{
    public static Task<GetFrontdoorSecretResult> InvokeAsync(GetFrontdoorSecretArgs args, InvokeOptions? opts = null)
    public static Output<GetFrontdoorSecretResult> Invoke(GetFrontdoorSecretInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFrontdoorSecretResult> getFrontdoorSecret(GetFrontdoorSecretArgs args, InvokeOptions options)
public static Output<GetFrontdoorSecretResult> getFrontdoorSecret(GetFrontdoorSecretArgs args, InvokeOptions options)
fn::invoke:
  function: azure:cdn/getFrontdoorSecret:getFrontdoorSecret
  arguments:
    # arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the Front Door Secret.
- ProfileName string
- The name of the Front Door Profile within which the Front Door Secret exists.
- ResourceGroup stringName 
- The name of the Resource Group where the Front Door Profile exists.
- Name string
- Specifies the name of the Front Door Secret.
- ProfileName string
- The name of the Front Door Profile within which the Front Door Secret exists.
- ResourceGroup stringName 
- The name of the Resource Group where the Front Door Profile exists.
- name String
- Specifies the name of the Front Door Secret.
- profileName String
- The name of the Front Door Profile within which the Front Door Secret exists.
- resourceGroup StringName 
- The name of the Resource Group where the Front Door Profile exists.
- name string
- Specifies the name of the Front Door Secret.
- profileName string
- The name of the Front Door Profile within which the Front Door Secret exists.
- resourceGroup stringName 
- The name of the Resource Group where the Front Door Profile exists.
- name str
- Specifies the name of the Front Door Secret.
- profile_name str
- The name of the Front Door Profile within which the Front Door Secret exists.
- resource_group_ strname 
- The name of the Resource Group where the Front Door Profile exists.
- name String
- Specifies the name of the Front Door Secret.
- profileName String
- The name of the Front Door Profile within which the Front Door Secret exists.
- resourceGroup StringName 
- The name of the Resource Group where the Front Door Profile exists.
getFrontdoorSecret Result
The following output properties are available:
- CdnFrontdoor stringProfile Id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- ProfileName string
- ResourceGroup stringName 
- Secrets
List<GetFrontdoor Secret Secret> 
- A secretblock as defined below.
- CdnFrontdoor stringProfile Id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- Id string
- The provider-assigned unique ID for this managed resource.
- Name string
- ProfileName string
- ResourceGroup stringName 
- Secrets
[]GetFrontdoor Secret Secret 
- A secretblock as defined below.
- cdnFrontdoor StringProfile Id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profileName String
- resourceGroup StringName 
- secrets
List<GetFrontdoor Secret Secret> 
- A secretblock as defined below.
- cdnFrontdoor stringProfile Id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id string
- The provider-assigned unique ID for this managed resource.
- name string
- profileName string
- resourceGroup stringName 
- secrets
GetFrontdoor Secret Secret[] 
- A secretblock as defined below.
- cdn_frontdoor_ strprofile_ id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id str
- The provider-assigned unique ID for this managed resource.
- name str
- profile_name str
- resource_group_ strname 
- secrets
Sequence[GetFrontdoor Secret Secret] 
- A secretblock as defined below.
- cdnFrontdoor StringProfile Id 
- Specifies the ID of the Front Door Profile within which this Front Door Secret exists.
- id String
- The provider-assigned unique ID for this managed resource.
- name String
- profileName String
- resourceGroup StringName 
- secrets List<Property Map>
- A secretblock as defined below.
Supporting Types
GetFrontdoorSecretSecret   
- CustomerCertificates List<GetFrontdoor Secret Secret Customer Certificate> 
- A customer_certificateblock as defined below.
- CustomerCertificates []GetFrontdoor Secret Secret Customer Certificate 
- A customer_certificateblock as defined below.
- customerCertificates List<GetFrontdoor Secret Secret Customer Certificate> 
- A customer_certificateblock as defined below.
- customerCertificates GetFrontdoor Secret Secret Customer Certificate[] 
- A customer_certificateblock as defined below.
- customer_certificates Sequence[GetFrontdoor Secret Secret Customer Certificate] 
- A customer_certificateblock as defined below.
- customerCertificates List<Property Map>
- A customer_certificateblock as defined below.
GetFrontdoorSecretSecretCustomerCertificate     
- ExpirationDate string
- The key vault certificate expiration date.
- KeyVault stringCertificate Id 
- The key vault certificate ID.
- SubjectAlternative List<string>Names 
- One or more subject alternative namescontained within the key vault certificate.
- ExpirationDate string
- The key vault certificate expiration date.
- KeyVault stringCertificate Id 
- The key vault certificate ID.
- SubjectAlternative []stringNames 
- One or more subject alternative namescontained within the key vault certificate.
- expirationDate String
- The key vault certificate expiration date.
- keyVault StringCertificate Id 
- The key vault certificate ID.
- subjectAlternative List<String>Names 
- One or more subject alternative namescontained within the key vault certificate.
- expirationDate string
- The key vault certificate expiration date.
- keyVault stringCertificate Id 
- The key vault certificate ID.
- subjectAlternative string[]Names 
- One or more subject alternative namescontained within the key vault certificate.
- expiration_date str
- The key vault certificate expiration date.
- key_vault_ strcertificate_ id 
- The key vault certificate ID.
- subject_alternative_ Sequence[str]names 
- One or more subject alternative namescontained within the key vault certificate.
- expirationDate String
- The key vault certificate expiration date.
- keyVault StringCertificate Id 
- The key vault certificate ID.
- subjectAlternative List<String>Names 
- One or more subject alternative namescontained within the key vault certificate.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.