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/enable-dynamic-configuration-aspnet-core.md
+7-26Lines changed: 7 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ author: zhenlan
6
6
ms.service: azure-app-configuration
7
7
ms.devlang: csharp
8
8
ms.topic: tutorial
9
-
ms.date: 11/27/2024
9
+
ms.date: 12/10/2024
10
10
ms.author: zhenlwa
11
11
ms.custom: devx-track-csharp
12
12
---
@@ -35,41 +35,22 @@ A *sentinel key* is a key that you update after you complete the change of all o
35
35
36
36
## Reload data from App Configuration
37
37
38
-
1. Open *Program.cs*, and update the `AddAzureAppConfiguration` method you added previously during the quickstart. Connect to App Configuration using Microsoft Entra ID (recommended), or a connection string.
39
-
40
-
### [Microsoft Entra ID (recommended)](#tab/entra-id)
38
+
1. Open *Program.cs*, and update the `AddAzureAppConfiguration` method you added during the quickstart. You can connect to App Configuration using either Microsoft Entra ID (recommended) or a connection string. The following code snippet demonstrates using Microsoft Entra ID.
41
39
42
40
You use the `DefaultAzureCredential` to authenticate to your App Configuration store. While completing the quickstart listed in the prerequisites, you already [assigned your credential the **App Configuration Data Reader role**](./concept-enable-rbac.md#authentication-with-token-credentials).
43
-
44
-
```csharp
45
-
// Load configuration from Azure App Configuration
1. Open *Program.cs*, and add a call to the `UseFeatureFlags` method inside the `AddAzureAppConfiguration` call. Connect to App Configuration using Microsoft Entra ID (recommended), or a connection string.
45
-
46
-
### [Microsoft Entra ID (recommended)](#tab/entra-id)
44
+
1. Open *Program.cs*, and add a call to the `UseFeatureFlags` method inside the `AddAzureAppConfiguration` call. You can connect to App Configuration using either Microsoft Entra ID (recommended) or a connection string. The following code snippet demonstrates using Microsoft Entra ID.
47
45
48
46
```csharp
49
47
// Load configuration from Azure App Configuration
> When no parameter is passed to the `UseFeatureFlags` method, it loads *all* feature flags with *no label* in your App Configuration store. The default refresh interval of feature flags is 30 seconds. You can customize this behavior via the `FeatureFlagOptions` parameter. For example, the following code snippet loads only feature flags that start with *TestApp:* in their *key name* and have the label *dev*. The code also changes the refresh interval time to 5 minutes. Note that this refresh interval time is separate from that for regular key-values.
0 commit comments