Edit

Share via


Connect Azure App Configuration to Azure Front Door (preview)

Azure App Configuration supports direct integration with Azure Front Door (preview) to deliver configuration data through Azure's global content delivery network. This integration provides hyperscale global delivery of application settings and feature flags while centralizing configuration management in the Azure portal.

You can connect your App Configuration store to existing Azure Front Door profiles or create new profiles directly from the App Configuration interface for a quick start.

Note

This feature is currently available only in the Azure public cloud.

Prerequisites

Before you begin, ensure you have:

  • An active Azure subscription
  • An existing Azure App Configuration store
  • Permissions to create and manage Azure Front Door resources (Contributor or equivalent)
  • Permissions to assign roles on the App Configuration resource (Owner or User Access Administrator)
  • App Configuration Data Owner or App Configuration Data Reader role
  • Basic understanding of CDN and content delivery concepts

Connect to Azure Front Door

To connect Azure Front Door with your App Configuration store, follow these steps:

  1. In the Azure portal, navigate to your App Configuration store.

  2. In the left navigation pane, under Settings, select Azure Front Door (preview).

    Screenshot showing  Azure Front Door resource selection in the App Configuration store.

  3. Configure the connection settings:

    • Subscription: Select the subscription for your Azure Front Door profile
    • Resource group: Select the resource group for the profile
    • Create new/use existing profile: Choose whether to create a new profile or use an existing one
  4. Continue with the steps that match your selection:

Create a new Azure Front Door profile

Create a new Azure Front Door profile and connect it to your App Configuration store.

Basic settings

  1. In Profile name, enter a name for your new Azure Front Door profile.

    Screenshot showing creation of a new Azure Front Door profile in the App Configuration store.

  2. Choose a Pricing tier based on your needs:

    • Azure Front Door Standard: Content delivery optimized
    • Azure Front Door Premium: Security optimized with enhanced security features

    For a detailed overview and comparison of Azure Front Door pricing tiers, see Compare pricing between Azure Front Door tiers.

  3. Create an endpoint that uses this App Configuration store as origin, and configure the following settings.

Endpoint configuration settings

  1. Endpoint information:

    • Endpoint name: Enter a descriptive name for your endpoint
    • Endpoint host name: Automatically generated based on your endpoint name
    • Origin host name: Select your App Configuration store and any replicas from the dropdown. These are added to the origin group so Azure Front Door can route traffic to them. For details on how origin groups improve availability and performance, see Azure Front Door routing methods Screenshot showing  Azure Front Door endpoint details in the App Configuration store.
  2. Identity type: Choose the managed identity type for Azure Front Door to access your App Configuration store:

    • System assigned managed identity: Automatically enabled; no additional selection required.
    • User assigned managed identity: Select the managed identity from the dropdown.
  3. Cache Duration for Azure Front Door: Configure cache duration to balance performance and origin load. We recommend a minimum TTL of 10 minutes, but you can choose a value that fits your application. Content loaded from AFD will be eventually consistent. Setting the cache duration too short may increase origin requests and lead to throttling. For more details about caching, see Caching with Azure Front Door.

  4. Filter Configuration to scope the request: Configure one or more filters to control which requests pass through Azure Front Door. This prevents accidental exposure of sensitive configuration and ensures only the settings your application needs are accessible. The filters here must exactly match those used in your application code; otherwise, requests will be rejected by Azure Front Door.

    Note

    To configure scoping filters correctly, ensure that the prefix filter in Azure Front Door exactly matches the selector your application uses to load keys from App Configuration. For example, if your application loads keys using the prefix "App1:", configure the same Starts with = "App1:" key filter in Azure Front Door. If your application instead uses a more specific key prefix such as "App1:Version", but Azure Front Door is allowlisted for "App1:" key filter (or vice versa), the request will be rejected because the selectors do not match exactly. See examples for matching application filters with endpoint filters.

    • Key of key-value filter: The key filter to apply when querying Azure App Configuration for key-values. Reserved characters: asterisk (*), comma (,), and backslash (\) must be escaped using a backslash (\) when filtering multiple key-values.
    • Label: The label filter to apply when querying Azure App Configuration for key-values. Reserved characters: asterisk (*), comma (,), and backslash (\) must be escaped using a backslash (\) when filtering multiple key-values.
    • Tags: The tag name and value filter to apply when querying Azure App Configuration for key-values. Reserved characters: asterisk (*), comma (,), backslash (\), and equals (=) must always be escaped using a backslash (\).
    • Key of feature flag filter: The filter to apply to feature flag names when querying Azure App Configuration for feature flags. Reserved characters: asterisk (*), comma (,), and backslash (\) must be escaped using a backslash (\) when filtering multiple feature flags. The reserved feature flag prefix .appconfig.featureflag/ will be automatically appended to every feature flag key filter.
    • Snapshot name: Name of snapshot whose content should be accessible through this Azure Front Door endpoint. You can select one or more snapshots to restrict access to specific snapshots.
  5. Select Create & Connect to create the profile and establish the connection.

Connect to an existing Azure Front Door profile

Follow these steps to connect an existing Azure Front Door profile.

  1. In Profile name, select your existing Azure Front Door profile from the dropdown.

    Screenshot showing use of existing profile in the App Configuration store.

    Note

    If you switch subscriptions after selecting Use existing, you may see the error "Failed to get Azure Front Door profile" in the notifications panel. You can ignore this message and continue with the selection.

  2. Select Connect to establish the connection.

  3. After successful connection, you see your subscription information, the connected Azure Front Door profile name as a clickable link, and an Existing endpoints section. Any endpoints in the connected Azure Front Door profile that use this App Configuration store or its replicas as an origin appear here.

  4. To create an additional endpoint, select Create endpoint, then configure the endpoint, and select Create.

Endpoints appear in the Existing endpoints table, showing endpoint URL, origin URL, origin location, and any configuration warnings that need attention.

Monitor endpoint status

Use the Existing endpoints table to monitor your Azure Front Door endpoints and identify configuration issues.

Screenshot showing Azure Front Door connections in the App Configuration store.

The table displays:

  • Azure Front Door Endpoint: The endpoint URL (clickable link)
  • Origin: The origin URL pointing to your App Configuration store or replica
  • Origin Location: The Azure region where the origin is located
  • Warnings: Configuration issues that may need attention

Monitor for warnings such as "Identity not configured" which indicate additional setup requirements. Address these warnings promptly to ensure proper functionality.

Disconnect Azure Front Door

When you no longer need to manage your Front Door profile through App Configuration, disconnect your App Configuration store from Azure Front Door.

  1. From the Azure Front Door pane in your App Configuration store, select Disconnect.

  2. Confirm the action by selecting OK.

Warning

After disconnecting, you won’t be able to manage the Front Door profile or its endpoints through App Configuration. However, your Front Door profile and endpoints will continue to exist in Azure, and your application will keep fetching configuration via Front Door as expected, unless other changes are made.

Troubleshoot common issues

If you encounter issues while connecting Azure Front Door to your App Configuration store, consider the following troubleshooting steps:

  • Ensure that you have sufficient permissions to create and manage Front Door resources (Contributor or equivalent)
  • Ensure that you have sufficient permissions to assign roles (Owner or User Access Administrator).
  • Ensure that the selected managed identity has the App Configuration Data Reader role assignment.
  • From Front Door portal, make sure that the origin is correctly set up to be able to authenticate with the App Configuration origin. Learn how to use managed identities to authenticate to origins
  • Verify that the Azure Front Door resource provider is registered in your subscription.

Next steps