<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk" -->

---
title: How to integrate Feature Flags stored on Azure App...
description: A step-by-step walkthrough shows how to move Feature Flags from local appsettings.json into Azure App Configuration for an ASP.NET Core application. It covers...
canonical: https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application | daily.dev
og:description: A step-by-step walkthrough shows how to move Feature Flags from local appsettings.json into Azure App Configuration for an ASP.NET Core application. It covers...
og:url: https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk
og:image: https://api.daily.dev/og/posts/Ak4Zqy0Jk.png
og:image:alt: How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application

**[Code4IT](https://daily.dev/sources/code4it)** · 8 min read · 0 upvotes · 0 comments

## Summary

A step-by-step walkthrough shows how to move Feature Flags from local appsettings.json into Azure App Configuration for an ASP.NET Core application. It covers installing the Microsoft.Azure.AppConfiguration.AspNetCore package, connecting via connection string, enabling UseFeatureFlags, configuring flags like Header, Footer, and PrivacyPage in the Azure Feature Manager UI, applying the Percentage filter as a custom filter on Azure, and setting a custom CacheExpirationInterval to control how often flag values refresh. A full minimal code sample ties all the pieces together.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://www.code4it.dev/blog/feature-flags-from-azure-app-configuration>

## Questions this post answers

### How do I set a custom cache expiration interval for feature flags read from Azure App Configuration in ASP.NET Core?

Configure the CacheExpirationInterval property inside the UseFeatureFlags options when calling AddAzureAppConfiguration, for example setting it to TimeSpan.FromSeconds(10). By default, feature flag values are cached internally for 30 seconds; adjusting this interval lets you balance fewer calls to App Configuration against faster propagation of flag changes.

_daily.dev surfaces practical configuration patterns like this for teams tuning feature flag refresh behavior._

### How do I use the Percentage filter for feature flags when the flags are stored in Azure App Configuration instead of appsettings.json?

Add a new Feature Filter to the flag in the Azure Portal, setting Filter Type to Custom, Custom filter name to Percentage, and adding a key named Value set to the desired percentage, such as 60. This mirrors the appsettings.json configuration since the PercentageFilter is not available out-of-the-box in the Azure portal UI itself, only in the NuGet package.

_Developers rolling out gradual feature releases can find configuration walkthroughs like this on daily.dev._

## Similar posts on daily.dev

- [Coding Azure 23: Reading Settings from App Configuration](https://daily.dev/posts/coding-azure-23-reading-settings-from-app-configuration-4d6bh4snq) · Telerik · 2 upvotes · 0 comments
- [Deploying ASP.NET Core Web API to Azure and Docker](https://daily.dev/posts/deploying-asp-net-core-web-api-to-azure-and-docker-cvbz8psyb) · We Are .NET · 2 upvotes · 0 comments
- [How to Migrate from ASP.NET Framework to ASP.NET Core](https://daily.dev/posts/how-to-migrate-from-asp-net-framework-to-asp-net-core-e22ntd3va) · freeCodeCamp · 4 upvotes · 0 comments
- [How to Upgrade ASP.NET MVC to .NET Step by Step](https://daily.dev/posts/how-to-upgrade-asp-net-mvc-to-net-step-by-step-i3p1uesfs) · C\# Corner · 2 upvotes · 0 comments
- [Coding Azure 22: Add Configuration Info to App Config Service](https://daily.dev/posts/coding-azure-22-add-configuration-info-to-app-config-service-ndbnlxdqi) · Telerik · 0 upvotes · 0 comments

---

Tags: [#azure](https://daily.dev/tags/azure), [#c#](https://daily.dev/tags/c#), [#aspnet](https://daily.dev/tags/aspnet)

[View this post on daily.dev](https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application","url":"https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk"},"datePublished":"2026-10-04T13:07:19.991Z","dateModified":"2026-10-04T13:13:43.954Z","description":"A step-by-step walkthrough shows how to move Feature Flags from local appsettings.json into Azure App Configuration for an ASP.NET Core application. It covers...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c4369ae438e9dbd2411eb06aaa48bed2?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/c4369ae438e9dbd2411eb06aaa48bed2?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Code4IT","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Code4IT","logo":"https://media.daily.dev/image/upload/s--OaaG4G10--/f_auto,q_auto/v1791119049/logos/code4it?_a=BAMAMicg0","url":"https://daily.dev/sources/code4it"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"azure,c#,aspnet","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Code4IT","item":"https://daily.dev/sources/code4it"},{"@type":"ListItem","position":3,"name":"How to integrate Feature Flags stored on Azure App Configuration in an ASP.NET Core Application"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/how-to-integrate-feature-flags-stored-on-azure-app-configuration-in-an-asp-net-core-application-ak4zqy0jk#faq","mainEntity":[{"@type":"Question","name":"How do I set a custom cache expiration interval for feature flags read from Azure App Configuration in ASP.NET Core?","acceptedAnswer":{"@type":"Answer","text":"Configure the CacheExpirationInterval property inside the UseFeatureFlags options when calling AddAzureAppConfiguration, for example setting it to TimeSpan.FromSeconds(10). By default, feature flag values are cached internally for 30 seconds; adjusting this interval lets you balance fewer calls to App Configuration against faster propagation of flag changes. daily.dev surfaces practical configuration patterns like this for teams tuning feature flag refresh behavior."}},{"@type":"Question","name":"How do I use the Percentage filter for feature flags when the flags are stored in Azure App Configuration instead of appsettings.json?","acceptedAnswer":{"@type":"Answer","text":"Add a new Feature Filter to the flag in the Azure Portal, setting Filter Type to Custom, Custom filter name to Percentage, and adding a key named Value set to the desired percentage, such as 60. This mirrors the appsettings.json configuration since the PercentageFilter is not available out-of-the-box in the Azure portal UI itself, only in the NuGet package. Developers rolling out gradual feature releases can find configuration walkthroughs like this on daily.dev."}}]}
```

