1. Packages
  2. Packages
  3. Azure Classic
  4. API Docs
  5. cdn
  6. getFrontdoorCustomDomain

We recommend using Azure Native.

Viewing docs for Azure v6.37.0
published on Friday, May 22, 2026 by Pulumi
azure logo

We recommend using Azure Native.

Viewing docs for Azure v6.37.0
published on Friday, May 22, 2026 by Pulumi

    Gets information about an existing Front Door (standard/premium) Custom Domain.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as azure from "@pulumi/azure";
    
    const example = azure.cdn.getFrontdoorCustomDomain({
        name: "existing-cdn-frontdoor-custom-domain",
        profileName: "existing-cdn-frontdoor-profile",
        resourceGroupName: "existing-resource-group",
    });
    
    import pulumi
    import pulumi_azure as azure
    
    example = azure.cdn.get_frontdoor_custom_domain(name="existing-cdn-frontdoor-custom-domain",
        profile_name="existing-cdn-frontdoor-profile",
        resource_group_name="existing-resource-group")
    
    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.LookupFrontdoorCustomDomain(ctx, &cdn.LookupFrontdoorCustomDomainArgs{
    			Name:              "existing-cdn-frontdoor-custom-domain",
    			ProfileName:       "existing-cdn-frontdoor-profile",
    			ResourceGroupName: "existing-resource-group",
    		}, 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.GetFrontdoorCustomDomain.Invoke(new()
        {
            Name = "existing-cdn-frontdoor-custom-domain",
            ProfileName = "existing-cdn-frontdoor-profile",
            ResourceGroupName = "existing-resource-group",
        });
    
    });
    
    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.GetFrontdoorCustomDomainArgs;
    import java.util.ArrayList;
    import java.util.Arrays;
    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.getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs.builder()
                .name("existing-cdn-frontdoor-custom-domain")
                .profileName("existing-cdn-frontdoor-profile")
                .resourceGroupName("existing-resource-group")
                .build());
    
        }
    }
    
    variables:
      example:
        fn::invoke:
          function: azure:cdn:getFrontdoorCustomDomain
          arguments:
            name: existing-cdn-frontdoor-custom-domain
            profileName: existing-cdn-frontdoor-profile
            resourceGroupName: existing-resource-group
    
    pulumi {
      required_providers {
        azure = {
          source = "pulumi/azure"
        }
      }
    }
    
    data "azure_cdn_getfrontdoorcustomdomain" "example" {
      name                = "existing-cdn-frontdoor-custom-domain"
      profile_name        = "existing-cdn-frontdoor-profile"
      resource_group_name = "existing-resource-group"
    }
    

    API Providers

    This data source uses the following Azure API Providers:

    • Microsoft.Cdn - 2025-04-15

    Using getFrontdoorCustomDomain

    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 getFrontdoorCustomDomain(args: GetFrontdoorCustomDomainArgs, opts?: InvokeOptions): Promise<GetFrontdoorCustomDomainResult>
    function getFrontdoorCustomDomainOutput(args: GetFrontdoorCustomDomainOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorCustomDomainResult>
    def get_frontdoor_custom_domain(name: Optional[str] = None,
                                    profile_name: Optional[str] = None,
                                    resource_group_name: Optional[str] = None,
                                    opts: Optional[InvokeOptions] = None) -> GetFrontdoorCustomDomainResult
    def get_frontdoor_custom_domain_output(name: pulumi.Input[Optional[str]] = None,
                                    profile_name: pulumi.Input[Optional[str]] = None,
                                    resource_group_name: pulumi.Input[Optional[str]] = None,
                                    opts: Optional[InvokeOptions] = None) -> Output[GetFrontdoorCustomDomainResult]
    func LookupFrontdoorCustomDomain(ctx *Context, args *LookupFrontdoorCustomDomainArgs, opts ...InvokeOption) (*LookupFrontdoorCustomDomainResult, error)
    func LookupFrontdoorCustomDomainOutput(ctx *Context, args *LookupFrontdoorCustomDomainOutputArgs, opts ...InvokeOption) LookupFrontdoorCustomDomainResultOutput

    > Note: This function is named LookupFrontdoorCustomDomain in the Go SDK.

    public static class GetFrontdoorCustomDomain 
    {
        public static Task<GetFrontdoorCustomDomainResult> InvokeAsync(GetFrontdoorCustomDomainArgs args, InvokeOptions? opts = null)
        public static Output<GetFrontdoorCustomDomainResult> Invoke(GetFrontdoorCustomDomainInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetFrontdoorCustomDomainResult> getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs args, InvokeOptions options)
    public static Output<GetFrontdoorCustomDomainResult> getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs args, InvokeOptions options)
    
    fn::invoke:
      function: azure:cdn/getFrontdoorCustomDomain:getFrontdoorCustomDomain
      arguments:
        # arguments dictionary
    data "azure_cdn_getfrontdoorcustomdomain" "name" {
        # arguments
    }

    The following arguments are supported:

    Name string
    The name of the Front Door Custom Domain.
    ProfileName string
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    ResourceGroupName string
    The name of the Resource Group where the Front Door Profile exists.
    Name string
    The name of the Front Door Custom Domain.
    ProfileName string
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    ResourceGroupName string
    The name of the Resource Group where the Front Door Profile exists.
    name string
    The name of the Front Door Custom Domain.
    profile_name string
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    resource_group_name string
    The name of the Resource Group where the Front Door Profile exists.
    name String
    The name of the Front Door Custom Domain.
    profileName String
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    resourceGroupName String
    The name of the Resource Group where the Front Door Profile exists.
    name string
    The name of the Front Door Custom Domain.
    profileName string
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    resourceGroupName string
    The name of the Resource Group where the Front Door Profile exists.
    name str
    The name of the Front Door Custom Domain.
    profile_name str
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    resource_group_name str
    The name of the Resource Group where the Front Door Profile exists.
    name String
    The name of the Front Door Custom Domain.
    profileName String
    The name of the Front Door Profile which the Front Door Custom Domain is bound to.
    resourceGroupName String
    The name of the Resource Group where the Front Door Profile exists.

    getFrontdoorCustomDomain Result

    The following output properties are available:

    CdnFrontdoorProfileId string
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    DnsZoneId string
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    ExpirationDate string
    The date and time that the token expires.
    HostName string
    The host name of the domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ProfileName string
    ResourceGroupName string
    Tls List<GetFrontdoorCustomDomainTl>
    A tls block as defined below.
    ValidationToken string
    The challenge used for DNS TXT record or file based validation.
    CdnFrontdoorProfileId string
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    DnsZoneId string
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    ExpirationDate string
    The date and time that the token expires.
    HostName string
    The host name of the domain.
    Id string
    The provider-assigned unique ID for this managed resource.
    Name string
    ProfileName string
    ResourceGroupName string
    Tls []GetFrontdoorCustomDomainTl
    A tls block as defined below.
    ValidationToken string
    The challenge used for DNS TXT record or file based validation.
    cdn_frontdoor_profile_id string
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    dns_zone_id string
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    expiration_date string
    The date and time that the token expires.
    host_name string
    The host name of the domain.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    profile_name string
    resource_group_name string
    tls list(object)
    A tls block as defined below.
    validation_token string
    The challenge used for DNS TXT record or file based validation.
    cdnFrontdoorProfileId String
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    dnsZoneId String
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    expirationDate String
    The date and time that the token expires.
    hostName String
    The host name of the domain.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    profileName String
    resourceGroupName String
    tls List<GetFrontdoorCustomDomainTl>
    A tls block as defined below.
    validationToken String
    The challenge used for DNS TXT record or file based validation.
    cdnFrontdoorProfileId string
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    dnsZoneId string
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    expirationDate string
    The date and time that the token expires.
    hostName string
    The host name of the domain.
    id string
    The provider-assigned unique ID for this managed resource.
    name string
    profileName string
    resourceGroupName string
    tls GetFrontdoorCustomDomainTl[]
    A tls block as defined below.
    validationToken string
    The challenge used for DNS TXT record or file based validation.
    cdn_frontdoor_profile_id str
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    dns_zone_id str
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    expiration_date str
    The date and time that the token expires.
    host_name str
    The host name of the domain.
    id str
    The provider-assigned unique ID for this managed resource.
    name str
    profile_name str
    resource_group_name str
    tls Sequence[GetFrontdoorCustomDomainTl]
    A tls block as defined below.
    validation_token str
    The challenge used for DNS TXT record or file based validation.
    cdnFrontdoorProfileId String
    The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
    dnsZoneId String
    The ID of the Azure DNS Zone which should be used for this Front Door Custom Domain.
    expirationDate String
    The date and time that the token expires.
    hostName String
    The host name of the domain.
    id String
    The provider-assigned unique ID for this managed resource.
    name String
    profileName String
    resourceGroupName String
    tls List<Property Map>
    A tls block as defined below.
    validationToken String
    The challenge used for DNS TXT record or file based validation.

    Supporting Types

    GetFrontdoorCustomDomainTl

    CdnFrontdoorSecretId string
    The Resource ID of the Front Door Secret.
    CertificateType string
    The SSL certificate type.
    CipherSuites List<GetFrontdoorCustomDomainTlCipherSuite>
    A cipherSuite block as defined below.
    MinimumTlsVersion string

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    MinimumVersion string
    The TLS protocol version that will be used for Https connections.
    CdnFrontdoorSecretId string
    The Resource ID of the Front Door Secret.
    CertificateType string
    The SSL certificate type.
    CipherSuites []GetFrontdoorCustomDomainTlCipherSuite
    A cipherSuite block as defined below.
    MinimumTlsVersion string

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    MinimumVersion string
    The TLS protocol version that will be used for Https connections.
    cdn_frontdoor_secret_id string
    The Resource ID of the Front Door Secret.
    certificate_type string
    The SSL certificate type.
    cipher_suites list(object)
    A cipherSuite block as defined below.
    minimum_tls_version string

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    minimum_version string
    The TLS protocol version that will be used for Https connections.
    cdnFrontdoorSecretId String
    The Resource ID of the Front Door Secret.
    certificateType String
    The SSL certificate type.
    cipherSuites List<GetFrontdoorCustomDomainTlCipherSuite>
    A cipherSuite block as defined below.
    minimumTlsVersion String

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    minimumVersion String
    The TLS protocol version that will be used for Https connections.
    cdnFrontdoorSecretId string
    The Resource ID of the Front Door Secret.
    certificateType string
    The SSL certificate type.
    cipherSuites GetFrontdoorCustomDomainTlCipherSuite[]
    A cipherSuite block as defined below.
    minimumTlsVersion string

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    minimumVersion string
    The TLS protocol version that will be used for Https connections.
    cdn_frontdoor_secret_id str
    The Resource ID of the Front Door Secret.
    certificate_type str
    The SSL certificate type.
    cipher_suites Sequence[GetFrontdoorCustomDomainTlCipherSuite]
    A cipherSuite block as defined below.
    minimum_tls_version str

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    minimum_version str
    The TLS protocol version that will be used for Https connections.
    cdnFrontdoorSecretId String
    The Resource ID of the Front Door Secret.
    certificateType String
    The SSL certificate type.
    cipherSuites List<Property Map>
    A cipherSuite block as defined below.
    minimumTlsVersion String

    Deprecated: minimumTlsVersion has been deprecated in favour of minimumVersion and will be removed in v5.0 of the AzureRM provider

    minimumVersion String
    The TLS protocol version that will be used for Https connections.

    GetFrontdoorCustomDomainTlCipherSuite

    CustomCiphers List<GetFrontdoorCustomDomainTlCipherSuiteCustomCipher>
    A customCiphers block as defined below.
    Type string
    The TLS policy type used for this Front Door Custom Domain.
    CustomCiphers []GetFrontdoorCustomDomainTlCipherSuiteCustomCipher
    A customCiphers block as defined below.
    Type string
    The TLS policy type used for this Front Door Custom Domain.
    custom_ciphers list(object)
    A customCiphers block as defined below.
    type string
    The TLS policy type used for this Front Door Custom Domain.
    customCiphers List<GetFrontdoorCustomDomainTlCipherSuiteCustomCipher>
    A customCiphers block as defined below.
    type String
    The TLS policy type used for this Front Door Custom Domain.
    customCiphers GetFrontdoorCustomDomainTlCipherSuiteCustomCipher[]
    A customCiphers block as defined below.
    type string
    The TLS policy type used for this Front Door Custom Domain.
    custom_ciphers Sequence[GetFrontdoorCustomDomainTlCipherSuiteCustomCipher]
    A customCiphers block as defined below.
    type str
    The TLS policy type used for this Front Door Custom Domain.
    customCiphers List<Property Map>
    A customCiphers block as defined below.
    type String
    The TLS policy type used for this Front Door Custom Domain.

    GetFrontdoorCustomDomainTlCipherSuiteCustomCipher

    Tls12s List<string>
    A set of TLS 1.2 cipher suites.
    Tls13s List<string>
    A set of TLS 1.3 cipher suites.
    Tls12s []string
    A set of TLS 1.2 cipher suites.
    Tls13s []string
    A set of TLS 1.3 cipher suites.
    tls12s list(string)
    A set of TLS 1.2 cipher suites.
    tls13s list(string)
    A set of TLS 1.3 cipher suites.
    tls12s List<String>
    A set of TLS 1.2 cipher suites.
    tls13s List<String>
    A set of TLS 1.3 cipher suites.
    tls12s string[]
    A set of TLS 1.2 cipher suites.
    tls13s string[]
    A set of TLS 1.3 cipher suites.
    tls12s Sequence[str]
    A set of TLS 1.2 cipher suites.
    tls13s Sequence[str]
    A set of TLS 1.3 cipher suites.
    tls12s List<String>
    A set of TLS 1.2 cipher suites.
    tls13s List<String>
    A set of TLS 1.3 cipher suites.

    Package Details

    Repository
    Azure Classic pulumi/pulumi-azure
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the azurerm Terraform Provider.
    azure logo

    We recommend using Azure Native.

    Viewing docs for Azure v6.37.0
    published on Friday, May 22, 2026 by Pulumi

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial