We recommend using Azure Native.
azure.cdn.FrontdoorRoute
Explore with Pulumi AI
Manages a Front Door (standard/premium) Route.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as std from "@pulumi/std";
const example = new azure.core.ResourceGroup("example", {
    name: "example-cdn-frontdoor",
    location: "West Europe",
});
const exampleZone = new azure.dns.Zone("example", {
    name: "example.com",
    resourceGroupName: example.name,
});
const exampleFrontdoorProfile = new azure.cdn.FrontdoorProfile("example", {
    name: "example-profile",
    resourceGroupName: example.name,
    skuName: "Standard_AzureFrontDoor",
});
const exampleFrontdoorOriginGroup = new azure.cdn.FrontdoorOriginGroup("example", {
    name: "example-originGroup",
    cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
    loadBalancing: {
        additionalLatencyInMilliseconds: 0,
        sampleSize: 16,
        successfulSamplesRequired: 3,
    },
});
const exampleFrontdoorOrigin = new azure.cdn.FrontdoorOrigin("example", {
    name: "example-origin",
    cdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.id,
    enabled: true,
    certificateNameCheckEnabled: false,
    hostName: "contoso.com",
    httpPort: 80,
    httpsPort: 443,
    originHostHeader: "www.contoso.com",
    priority: 1,
    weight: 1,
});
const exampleFrontdoorEndpoint = new azure.cdn.FrontdoorEndpoint("example", {
    name: "example-endpoint",
    cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
});
const exampleFrontdoorRuleSet = new azure.cdn.FrontdoorRuleSet("example", {
    name: "ExampleRuleSet",
    cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
});
const contoso = new azure.cdn.FrontdoorCustomDomain("contoso", {
    name: "contoso-custom-domain",
    cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
    dnsZoneId: exampleZone.id,
    hostName: std.joinOutput({
        separator: ".",
        input: [
            "contoso",
            exampleZone.name,
        ],
    }).apply(invoke => invoke.result),
    tls: {
        certificateType: "ManagedCertificate",
        minimumTlsVersion: "TLS12",
    },
});
const fabrikam = new azure.cdn.FrontdoorCustomDomain("fabrikam", {
    name: "fabrikam-custom-domain",
    cdnFrontdoorProfileId: exampleFrontdoorProfile.id,
    dnsZoneId: exampleZone.id,
    hostName: std.joinOutput({
        separator: ".",
        input: [
            "fabrikam",
            exampleZone.name,
        ],
    }).apply(invoke => invoke.result),
    tls: {
        certificateType: "ManagedCertificate",
        minimumTlsVersion: "TLS12",
    },
});
const exampleFrontdoorRoute = new azure.cdn.FrontdoorRoute("example", {
    name: "example-route",
    cdnFrontdoorEndpointId: exampleFrontdoorEndpoint.id,
    cdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.id,
    cdnFrontdoorOriginIds: [exampleFrontdoorOrigin.id],
    cdnFrontdoorRuleSetIds: [exampleFrontdoorRuleSet.id],
    enabled: true,
    forwardingProtocol: "HttpsOnly",
    httpsRedirectEnabled: true,
    patternsToMatches: ["/*"],
    supportedProtocols: [
        "Http",
        "Https",
    ],
    cdnFrontdoorCustomDomainIds: [
        contoso.id,
        fabrikam.id,
    ],
    linkToDefaultDomain: false,
    cache: {
        queryStringCachingBehavior: "IgnoreSpecifiedQueryStrings",
        queryStrings: [
            "account",
            "settings",
        ],
        compressionEnabled: true,
        contentTypesToCompresses: [
            "text/html",
            "text/javascript",
            "text/xml",
        ],
    },
});
const contosoFrontdoorCustomDomainAssociation = new azure.cdn.FrontdoorCustomDomainAssociation("contoso", {
    cdnFrontdoorCustomDomainId: contoso.id,
    cdnFrontdoorRouteIds: [exampleFrontdoorRoute.id],
});
const fabrikamFrontdoorCustomDomainAssociation = new azure.cdn.FrontdoorCustomDomainAssociation("fabrikam", {
    cdnFrontdoorCustomDomainId: fabrikam.id,
    cdnFrontdoorRouteIds: [exampleFrontdoorRoute.id],
});
import pulumi
import pulumi_azure as azure
import pulumi_std as std
example = azure.core.ResourceGroup("example",
    name="example-cdn-frontdoor",
    location="West Europe")
example_zone = azure.dns.Zone("example",
    name="example.com",
    resource_group_name=example.name)
example_frontdoor_profile = azure.cdn.FrontdoorProfile("example",
    name="example-profile",
    resource_group_name=example.name,
    sku_name="Standard_AzureFrontDoor")
example_frontdoor_origin_group = azure.cdn.FrontdoorOriginGroup("example",
    name="example-originGroup",
    cdn_frontdoor_profile_id=example_frontdoor_profile.id,
    load_balancing={
        "additional_latency_in_milliseconds": 0,
        "sample_size": 16,
        "successful_samples_required": 3,
    })
example_frontdoor_origin = azure.cdn.FrontdoorOrigin("example",
    name="example-origin",
    cdn_frontdoor_origin_group_id=example_frontdoor_origin_group.id,
    enabled=True,
    certificate_name_check_enabled=False,
    host_name="contoso.com",
    http_port=80,
    https_port=443,
    origin_host_header="www.contoso.com",
    priority=1,
    weight=1)
example_frontdoor_endpoint = azure.cdn.FrontdoorEndpoint("example",
    name="example-endpoint",
    cdn_frontdoor_profile_id=example_frontdoor_profile.id)
example_frontdoor_rule_set = azure.cdn.FrontdoorRuleSet("example",
    name="ExampleRuleSet",
    cdn_frontdoor_profile_id=example_frontdoor_profile.id)
contoso = azure.cdn.FrontdoorCustomDomain("contoso",
    name="contoso-custom-domain",
    cdn_frontdoor_profile_id=example_frontdoor_profile.id,
    dns_zone_id=example_zone.id,
    host_name=std.join_output(separator=".",
        input=[
            "contoso",
            example_zone.name,
        ]).apply(lambda invoke: invoke.result),
    tls={
        "certificate_type": "ManagedCertificate",
        "minimum_tls_version": "TLS12",
    })
fabrikam = azure.cdn.FrontdoorCustomDomain("fabrikam",
    name="fabrikam-custom-domain",
    cdn_frontdoor_profile_id=example_frontdoor_profile.id,
    dns_zone_id=example_zone.id,
    host_name=std.join_output(separator=".",
        input=[
            "fabrikam",
            example_zone.name,
        ]).apply(lambda invoke: invoke.result),
    tls={
        "certificate_type": "ManagedCertificate",
        "minimum_tls_version": "TLS12",
    })
example_frontdoor_route = azure.cdn.FrontdoorRoute("example",
    name="example-route",
    cdn_frontdoor_endpoint_id=example_frontdoor_endpoint.id,
    cdn_frontdoor_origin_group_id=example_frontdoor_origin_group.id,
    cdn_frontdoor_origin_ids=[example_frontdoor_origin.id],
    cdn_frontdoor_rule_set_ids=[example_frontdoor_rule_set.id],
    enabled=True,
    forwarding_protocol="HttpsOnly",
    https_redirect_enabled=True,
    patterns_to_matches=["/*"],
    supported_protocols=[
        "Http",
        "Https",
    ],
    cdn_frontdoor_custom_domain_ids=[
        contoso.id,
        fabrikam.id,
    ],
    link_to_default_domain=False,
    cache={
        "query_string_caching_behavior": "IgnoreSpecifiedQueryStrings",
        "query_strings": [
            "account",
            "settings",
        ],
        "compression_enabled": True,
        "content_types_to_compresses": [
            "text/html",
            "text/javascript",
            "text/xml",
        ],
    })
contoso_frontdoor_custom_domain_association = azure.cdn.FrontdoorCustomDomainAssociation("contoso",
    cdn_frontdoor_custom_domain_id=contoso.id,
    cdn_frontdoor_route_ids=[example_frontdoor_route.id])
fabrikam_frontdoor_custom_domain_association = azure.cdn.FrontdoorCustomDomainAssociation("fabrikam",
    cdn_frontdoor_custom_domain_id=fabrikam.id,
    cdn_frontdoor_route_ids=[example_frontdoor_route.id])
