You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/quickstart-feature-flag-azure-functions-csharp.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.author: zhenlwa
12
12
---
13
13
# Quickstart: Add feature flags to an Azure Functions app
14
14
15
-
In this quickstart, you create an Azure Functions C# code project and use feature flags in it. You use the feature management from Azure App Configuration to centrally store all your feature flags and control their states.
15
+
In this quickstart, you create an Azure Functions app and use feature flags in it. You use the feature management from Azure App Configuration to centrally store all your feature flags and control their states.
16
16
17
17
## Prerequisites
18
18
@@ -60,7 +60,7 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
60
60
61
61
---
62
62
63
-
1. Open *Program.cs* and update the code as follows. You add Azure App Configuration as an additional configuration source by calling the `AddAzureAppConfiguration` method.
63
+
1. Open *Program.cs* and update the code as follows. You add Azure App Configuration as an extra configuration source by calling the `AddAzureAppConfiguration` method.
64
64
65
65
### [Microsoft Entra ID (recommended)](#tab/entra-id)
66
66
@@ -112,7 +112,6 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
112
112
.UseFeatureFlags();
113
113
});
114
114
```
115
-
116
115
---
117
116
118
117
The `UseFeatureFlags()` methodinstructstheprovidertoloadfeatureflags. Bydefault, allfeatureflagswithoutlabelsareloadedandrefreshedevery30seconds. Theselectionandrefreshbehavioroffeatureflagsareconfiguredindependentlyfromotherconfigurationkey-values. Youcancustomizethesebehaviorsbypassinga `FeatureFlagOptions` actiontothe `UseFeatureFlags` method. Use `FeatureFlagOptions.Select` tospecifythekeysandlabelsoffeatureflagstoload, anduse `FeatureFlagOptions.SetRefreshInterval` tooverridethedefaultrefreshinterval.
@@ -177,7 +176,6 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
177
176
?$"The Feature Flag '{featureName}' is turned ON!"
178
177
:$"The Feature Flag '{featureName}' is turned OFF");
179
178
}
180
-
181
179
```
182
180
183
181
## Test the function locally
@@ -239,7 +237,7 @@ You can connect to your App Configuration store using Microsoft Entra ID (recomm
0 commit comments