We recommend using Azure Native.
Azure v6.21.0 published on Friday, Mar 7, 2025 by Pulumi
azure.cdn.getFrontdoorCustomDomain
Explore with Pulumi AI
Use this data source to access 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: exampleAzurermCdnFrontdoorCustomDomain.name,
    profileName: exampleAzurermCdnFrontdoorProfile.name,
    resourceGroupName: exampleAzurermCdnFrontdoorProfile.resourceGroupName,
});
import pulumi
import pulumi_azure as azure
example = azure.cdn.get_frontdoor_custom_domain(name=example_azurerm_cdn_frontdoor_custom_domain["name"],
    profile_name=example_azurerm_cdn_frontdoor_profile["name"],
    resource_group_name=example_azurerm_cdn_frontdoor_profile["resourceGroupName"])
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:              exampleAzurermCdnFrontdoorCustomDomain.Name,
			ProfileName:       exampleAzurermCdnFrontdoorProfile.Name,
			ResourceGroupName: exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
		}, 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 = exampleAzurermCdnFrontdoorCustomDomain.Name,
        ProfileName = exampleAzurermCdnFrontdoorProfile.Name,
        ResourceGroupName = exampleAzurermCdnFrontdoorProfile.ResourceGroupName,
    });
});
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.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.getFrontdoorCustomDomain(GetFrontdoorCustomDomainArgs.builder()
            .name(exampleAzurermCdnFrontdoorCustomDomain.name())
            .profileName(exampleAzurermCdnFrontdoorProfile.name())
            .resourceGroupName(exampleAzurermCdnFrontdoorProfile.resourceGroupName())
            .build());
    }
}
variables:
  example:
    fn::invoke:
      function: azure:cdn:getFrontdoorCustomDomain
      arguments:
        name: ${exampleAzurermCdnFrontdoorCustomDomain.name}
        profileName: ${exampleAzurermCdnFrontdoorProfile.name}
        resourceGroupName: ${exampleAzurermCdnFrontdoorProfile.resourceGroupName}
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: 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[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 dictionaryThe 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.
- ResourceGroup stringName 
- 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.
- ResourceGroup stringName 
- 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.
- resourceGroup StringName 
- 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.
- resourceGroup stringName 
- 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_ strname 
- 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.
- resourceGroup StringName 
- The name of the Resource Group where the Front Door Profile exists.
getFrontdoorCustomDomain Result
The following output properties are available:
- CdnFrontdoor stringProfile Id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- DnsZone stringId 
- ExpirationDate string
- The date 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
- ResourceGroup stringName 
- Tls
List<GetFrontdoor Custom Domain Tl> 
- A tlsblock as defined below.
- ValidationToken string
- The challenge used for DNS TXT record or file based validation.
- CdnFrontdoor stringProfile Id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- DnsZone stringId 
- ExpirationDate string
- The date 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
- ResourceGroup stringName 
- Tls
[]GetFrontdoor Custom Domain Tl 
- A tlsblock as defined below.
- ValidationToken string
- The challenge used for DNS TXT record or file based validation.
- cdnFrontdoor StringProfile Id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dnsZone StringId 
- expirationDate String
- The date 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
- resourceGroup StringName 
- tls
List<GetFrontdoor Custom Domain Tl> 
- A tlsblock as defined below.
- validationToken String
- The challenge used for DNS TXT record or file based validation.
- cdnFrontdoor stringProfile Id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dnsZone stringId 
- expirationDate string
- The date 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
- resourceGroup stringName 
- tls
GetFrontdoor Custom Domain Tl[] 
- A tlsblock as defined below.
- validationToken string
- The challenge used for DNS TXT record or file based validation.
- cdn_frontdoor_ strprofile_ id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dns_zone_ strid 
- expiration_date str
- The date 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_ strname 
- tls
Sequence[GetFrontdoor Custom Domain Tl] 
- A tlsblock as defined below.
- validation_token str
- The challenge used for DNS TXT record or file based validation.
- cdnFrontdoor StringProfile Id 
- The ID of the Front Door Profile which the Front Door Custom Domain is bound to.
- dnsZone StringId 
- expirationDate String
- The date 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
- resourceGroup StringName 
- tls List<Property Map>
- A tlsblock as defined below.
- validationToken String
- The challenge used for DNS TXT record or file based validation.
Supporting Types
GetFrontdoorCustomDomainTl    
- CdnFrontdoor stringSecret Id 
- The Resource ID of the Front Door Secret.
- CertificateType string
- The SSL certificate type.
- MinimumTls stringVersion 
- The TLS protocol version that will be used for Https connections.
- CdnFrontdoor stringSecret Id 
- The Resource ID of the Front Door Secret.
- CertificateType string
- The SSL certificate type.
- MinimumTls stringVersion 
- The TLS protocol version that will be used for Https connections.
- cdnFrontdoor StringSecret Id 
- The Resource ID of the Front Door Secret.
- certificateType String
- The SSL certificate type.
- minimumTls StringVersion 
- The TLS protocol version that will be used for Https connections.
- cdnFrontdoor stringSecret Id 
- The Resource ID of the Front Door Secret.
- certificateType string
- The SSL certificate type.
- minimumTls stringVersion 
- The TLS protocol version that will be used for Https connections.
- cdn_frontdoor_ strsecret_ id 
- The Resource ID of the Front Door Secret.
- certificate_type str
- The SSL certificate type.
- minimum_tls_ strversion 
- The TLS protocol version that will be used for Https connections.
- cdnFrontdoor StringSecret Id 
- The Resource ID of the Front Door Secret.
- certificateType String
- The SSL certificate type.
- minimumTls StringVersion 
- The TLS protocol version that will be used for Https connections.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.