package main
import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/cdn"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/dns"
	"github.com/pulumi/pulumi-std/sdk/go/std"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-cdn-frontdoor"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleZone, err := dns.NewZone(ctx, "example", &dns.ZoneArgs{
			Name:              pulumi.String("example.com"),
			ResourceGroupName: example.Name,
		})
		if err != nil {
			return err
		}
		exampleFrontdoorProfile, err := cdn.NewFrontdoorProfile(ctx, "example", &cdn.FrontdoorProfileArgs{
			Name:              pulumi.String("example-profile"),
			ResourceGroupName: example.Name,
			SkuName:           pulumi.String("Standard_AzureFrontDoor"),
		})
		if err != nil {
			return err
		}
		exampleFrontdoorOriginGroup, err := cdn.NewFrontdoorOriginGroup(ctx, "example", &cdn.FrontdoorOriginGroupArgs{
			Name:                  pulumi.String("example-originGroup"),
			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
			LoadBalancing: &cdn.FrontdoorOriginGroupLoadBalancingArgs{
				AdditionalLatencyInMilliseconds: pulumi.Int(0),
				SampleSize:                      pulumi.Int(16),
				SuccessfulSamplesRequired:       pulumi.Int(3),
			},
		})
		if err != nil {
			return err
		}
		exampleFrontdoorOrigin, err := cdn.NewFrontdoorOrigin(ctx, "example", &cdn.FrontdoorOriginArgs{
			Name:                        pulumi.String("example-origin"),
			CdnFrontdoorOriginGroupId:   exampleFrontdoorOriginGroup.ID(),
			Enabled:                     pulumi.Bool(true),
			CertificateNameCheckEnabled: pulumi.Bool(false),
			HostName:                    pulumi.String("contoso.com"),
			HttpPort:                    pulumi.Int(80),
			HttpsPort:                   pulumi.Int(443),
			OriginHostHeader:            pulumi.String("www.contoso.com"),
			Priority:                    pulumi.Int(1),
			Weight:                      pulumi.Int(1),
		})
		if err != nil {
			return err
		}
		exampleFrontdoorEndpoint, err := cdn.NewFrontdoorEndpoint(ctx, "example", &cdn.FrontdoorEndpointArgs{
			Name:                  pulumi.String("example-endpoint"),
			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
		})
		if err != nil {
			return err
		}
		exampleFrontdoorRuleSet, err := cdn.NewFrontdoorRuleSet(ctx, "example", &cdn.FrontdoorRuleSetArgs{
			Name:                  pulumi.String("ExampleRuleSet"),
			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
		})
		if err != nil {
			return err
		}
		contoso, err := cdn.NewFrontdoorCustomDomain(ctx, "contoso", &cdn.FrontdoorCustomDomainArgs{
			Name:                  pulumi.String("contoso-custom-domain"),
			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
			DnsZoneId:             exampleZone.ID(),
			HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{
				Separator: pulumi.String("."),
				Input: pulumi.StringArray{
					pulumi.String("contoso"),
					exampleZone.Name,
				},
			}, nil).ApplyT(func(invoke std.JoinResult) (*string, error) {
				return invoke.Result, nil
			}).(pulumi.StringPtrOutput)),
			Tls: &cdn.FrontdoorCustomDomainTlsArgs{
				CertificateType:   pulumi.String("ManagedCertificate"),
				MinimumTlsVersion: pulumi.String("TLS12"),
			},
		})
		if err != nil {
			return err
		}
		fabrikam, err := cdn.NewFrontdoorCustomDomain(ctx, "fabrikam", &cdn.FrontdoorCustomDomainArgs{
			Name:                  pulumi.String("fabrikam-custom-domain"),
			CdnFrontdoorProfileId: exampleFrontdoorProfile.ID(),
			DnsZoneId:             exampleZone.ID(),
			HostName: pulumi.String(std.JoinOutput(ctx, std.JoinOutputArgs{
				Separator: pulumi.String("."),
				Input: pulumi.StringArray{
					pulumi.String("fabrikam"),
					exampleZone.Name,
				},
			}, nil).ApplyT(func(invoke std.JoinResult) (*string, error) {
				return invoke.Result, nil
			}).(pulumi.StringPtrOutput)),
			Tls: &cdn.FrontdoorCustomDomainTlsArgs{
				CertificateType:   pulumi.String("ManagedCertificate"),
				MinimumTlsVersion: pulumi.String("TLS12"),
			},
		})
		if err != nil {
			return err
		}
		exampleFrontdoorRoute, err := cdn.NewFrontdoorRoute(ctx, "example", &cdn.FrontdoorRouteArgs{
			Name:                      pulumi.String("example-route"),
			CdnFrontdoorEndpointId:    exampleFrontdoorEndpoint.ID(),
			CdnFrontdoorOriginGroupId: exampleFrontdoorOriginGroup.ID(),
			CdnFrontdoorOriginIds: pulumi.StringArray{
				exampleFrontdoorOrigin.ID(),
			},
			CdnFrontdoorRuleSetIds: pulumi.StringArray{
				exampleFrontdoorRuleSet.ID(),
			},
			Enabled:              pulumi.Bool(true),
			ForwardingProtocol:   pulumi.String("HttpsOnly"),
			HttpsRedirectEnabled: pulumi.Bool(true),
			PatternsToMatches: pulumi.StringArray{
				pulumi.String("/*"),
			},
			SupportedProtocols: pulumi.StringArray{
				pulumi.String("Http"),
				pulumi.String("Https"),
			},
			CdnFrontdoorCustomDomainIds: pulumi.StringArray{
				contoso.ID(),
				fabrikam.ID(),
			},
			LinkToDefaultDomain: pulumi.Bool(false),
			Cache: &cdn.FrontdoorRouteCacheArgs{
				QueryStringCachingBehavior: pulumi.String("IgnoreSpecifiedQueryStrings"),
				QueryStrings: pulumi.StringArray{
					pulumi.String("account"),
					pulumi.String("settings"),
				},
				CompressionEnabled: pulumi.Bool(true),
				ContentTypesToCompresses: pulumi.StringArray{
					pulumi.String("text/html"),
					pulumi.String("text/javascript"),
					pulumi.String("text/xml"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "contoso", &cdn.FrontdoorCustomDomainAssociationArgs{
			CdnFrontdoorCustomDomainId: contoso.ID(),
			CdnFrontdoorRouteIds: pulumi.StringArray{
				exampleFrontdoorRoute.ID(),
			},
		})
		if err != nil {
			return err
		}
		_, err = cdn.NewFrontdoorCustomDomainAssociation(ctx, "fabrikam", &cdn.FrontdoorCustomDomainAssociationArgs{
			CdnFrontdoorCustomDomainId: fabrikam.ID(),
			CdnFrontdoorRouteIds: pulumi.StringArray{
				exampleFrontdoorRoute.ID(),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using Std = Pulumi.Std;
return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-cdn-frontdoor",
        Location = "West Europe",
    });
    var exampleZone = new Azure.Dns.Zone("example", new()
    {
        Name = "example.com",
        ResourceGroupName = example.Name,
    });
    var exampleFrontdoorProfile = new Azure.Cdn.FrontdoorProfile("example", new()
    {
        Name = "example-profile",
        ResourceGroupName = example.Name,
        SkuName = "Standard_AzureFrontDoor",
    });
    var exampleFrontdoorOriginGroup = new Azure.Cdn.FrontdoorOriginGroup("example", new()
    {
        Name = "example-originGroup",
        CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
        LoadBalancing = new Azure.Cdn.Inputs.FrontdoorOriginGroupLoadBalancingArgs
        {
            AdditionalLatencyInMilliseconds = 0,
            SampleSize = 16,
            SuccessfulSamplesRequired = 3,
        },
    });
    var exampleFrontdoorOrigin = new Azure.Cdn.FrontdoorOrigin("example", new()
    {
        Name = "example-origin",
        CdnFrontdoorOriginGroupId = exampleFrontdoorOriginGroup.Id,
        Enabled = true,
        CertificateNameCheckEnabled = false,
        HostName = "contoso.com",
        HttpPort = 80,
        HttpsPort = 443,
        OriginHostHeader = "www.contoso.com",
        Priority = 1,
        Weight = 1,
    });
    var exampleFrontdoorEndpoint = new Azure.Cdn.FrontdoorEndpoint("example", new()
    {
        Name = "example-endpoint",
        CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
    });
    var exampleFrontdoorRuleSet = new Azure.Cdn.FrontdoorRuleSet("example", new()
    {
        Name = "ExampleRuleSet",
        CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
    });
    var contoso = new Azure.Cdn.FrontdoorCustomDomain("contoso", new()
    {
        Name = "contoso-custom-domain",
        CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
        DnsZoneId = exampleZone.Id,
        HostName = Std.Join.Invoke(new()
        {
            Separator = ".",
            Input = new[]
            {
                "contoso",
                exampleZone.Name,
            },
        }).Apply(invoke => invoke.Result),
        Tls = new Azure.Cdn.Inputs.FrontdoorCustomDomainTlsArgs
        {
            CertificateType = "ManagedCertificate",
            MinimumTlsVersion = "TLS12",
        },
    });
    var fabrikam = new Azure.Cdn.FrontdoorCustomDomain("fabrikam", new()
    {
        Name = "fabrikam-custom-domain",
        CdnFrontdoorProfileId = exampleFrontdoorProfile.Id,
        DnsZoneId = exampleZone.Id,
        HostName = Std.Join.Invoke(new()
        {
            Separator = ".",
            Input = new[]
            {
                "fabrikam",
                exampleZone.Name,
            },
        }).Apply(invoke => invoke.Result),
        Tls = new Azure.Cdn.Inputs.FrontdoorCustomDomainTlsArgs
        {
            CertificateType = "ManagedCertificate",
            MinimumTlsVersion = "TLS12",
        },
    });
    var exampleFrontdoorRoute = new Azure.Cdn.FrontdoorRoute("example", new()
    {
        Name = "example-route",
        CdnFrontdoorEndpointId = exampleFrontdoorEndpoint.Id,
        CdnFrontdoorOriginGroupId = exampleFrontdoorOriginGroup.Id,
        CdnFrontdoorOriginIds = new[]
        {
            exampleFrontdoorOrigin.Id,
        },
        CdnFrontdoorRuleSetIds = new[]
        {
            exampleFrontdoorRuleSet.Id,
        },
        Enabled = true,
        ForwardingProtocol = "HttpsOnly",
        HttpsRedirectEnabled = true,
        PatternsToMatches = new[]
        {
            "/*",
        },
        SupportedProtocols = new[]
        {
            "Http",
            "Https",
        },
        CdnFrontdoorCustomDomainIds = new[]
        {
            contoso.Id,
            fabrikam.Id,
        },
        LinkToDefaultDomain = false,
        Cache = new Azure.Cdn.Inputs.FrontdoorRouteCacheArgs
        {
            QueryStringCachingBehavior = "IgnoreSpecifiedQueryStrings",
            QueryStrings = new[]
            {
                "account",
                "settings",
            },
            CompressionEnabled = true,
            ContentTypesToCompresses = new[]
            {
                "text/html",
                "text/javascript",
                "text/xml",
            },
        },
    });
    var contosoFrontdoorCustomDomainAssociation = new Azure.Cdn.FrontdoorCustomDomainAssociation("contoso", new()
    {
        CdnFrontdoorCustomDomainId = contoso.Id,
        CdnFrontdoorRouteIds = new[]
        {
            exampleFrontdoorRoute.Id,
        },
    });
    var fabrikamFrontdoorCustomDomainAssociation = new Azure.Cdn.FrontdoorCustomDomainAssociation("fabrikam", new()
    {
        CdnFrontdoorCustomDomainId = fabrikam.Id,
        CdnFrontdoorRouteIds = new[]
        {
            exampleFrontdoorRoute.Id,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.dns.Zone;
import com.pulumi.azure.dns.ZoneArgs;
import com.pulumi.azure.cdn.FrontdoorProfile;
import com.pulumi.azure.cdn.FrontdoorProfileArgs;
import com.pulumi.azure.cdn.FrontdoorOriginGroup;
import com.pulumi.azure.cdn.FrontdoorOriginGroupArgs;
import com.pulumi.azure.cdn.inputs.FrontdoorOriginGroupLoadBalancingArgs;
import com.pulumi.azure.cdn.FrontdoorOrigin;
import com.pulumi.azure.cdn.FrontdoorOriginArgs;
import com.pulumi.azure.cdn.FrontdoorEndpoint;
import com.pulumi.azure.cdn.FrontdoorEndpointArgs;
import com.pulumi.azure.cdn.FrontdoorRuleSet;
import com.pulumi.azure.cdn.FrontdoorRuleSetArgs;
import com.pulumi.azure.cdn.FrontdoorCustomDomain;
import com.pulumi.azure.cdn.FrontdoorCustomDomainArgs;
import com.pulumi.azure.cdn.inputs.FrontdoorCustomDomainTlsArgs;
import com.pulumi.azure.cdn.FrontdoorRoute;
import com.pulumi.azure.cdn.FrontdoorRouteArgs;
import com.pulumi.azure.cdn.inputs.FrontdoorRouteCacheArgs;
import com.pulumi.azure.cdn.FrontdoorCustomDomainAssociation;
import com.pulumi.azure.cdn.FrontdoorCustomDomainAssociationArgs;
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) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-cdn-frontdoor")
            .location("West Europe")
            .build());
        var exampleZone = new Zone("exampleZone", ZoneArgs.builder()
            .name("example.com")
            .resourceGroupName(example.name())
            .build());
        var exampleFrontdoorProfile = new FrontdoorProfile("exampleFrontdoorProfile", FrontdoorProfileArgs.builder()
            .name("example-profile")
            .resourceGroupName(example.name())
            .skuName("Standard_AzureFrontDoor")
            .build());
        var exampleFrontdoorOriginGroup = new FrontdoorOriginGroup("exampleFrontdoorOriginGroup", FrontdoorOriginGroupArgs.builder()
            .name("example-originGroup")
            .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
            .loadBalancing(FrontdoorOriginGroupLoadBalancingArgs.builder()
                .additionalLatencyInMilliseconds(0)
                .sampleSize(16)
                .successfulSamplesRequired(3)
                .build())
            .build());
        var exampleFrontdoorOrigin = new FrontdoorOrigin("exampleFrontdoorOrigin", FrontdoorOriginArgs.builder()
            .name("example-origin")
            .cdnFrontdoorOriginGroupId(exampleFrontdoorOriginGroup.id())
            .enabled(true)
            .certificateNameCheckEnabled(false)
            .hostName("contoso.com")
            .httpPort(80)
            .httpsPort(443)
            .originHostHeader("www.contoso.com")
            .priority(1)
            .weight(1)
            .build());
        var exampleFrontdoorEndpoint = new FrontdoorEndpoint("exampleFrontdoorEndpoint", FrontdoorEndpointArgs.builder()
            .name("example-endpoint")
            .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
            .build());
        var exampleFrontdoorRuleSet = new FrontdoorRuleSet("exampleFrontdoorRuleSet", FrontdoorRuleSetArgs.builder()
            .name("ExampleRuleSet")
            .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
            .build());
        var contoso = new FrontdoorCustomDomain("contoso", FrontdoorCustomDomainArgs.builder()
            .name("contoso-custom-domain")
            .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
            .dnsZoneId(exampleZone.id())
            .hostName(StdFunctions.join().applyValue(invoke -> invoke.result()))
            .tls(FrontdoorCustomDomainTlsArgs.builder()
                .certificateType("ManagedCertificate")
                .minimumTlsVersion("TLS12")
                .build())
            .build());
        var fabrikam = new FrontdoorCustomDomain("fabrikam", FrontdoorCustomDomainArgs.builder()
            .name("fabrikam-custom-domain")
            .cdnFrontdoorProfileId(exampleFrontdoorProfile.id())
            .dnsZoneId(exampleZone.id())
            .hostName(StdFunctions.join().applyValue(invoke -> invoke.result()))
            .tls(FrontdoorCustomDomainTlsArgs.builder()
                .certificateType("ManagedCertificate")
                .minimumTlsVersion("TLS12")
                .build())
            .build());
        var exampleFrontdoorRoute = new FrontdoorRoute("exampleFrontdoorRoute", FrontdoorRouteArgs.builder()
            .name("example-route")
            .cdnFrontdoorEndpointId(exampleFrontdoorEndpoint.id())
            .cdnFrontdoorOriginGroupId(exampleFrontdoorOriginGroup.id())
            .cdnFrontdoorOriginIds(exampleFrontdoorOrigin.id())
            .cdnFrontdoorRuleSetIds(exampleFrontdoorRuleSet.id())
            .enabled(true)
            .forwardingProtocol("HttpsOnly")
            .httpsRedirectEnabled(true)
            .patternsToMatches("/*")
            .supportedProtocols(            
                "Http",
                "Https")
            .cdnFrontdoorCustomDomainIds(            
                contoso.id(),
                fabrikam.id())
            .linkToDefaultDomain(false)
            .cache(FrontdoorRouteCacheArgs.builder()
                .queryStringCachingBehavior("IgnoreSpecifiedQueryStrings")
                .queryStrings(                
                    "account",
                    "settings")
                .compressionEnabled(true)
                .contentTypesToCompresses(                
                    "text/html",
                    "text/javascript",
                    "text/xml")
                .build())
            .build());
        var contosoFrontdoorCustomDomainAssociation = new FrontdoorCustomDomainAssociation("contosoFrontdoorCustomDomainAssociation", FrontdoorCustomDomainAssociationArgs.builder()
            .cdnFrontdoorCustomDomainId(contoso.id())
            .cdnFrontdoorRouteIds(exampleFrontdoorRoute.id())
            .build());
        var fabrikamFrontdoorCustomDomainAssociation = new FrontdoorCustomDomainAssociation("fabrikamFrontdoorCustomDomainAssociation", FrontdoorCustomDomainAssociationArgs.builder()
            .cdnFrontdoorCustomDomainId(fabrikam.id())
            .cdnFrontdoorRouteIds(exampleFrontdoorRoute.id())
            .build());
    }
}
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-cdn-frontdoor
      location: West Europe
  exampleZone:
    type: azure:dns:Zone
    name: example
    properties:
      name: example.com
      resourceGroupName: ${example.name}
  exampleFrontdoorProfile:
    type: azure:cdn:FrontdoorProfile
    name: example
    properties:
      name: example-profile
      resourceGroupName: ${example.name}
      skuName: Standard_AzureFrontDoor
  exampleFrontdoorOriginGroup:
    type: azure:cdn:FrontdoorOriginGroup
    name: example
    properties:
      name: example-originGroup
      cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
      loadBalancing:
        additionalLatencyInMilliseconds: 0
        sampleSize: 16
        successfulSamplesRequired: 3
  exampleFrontdoorOrigin:
    type: azure:cdn:FrontdoorOrigin
    name: example
    properties:
      name: example-origin
      cdnFrontdoorOriginGroupId: ${exampleFrontdoorOriginGroup.id}
      enabled: true
      certificateNameCheckEnabled: false
      hostName: contoso.com
      httpPort: 80
      httpsPort: 443
      originHostHeader: www.contoso.com
      priority: 1
      weight: 1
  exampleFrontdoorEndpoint:
    type: azure:cdn:FrontdoorEndpoint
    name: example
    properties:
      name: example-endpoint
      cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
  exampleFrontdoorRuleSet:
    type: azure:cdn:FrontdoorRuleSet
    name: example
    properties:
      name: ExampleRuleSet
      cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
  contoso:
    type: azure:cdn:FrontdoorCustomDomain
    properties:
      name: contoso-custom-domain
      cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
      dnsZoneId: ${exampleZone.id}
      hostName:
        fn::invoke:
          function: std:join
          arguments:
            separator: .
            input:
              - contoso
              - ${exampleZone.name}
          return: result
      tls:
        certificateType: ManagedCertificate
        minimumTlsVersion: TLS12
  fabrikam:
    type: azure:cdn:FrontdoorCustomDomain
    properties:
      name: fabrikam-custom-domain
      cdnFrontdoorProfileId: ${exampleFrontdoorProfile.id}
      dnsZoneId: ${exampleZone.id}
      hostName:
        fn::invoke:
          function: std:join
          arguments:
            separator: .
            input:
              - fabrikam
              - ${exampleZone.name}
          return: result
      tls:
        certificateType: ManagedCertificate
        minimumTlsVersion: TLS12
  exampleFrontdoorRoute:
    type: azure:cdn:FrontdoorRoute
    name: example
    properties:
      name: example-route
      cdnFrontdoorEndpointId: ${exampleFrontdoorEndpoint.id}
      cdnFrontdoorOriginGroupId: ${exampleFrontdoorOriginGroup.id}
      cdnFrontdoorOriginIds:
        - ${exampleFrontdoorOrigin.id}
      cdnFrontdoorRuleSetIds:
        - ${exampleFrontdoorRuleSet.id}
      enabled: true
      forwardingProtocol: HttpsOnly
      httpsRedirectEnabled: true
      patternsToMatches:
        - /*
      supportedProtocols:
        - Http
        - Https
      cdnFrontdoorCustomDomainIds:
        - ${contoso.id}
        - ${fabrikam.id}
      linkToDefaultDomain: false
      cache:
        queryStringCachingBehavior: IgnoreSpecifiedQueryStrings
        queryStrings:
          - account
          - settings
        compressionEnabled: true
        contentTypesToCompresses:
          - text/html
          - text/javascript
          - text/xml
  contosoFrontdoorCustomDomainAssociation:
    type: azure:cdn:FrontdoorCustomDomainAssociation
    name: contoso
    properties:
      cdnFrontdoorCustomDomainId: ${contoso.id}
      cdnFrontdoorRouteIds:
        - ${exampleFrontdoorRoute.id}
  fabrikamFrontdoorCustomDomainAssociation:
    type: azure:cdn:FrontdoorCustomDomainAssociation
    name: fabrikam
    properties:
      cdnFrontdoorCustomDomainId: ${fabrikam.id}
      cdnFrontdoorRouteIds:
        - ${exampleFrontdoorRoute.id}
Create FrontdoorRoute Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new FrontdoorRoute(name: string, args: FrontdoorRouteArgs, opts?: CustomResourceOptions);@overload
def FrontdoorRoute(resource_name: str,
                   args: FrontdoorRouteArgs,
                   opts: Optional[ResourceOptions] = None)
@overload
def FrontdoorRoute(resource_name: str,
                   opts: Optional[ResourceOptions] = None,
                   patterns_to_matches: Optional[Sequence[str]] = None,
                   supported_protocols: Optional[Sequence[str]] = None,
                   cdn_frontdoor_endpoint_id: Optional[str] = None,
                   cdn_frontdoor_origin_group_id: Optional[str] = None,
                   cdn_frontdoor_origin_ids: Optional[Sequence[str]] = None,
                   cdn_frontdoor_rule_set_ids: Optional[Sequence[str]] = None,
                   cache: Optional[FrontdoorRouteCacheArgs] = None,
                   enabled: Optional[bool] = None,
                   forwarding_protocol: Optional[str] = None,
                   https_redirect_enabled: Optional[bool] = None,
                   link_to_default_domain: Optional[bool] = None,
                   name: Optional[str] = None,
                   cdn_frontdoor_origin_path: Optional[str] = None,
                   cdn_frontdoor_custom_domain_ids: Optional[Sequence[str]] = None)func NewFrontdoorRoute(ctx *Context, name string, args FrontdoorRouteArgs, opts ...ResourceOption) (*FrontdoorRoute, error)public FrontdoorRoute(string name, FrontdoorRouteArgs args, CustomResourceOptions? opts = null)
public FrontdoorRoute(String name, FrontdoorRouteArgs args)
public FrontdoorRoute(String name, FrontdoorRouteArgs args, CustomResourceOptions options)
type: azure:cdn:FrontdoorRoute
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args FrontdoorRouteArgs
- 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 FrontdoorRouteArgs
- 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 FrontdoorRouteArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args FrontdoorRouteArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args FrontdoorRouteArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var frontdoorRouteResource = new Azure.Cdn.FrontdoorRoute("frontdoorRouteResource", new()
{
    PatternsToMatches = new[]
    {
        "string",
    },
    SupportedProtocols = new[]
    {
        "string",
    },
    CdnFrontdoorEndpointId = "string",
    CdnFrontdoorOriginGroupId = "string",
    CdnFrontdoorOriginIds = new[]
    {
        "string",
    },
    CdnFrontdoorRuleSetIds = new[]
    {
        "string",
    },
    Cache = new Azure.Cdn.Inputs.FrontdoorRouteCacheArgs
    {
        CompressionEnabled = false,
        ContentTypesToCompresses = new[]
        {
            "string",
        },
        QueryStringCachingBehavior = "string",
        QueryStrings = new[]
        {
            "string",
        },
    },
    Enabled = false,
    ForwardingProtocol = "string",
    HttpsRedirectEnabled = false,
    LinkToDefaultDomain = false,
    Name = "string",
    CdnFrontdoorOriginPath = "string",
    CdnFrontdoorCustomDomainIds = new[]
    {
        "string",
    },
});
example, err := cdn.NewFrontdoorRoute(ctx, "frontdoorRouteResource", &cdn.FrontdoorRouteArgs{
	PatternsToMatches: pulumi.StringArray{
		pulumi.String("string"),
	},
	SupportedProtocols: pulumi.StringArray{
		pulumi.String("string"),
	},
	CdnFrontdoorEndpointId:    pulumi.String("string"),
	CdnFrontdoorOriginGroupId: pulumi.String("string"),
	CdnFrontdoorOriginIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	CdnFrontdoorRuleSetIds: pulumi.StringArray{
		pulumi.String("string"),
	},
	Cache: &cdn.FrontdoorRouteCacheArgs{
		CompressionEnabled: pulumi.Bool(false),
		ContentTypesToCompresses: pulumi.StringArray{
			pulumi.String("string"),
		},
		QueryStringCachingBehavior: pulumi.String("string"),
		QueryStrings: pulumi.StringArray{
			pulumi.String("string"),
		},
	},
	Enabled:                pulumi.Bool(false),
	ForwardingProtocol:     pulumi.String("string"),
	HttpsRedirectEnabled:   pulumi.Bool(false),
	LinkToDefaultDomain:    pulumi.Bool(false),
	Name:                   pulumi.String("string"),
	CdnFrontdoorOriginPath: pulumi.String("string"),
	CdnFrontdoorCustomDomainIds: pulumi.StringArray{
		pulumi.String("string"),
	},
})
var frontdoorRouteResource = new FrontdoorRoute("frontdoorRouteResource", FrontdoorRouteArgs.builder()
    .patternsToMatches("string")
    .supportedProtocols("string")
    .cdnFrontdoorEndpointId("string")
    .cdnFrontdoorOriginGroupId("string")
    .cdnFrontdoorOriginIds("string")
    .cdnFrontdoorRuleSetIds("string")
    .cache(FrontdoorRouteCacheArgs.builder()
        .compressionEnabled(false)
        .contentTypesToCompresses("string")
        .queryStringCachingBehavior("string")
        .queryStrings("string")
        .build())
    .enabled(false)
    .forwardingProtocol("string")
    .httpsRedirectEnabled(false)
    .linkToDefaultDomain(false)
    .name("string")
    .cdnFrontdoorOriginPath("string")
    .cdnFrontdoorCustomDomainIds("string")
    .build());
frontdoor_route_resource = azure.cdn.FrontdoorRoute("frontdoorRouteResource",
    patterns_to_matches=["string"],
    supported_protocols=["string"],
    cdn_frontdoor_endpoint_id="string",
    cdn_frontdoor_origin_group_id="string",
    cdn_frontdoor_origin_ids=["string"],
    cdn_frontdoor_rule_set_ids=["string"],
    cache={
        "compression_enabled": False,
        "content_types_to_compresses": ["string"],
        "query_string_caching_behavior": "string",
        "query_strings": ["string"],
    },
    enabled=False,
    forwarding_protocol="string",
    https_redirect_enabled=False,
    link_to_default_domain=False,
    name="string",
    cdn_frontdoor_origin_path="string",
    cdn_frontdoor_custom_domain_ids=["string"])
const frontdoorRouteResource = new azure.cdn.FrontdoorRoute("frontdoorRouteResource", {
    patternsToMatches: ["string"],
    supportedProtocols: ["string"],
    cdnFrontdoorEndpointId: "string",
    cdnFrontdoorOriginGroupId: "string",
    cdnFrontdoorOriginIds: ["string"],
    cdnFrontdoorRuleSetIds: ["string"],
    cache: {
        compressionEnabled: false,
        contentTypesToCompresses: ["string"],
        queryStringCachingBehavior: "string",
        queryStrings: ["string"],
    },
    enabled: false,
    forwardingProtocol: "string",
    httpsRedirectEnabled: false,
    linkToDefaultDomain: false,
    name: "string",
    cdnFrontdoorOriginPath: "string",
    cdnFrontdoorCustomDomainIds: ["string"],
});
type: azure:cdn:FrontdoorRoute
properties:
    cache:
        compressionEnabled: false
        contentTypesToCompresses:
            - string
        queryStringCachingBehavior: string
        queryStrings:
            - string
    cdnFrontdoorCustomDomainIds:
        - string
    cdnFrontdoorEndpointId: string
    cdnFrontdoorOriginGroupId: string
    cdnFrontdoorOriginIds:
        - string
    cdnFrontdoorOriginPath: string
    cdnFrontdoorRuleSetIds:
        - string
    enabled: false
    forwardingProtocol: string
    httpsRedirectEnabled: false
    linkToDefaultDomain: false
    name: string
    patternsToMatches:
        - string
    supportedProtocols:
        - string
FrontdoorRoute Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The FrontdoorRoute resource accepts the following input properties:
- CdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- CdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- CdnFrontdoor List<string>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- PatternsTo List<string>Matches 
- The route patterns of the rule.
- SupportedProtocols List<string>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- Cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- CdnFrontdoor List<string>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- CdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- CdnFrontdoor List<string>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- Enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- ForwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- HttpsRedirect boolEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- LinkTo boolDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- Name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- CdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- CdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- CdnFrontdoor []stringOrigin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- PatternsTo []stringMatches 
- The route patterns of the rule.
- SupportedProtocols []string
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- Cache
FrontdoorRoute Cache Args 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- CdnFrontdoor []stringCustom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- CdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- CdnFrontdoor []stringRule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- Enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- ForwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- HttpsRedirect boolEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- LinkTo boolDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- Name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor List<String>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- patternsTo List<String>Matches 
- The route patterns of the rule.
- supportedProtocols List<String>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor List<String>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor StringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor List<String>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled Boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol String
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect BooleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo BooleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name String
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor string[]Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- patternsTo string[]Matches 
- The route patterns of the rule.
- supportedProtocols string[]
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor string[]Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor string[]Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect booleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo booleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- cdn_frontdoor_ strendpoint_ id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdn_frontdoor_ strorigin_ group_ id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdn_frontdoor_ Sequence[str]origin_ ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- patterns_to_ Sequence[str]matches 
- The route patterns of the rule.
- supported_protocols Sequence[str]
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache Args 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdn_frontdoor_ Sequence[str]custom_ domain_ ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdn_frontdoor_ strorigin_ path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdn_frontdoor_ Sequence[str]rule_ set_ ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwarding_protocol str
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- https_redirect_ boolenabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- link_to_ booldefault_ domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name str
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor List<String>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- patternsTo List<String>Matches 
- The route patterns of the rule.
- supportedProtocols List<String>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache Property Map
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor List<String>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor StringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor List<String>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled Boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol String
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect BooleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo BooleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name String
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
Outputs
All input properties are implicitly available as output properties. Additionally, the FrontdoorRoute resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Id string
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
- id string
- The provider-assigned unique ID for this managed resource.
- id str
- The provider-assigned unique ID for this managed resource.
- id String
- The provider-assigned unique ID for this managed resource.
Look up Existing FrontdoorRoute Resource
Get an existing FrontdoorRoute 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?: FrontdoorRouteState, opts?: CustomResourceOptions): FrontdoorRoute@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        cache: Optional[FrontdoorRouteCacheArgs] = None,
        cdn_frontdoor_custom_domain_ids: Optional[Sequence[str]] = None,
        cdn_frontdoor_endpoint_id: Optional[str] = None,
        cdn_frontdoor_origin_group_id: Optional[str] = None,
        cdn_frontdoor_origin_ids: Optional[Sequence[str]] = None,
        cdn_frontdoor_origin_path: Optional[str] = None,
        cdn_frontdoor_rule_set_ids: Optional[Sequence[str]] = None,
        enabled: Optional[bool] = None,
        forwarding_protocol: Optional[str] = None,
        https_redirect_enabled: Optional[bool] = None,
        link_to_default_domain: Optional[bool] = None,
        name: Optional[str] = None,
        patterns_to_matches: Optional[Sequence[str]] = None,
        supported_protocols: Optional[Sequence[str]] = None) -> FrontdoorRoutefunc GetFrontdoorRoute(ctx *Context, name string, id IDInput, state *FrontdoorRouteState, opts ...ResourceOption) (*FrontdoorRoute, error)public static FrontdoorRoute Get(string name, Input<string> id, FrontdoorRouteState? state, CustomResourceOptions? opts = null)public static FrontdoorRoute get(String name, Output<String> id, FrontdoorRouteState state, CustomResourceOptions options)resources:  _:    type: azure:cdn:FrontdoorRoute    get:      id: ${id}- 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.
- Cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- CdnFrontdoor List<string>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- CdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- CdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- CdnFrontdoor List<string>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- CdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- CdnFrontdoor List<string>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- Enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- ForwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- HttpsRedirect boolEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- LinkTo boolDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- Name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- PatternsTo List<string>Matches 
- The route patterns of the rule.
- SupportedProtocols List<string>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- Cache
FrontdoorRoute Cache Args 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- CdnFrontdoor []stringCustom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- CdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- CdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- CdnFrontdoor []stringOrigin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- CdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- CdnFrontdoor []stringRule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- Enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- ForwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- HttpsRedirect boolEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- LinkTo boolDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- Name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- PatternsTo []stringMatches 
- The route patterns of the rule.
- SupportedProtocols []string
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor List<String>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor StringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor List<String>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- cdnFrontdoor StringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor List<String>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled Boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol String
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect BooleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo BooleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name String
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- patternsTo List<String>Matches 
- The route patterns of the rule.
- supportedProtocols List<String>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor string[]Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor stringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor stringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor string[]Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- cdnFrontdoor stringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor string[]Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol string
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect booleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo booleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name string
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- patternsTo string[]Matches 
- The route patterns of the rule.
- supportedProtocols string[]
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache
FrontdoorRoute Cache Args 
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdn_frontdoor_ Sequence[str]custom_ domain_ ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdn_frontdoor_ strendpoint_ id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdn_frontdoor_ strorigin_ group_ id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdn_frontdoor_ Sequence[str]origin_ ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- cdn_frontdoor_ strorigin_ path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdn_frontdoor_ Sequence[str]rule_ set_ ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled bool
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwarding_protocol str
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- https_redirect_ boolenabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- link_to_ booldefault_ domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name str
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- patterns_to_ Sequence[str]matches 
- The route patterns of the rule.
- supported_protocols Sequence[str]
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
- cache Property Map
- A - cacheblock as defined below.- NOTE: To disable caching, do not provide the - cacheblock in the configuration file.
- cdnFrontdoor List<String>Custom Domain Ids 
- The IDs of the Front Door Custom Domains which are associated with this Front Door Route.
- cdnFrontdoor StringEndpoint Id 
- The resource ID of the Front Door Endpoint where this Front Door Route should exist. Changing this forces a new Front Door Route to be created.
- cdnFrontdoor StringOrigin Group Id 
- The resource ID of the Front Door Origin Group where this Front Door Route should be created.
- cdnFrontdoor List<String>Origin Ids 
- One or more Front Door Origin resource IDs that this Front Door Route will link to.
- cdnFrontdoor StringOrigin Path 
- A directory path on the Front Door Origin that can be used to retrieve content (e.g. contoso.cloudapp.net/originpath).
- cdnFrontdoor List<String>Rule Set Ids 
- A list of the Front Door Rule Set IDs which should be assigned to this Front Door Route.
- enabled Boolean
- Is this Front Door Route enabled? Possible values are trueorfalse. Defaults totrue.
- forwardingProtocol String
- The Protocol that will be use when forwarding traffic to backends. Possible values are HttpOnly,HttpsOnlyorMatchRequest. Defaults toMatchRequest.
- httpsRedirect BooleanEnabled 
- Automatically redirect HTTP traffic to HTTPS traffic? Possible values are - trueor- false. Defaults to- true.- NOTE: The - https_redirect_enabledrule is the first rule that will be executed.
- linkTo BooleanDefault Domain 
- Should this Front Door Route be linked to the default endpoint? Possible values include trueorfalse. Defaults totrue.
- name String
- The name which should be used for this Front Door Route. Valid values must begin with a letter or number, end with a letter or number and may only contain letters, numbers and hyphens with a maximum length of 90 characters. Changing this forces a new Front Door Route to be created.
- patternsTo List<String>Matches 
- The route patterns of the rule.
- supportedProtocols List<String>
- One or more Protocols supported by this Front Door Route. Possible values are - Httpor- Https.- NOTE: If - https_redirect_enabledis set to- truethe- supported_protocolsfield must contain both- Httpand- Httpsvalues.
Supporting Types
FrontdoorRouteCache, FrontdoorRouteCacheArgs      
- CompressionEnabled bool
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- ContentTypes List<string>To Compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- QueryString stringCaching Behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- QueryStrings List<string>
- Query strings to include or ignore.
- CompressionEnabled bool
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- ContentTypes []stringTo Compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- QueryString stringCaching Behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- QueryStrings []string
- Query strings to include or ignore.
- compressionEnabled Boolean
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- contentTypes List<String>To Compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- queryString StringCaching Behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- queryStrings List<String>
- Query strings to include or ignore.
- compressionEnabled boolean
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- contentTypes string[]To Compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- queryString stringCaching Behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- queryStrings string[]
- Query strings to include or ignore.
- compression_enabled bool
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- content_types_ Sequence[str]to_ compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- query_string_ strcaching_ behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- query_strings Sequence[str]
- Query strings to include or ignore.
- compressionEnabled Boolean
- Is content compression enabled? Possible values are - trueor- false. Defaults to- false.- NOTE: Content won't be compressed when the requested content is smaller than - 1 KBor larger than- 8 MB(inclusive).
- contentTypes List<String>To Compresses 
- A list of one or more Content types(formerly known asMIME types) to compress. Possible values includeapplication/eot,application/font,application/font-sfnt,application/javascript,application/json,application/opentype,application/otf,application/pkcs7-mime,application/truetype,application/ttf,application/vnd.ms-fontobject,application/xhtml+xml,application/xml,application/xml+rss,application/x-font-opentype,application/x-font-truetype,application/x-font-ttf,application/x-httpd-cgi,application/x-mpegurl,application/x-opentype,application/x-otf,application/x-perl,application/x-ttf,application/x-javascript,font/eot,font/ttf,font/otf,font/opentype,image/svg+xml,text/css,text/csv,text/html,text/javascript,text/js,text/plain,text/richtext,text/tab-separated-values,text/xml,text/x-script,text/x-componentortext/x-java-source.
- queryString StringCaching Behavior 
- Defines how the Front Door Route will cache requests that include query strings. Possible values include - IgnoreQueryString,- IgnoreSpecifiedQueryStrings,- IncludeSpecifiedQueryStringsor- UseQueryString. Defaults to- IgnoreQueryString.- NOTE: The value of the - query_string_caching_behaviordetermines if the- query_stringsfield will be used as an include list or an ignore list.
- queryStrings List<String>
- Query strings to include or ignore.
Import
Front Door Routes can be imported using the resource id, e.g.
$ pulumi import azure:cdn/frontdoorRoute:FrontdoorRoute example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/resourceGroup1/providers/Microsoft.Cdn/profiles/profile1/afdEndpoints/endpoint1/routes/route1
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- Azure Classic pulumi/pulumi-azure
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the azurermTerraform Provider.