Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Integrating Azure App Configuration with Azure Front Door enables your client applications to retrieve configuration from edge locations worldwide, ensuring optimal performance at any scale. The integration process involves the following steps:
Create configuration data in Azure App Configuration - Define your application's key-values, feature flags, or snapshots in Azure App Configuration.
Connect Azure App Configuration to Azure Front Door - Configure the connection between your App Configuration store and Azure Front Door through the Azure portal. The portal provides a guided experience to set up the configuration filters to control the data that is exposed through the Azure Front Door endpoint. Set up Azure Front Door to connect to App Config
Connect application to Azure Front Door - Configure your client application to retrieve configuration from the Azure Front Door endpoint using the App Configuration provider. The provider handles anonymous authentication and dynamic configuration updates. This document explains how to set up this connection.
Deploy and manage configuration - Deploy your application to production. Your clients now retrieve configuration from the nearest Azure Front Door edge location automatically. Update configuration values in Azure App Configuration as needed - changes propagate globally based on your configured Azure Front Door cache expiration time without requiring application updates or redeployments.
Tip
For a visual overview of the end‑to‑end setup, see the configuration at scale walkthrough video.
Client application samples
The following code demonstrates how to load configuration from Azure Front Door. The application retrieves all keys starting with an "App1:" prefix and checks for updates every minute. When the application requests updates, Azure Front Door returns cached values, if possible, otherwise it retrieves fresh configuration from App Configuration service.
Replace {YOUR-AFD-ENDPOINT} with your Azure Front Door endpoint, which looks something like https://xxxx.azurefd.net.
Use the ConnectAzureFrontDoor API to load configuration settings from Azure Front Door.
builder.Configuration.AddAzureAppConfiguration(options =>
{
options.ConnectAzureFrontDoor(new Uri("{YOUR-AFD-ENDPOINT}"))
.Select("App1:*")
.ConfigureRefresh(refreshOptions =>
{
refreshOptions.RegisterAll()
.SetRefreshInterval(TimeSpan.FromMinutes(1));
});
});
For a complete sample app, refer to MAUI App with Azure App Configuration and Azure Front Door.
Considerations and edge cases
- Request scoping: The key-value filters used by your application must match exactly the filters configured for the Azure Front Door endpoint; any mismatch will cause the request to be rejected. For example, if your endpoint is configured to allow access to keys starting with an "App1:" prefix, the application code must also load keys starting with "App1:". However, if your application loads keys starting with a more specific prefix like "App1:Prod:", the request is rejected. See examples for matching application filters with endpoint filters.
- Exclusively loading feature flags: If your application loads only feature flags, you should add two key filters in the Azure Front Door rules - one for ALL keys with no label and second for all keys starting with ".appconfig.featureflag/{YOUR-FEATURE-FLAG-PREFIX}".
- Refresh strategy: Applications loading from Azure Front Door cannot use sentinel key refresh. If refresh is enabled, the application must be configured to monitor all selected keys for changes.
- Snapshot references: If your application loads a key-value that is a snapshot reference, Azure Front Door must be configured to allowlist the referenced snapshot. Include the snapshot name in your Azure Front Door filters to enable snapshot resolution.
Troubleshooting
Configuration doesn't load
- Verify Azure Front Door endpoint URL is correctly configured in application code.
- Check for warnings in the App Config Portal and fix the issues if any.
- Make sure the correct scoping filters are set when configuring the Azure Front Door endpoint. These filters (for key-values, snapshots, and feature flags) define the regex rules that block requests that don't match specified filters. If your app can’t access its configuration, review Azure Front Door rules to find any blocking regex patterns. Update the rule with the right filter or create a new AFD endpoint from the App Configuration portal. Learn more about Azure Front Door routing rules.
Note
To modify Azure Front Door endpoint rules, use the Azure Front Door portal. Editing these settings from the App Configuration portal will be available in a future release.
Configuration doesn't refresh
- Verify that both the application refresh interval and Azure Front Door cache TTL are properly configured. For details on configuration refresh timing, see Caching behavior in hyperscale configuration.
Language availability
| Language | Minimum version / status | Package Link |
|---|---|---|
| .NET | 8.5.0-preview | Microsoft.Extensions.Configuration.AzureAppConfiguration |
| JavaScript | 2.3.0-preview | @azure/app-configuration-provider |
| Java | Work in progress | N/A |
| Python | Work in progress | N/A |
| Go | Work in progress | N/A |