We recommend using Azure Native.
Viewing docs for Azure v6.33.0
published on Monday, Feb 23, 2026 by Pulumi
published on Monday, Feb 23, 2026 by Pulumi
We recommend using Azure Native.
Viewing docs for Azure v6.33.0
published on Monday, Feb 23, 2026 by Pulumi
published on Monday, Feb 23, 2026 by Pulumi
Use this data source to access information about an existing Front Door (standard/premium) Profile.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
const example = azure.cdn.getFrontdoorProfile({
name: "existing-cdn-profile",
resourceGroupName: "existing-resources",
});
export const frontDoorId = example.then(example => example.id);
export const logScrubbingMatchVariable = example.then(example => example.logScrubbingRules?.[0]?.matchVariable);
import pulumi
import pulumi_azure as azure
example = azure.cdn.get_frontdoor_profile(name="existing-cdn-profile",
resource_group_name="existing-resources")
pulumi.export("frontDoorId", example.id)
pulumi.export("logScrubbingMatchVariable", example.log_scrubbing_rules[0].match_variable)
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 {
example, err := cdn.LookupFrontdoorProfile(ctx, &cdn.LookupFrontdoorProfileArgs{
Name: "existing-cdn-profile",
ResourceGroupName: "existing-resources",
}, nil)
if err != nil {
return err
}
ctx.Export("frontDoorId", example.Id)
ctx.Export("logScrubbingMatchVariable", example.LogScrubbingRules[0].MatchVariable)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
return await Deployment.RunAsync(() =>
{
var example = Azure.Cdn.GetFrontdoorProfile.Invoke(new()
{
Name = "existing-cdn-profile",
ResourceGroupName = "existing-resources",
});
return new Dictionary<string, object?>
{
["frontDoorId"] = example.Apply(getFrontdoorProfileResult => getFrontdoorProfileResult.Id),
["logScrubbingMatchVariable"] = example.Apply(getFrontdoorProfileResult => getFrontdoorProfileResult.LogScrubbingRules[0]?.MatchVariable),
};
});
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.GetFrontdoorProfileArgs;
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.getFrontdoorProfile(GetFrontdoorProfileArgs.builder()
.name("existing-cdn-profile")
.resourceGroupName("existing-resources")
.build());
ctx.export("frontDoorId", example.id());
ctx.export("logScrubbingMatchVariable", example.logScrubbingRules()[0].matchVariable());
}
}
variables:
example:
fn::invoke:
function: azure:cdn:getFrontdoorProfile
arguments:
name: existing-cdn-profile
resourceGroupName: existing-resources
outputs:
frontDoorId: ${example.id}
logScrubbingMatchVariable: ${example.logScrubbingRules[0].matchVariable}
API Providers
This data source uses the following Azure API Providers:
Microsoft.Cdn- 2024-02-01
Using getFrontdoorProfile
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 getFrontdoorProfile(args: GetFrontdoorProfileArgs, opts?: InvokeOptions): Promise<GetFrontdoorProfileResult>
function getFrontdoorProfileOutput(args: GetFrontdoorProfileOutputArgs, opts?: InvokeOptions): Output<GetFrontdoorProfileResult>def get_frontdoor_profile(name: Optional[str] = None,
resource_group_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetFrontdoorProfileResult
def get_frontdoor_profile_output(name: Optional[pulumi.Input[str]] = None,
resource_group_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetFrontdoorProfileResult]func LookupFrontdoorProfile(ctx *Context, args *LookupFrontdoorProfileArgs, opts ...InvokeOption) (*LookupFrontdoorProfileResult, error)
func LookupFrontdoorProfileOutput(ctx *Context, args *LookupFrontdoorProfileOutputArgs, opts ...InvokeOption) LookupFrontdoorProfileResultOutput> Note: This function is named LookupFrontdoorProfile in the Go SDK.
public static class GetFrontdoorProfile
{
public static Task<GetFrontdoorProfileResult> InvokeAsync(GetFrontdoorProfileArgs args, InvokeOptions? opts = null)
public static Output<GetFrontdoorProfileResult> Invoke(GetFrontdoorProfileInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetFrontdoorProfileResult> getFrontdoorProfile(GetFrontdoorProfileArgs args, InvokeOptions options)
public static Output<GetFrontdoorProfileResult> getFrontdoorProfile(GetFrontdoorProfileArgs args, InvokeOptions options)
fn::invoke:
function: azure:cdn/getFrontdoorProfile:getFrontdoorProfile
arguments:
# arguments dictionaryThe following arguments are supported:
- Name string
- Specifies the name of the Front Door Profile.
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile exists.
- Name string
- Specifies the name of the Front Door Profile.
- Resource
Group stringName - The name of the Resource Group where this Front Door Profile exists.
- name String
- Specifies the name of the Front Door Profile.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile exists.
- name string
- Specifies the name of the Front Door Profile.
- resource
Group stringName - The name of the Resource Group where this Front Door Profile exists.
- name str
- Specifies the name of the Front Door Profile.
- resource_
group_ strname - The name of the Resource Group where this Front Door Profile exists.
- name String
- Specifies the name of the Front Door Profile.
- resource
Group StringName - The name of the Resource Group where this Front Door Profile exists.
getFrontdoorProfile Result
The following output properties are available:
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Get
Frontdoor Profile Identity - An
identityblock as defined below. - Log
Scrubbing List<GetRules Frontdoor Profile Log Scrubbing Rule> - One or more
log_scrubbing_ruleblocks as defined below. - Name string
- Resource
Group stringName - Resource
Guid string - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - Response
Timeout intSeconds - Specifies the maximum response timeout in seconds.
- Sku
Name string - Specifies the SKU for this Front Door Profile.
- Dictionary<string, string>
- Specifies a mapping of Tags assigned to this Front Door Profile.
- Id string
- The provider-assigned unique ID for this managed resource.
- Identity
Get
Frontdoor Profile Identity - An
identityblock as defined below. - Log
Scrubbing []GetRules Frontdoor Profile Log Scrubbing Rule - One or more
log_scrubbing_ruleblocks as defined below. - Name string
- Resource
Group stringName - Resource
Guid string - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - Response
Timeout intSeconds - Specifies the maximum response timeout in seconds.
- Sku
Name string - Specifies the SKU for this Front Door Profile.
- map[string]string
- Specifies a mapping of Tags assigned to this Front Door Profile.
- id String
- The provider-assigned unique ID for this managed resource.
- identity
Get
Frontdoor Profile Identity - An
identityblock as defined below. - log
Scrubbing List<GetRules Frontdoor Profile Log Scrubbing Rule> - One or more
log_scrubbing_ruleblocks as defined below. - name String
- resource
Group StringName - resource
Guid String - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - response
Timeout IntegerSeconds - Specifies the maximum response timeout in seconds.
- sku
Name String - Specifies the SKU for this Front Door Profile.
- Map<String,String>
- Specifies a mapping of Tags assigned to this Front Door Profile.
- id string
- The provider-assigned unique ID for this managed resource.
- identity
Get
Frontdoor Profile Identity - An
identityblock as defined below. - log
Scrubbing GetRules Frontdoor Profile Log Scrubbing Rule[] - One or more
log_scrubbing_ruleblocks as defined below. - name string
- resource
Group stringName - resource
Guid string - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - response
Timeout numberSeconds - Specifies the maximum response timeout in seconds.
- sku
Name string - Specifies the SKU for this Front Door Profile.
- {[key: string]: string}
- Specifies a mapping of Tags assigned to this Front Door Profile.
- id str
- The provider-assigned unique ID for this managed resource.
- identity
Get
Frontdoor Profile Identity - An
identityblock as defined below. - log_
scrubbing_ Sequence[Getrules Frontdoor Profile Log Scrubbing Rule] - One or more
log_scrubbing_ruleblocks as defined below. - name str
- resource_
group_ strname - resource_
guid str - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - response_
timeout_ intseconds - Specifies the maximum response timeout in seconds.
- sku_
name str - Specifies the SKU for this Front Door Profile.
- Mapping[str, str]
- Specifies a mapping of Tags assigned to this Front Door Profile.
- id String
- The provider-assigned unique ID for this managed resource.
- identity Property Map
- An
identityblock as defined below. - log
Scrubbing List<Property Map>Rules - One or more
log_scrubbing_ruleblocks as defined below. - name String
- resource
Group StringName - resource
Guid String - The UUID of the Front Door Profile which will be sent in the HTTP Header as the
X-Azure-FDIDattribute. - response
Timeout NumberSeconds - Specifies the maximum response timeout in seconds.
- sku
Name String - Specifies the SKU for this Front Door Profile.
- Map<String>
- Specifies a mapping of Tags assigned to this Front Door Profile.
Supporting Types
GetFrontdoorProfileIdentity
- Identity
Ids List<string> - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- Principal
Id string - Tenant
Id string - Type string
- The type of Managed Service Identity that is configured on this Front Door Profile.
- Identity
Ids []string - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- Principal
Id string - Tenant
Id string - Type string
- The type of Managed Service Identity that is configured on this Front Door Profile.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- principal
Id String - tenant
Id String - type String
- The type of Managed Service Identity that is configured on this Front Door Profile.
- identity
Ids string[] - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- principal
Id string - tenant
Id string - type string
- The type of Managed Service Identity that is configured on this Front Door Profile.
- identity_
ids Sequence[str] - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- principal_
id str - tenant_
id str - type str
- The type of Managed Service Identity that is configured on this Front Door Profile.
- identity
Ids List<String> - The list of User Assigned Managed Identity IDs assigned to this Front Door Profile.
- principal
Id String - tenant
Id String - type String
- The type of Managed Service Identity that is configured on this Front Door Profile.
GetFrontdoorProfileLogScrubbingRule
- Match
Variable string - The variable that is scrubbed from the logs.
- Match
Variable string - The variable that is scrubbed from the logs.
- match
Variable String - The variable that is scrubbed from the logs.
- match
Variable string - The variable that is scrubbed from the logs.
- match_
variable str - The variable that is scrubbed from the logs.
- match
Variable String - The variable that is scrubbed from the logs.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
azurermTerraform Provider.
We recommend using Azure Native.
Viewing docs for Azure v6.33.0
published on Monday, Feb 23, 2026 by Pulumi
published on Monday, Feb 23, 2026 by Pulumi
