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/howto-targetingfilter-aspnet-core.md
+39-37Lines changed: 39 additions & 37 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ In this guide, you'll use the targeting filter to roll out a feature to a target
23
23
24
24
## Create a web application with a feature flag
25
25
26
-
In this section, you will create a web application that allows users to sign in and use the *Beta* feature flag you created before.
26
+
In this section, you create a web application that allows users to sign in and use the *Beta* feature flag you created before.
27
27
28
28
1. Create a web application that authenticates against a local database using the following command.
29
29
@@ -37,11 +37,11 @@ In this section, you will create a web application that allows users to sign in
37
37
cd TestFeatureFlags
38
38
```
39
39
40
-
1.Connect to your App Configuration store using Microsoft Entra ID (recommended), or a connection string.
40
+
1.Add references to the following NuGet packages to connect to your App Configuration store using Microsoft Entra ID (recommended) or a connection string.
41
41
42
42
### [Microsoft Entra ID (recommended)](#tab/entra-id)
@@ -59,7 +59,7 @@ In this section, you will create a web application that allows users to sign in
59
59
```
60
60
---
61
61
62
-
1. Run the following command to restore packages for your project:
62
+
1. Restore packages for your project:
63
63
64
64
```dotnetcli
65
65
dotnet restore
@@ -89,40 +89,42 @@ In this section, you will create a web application that allows users to sign in
89
89
1. Add Azure App Configuration and feature management to your application.
90
90
91
91
### [Microsoft Entra ID (recommended)](#tab/entra-id)
92
+
93
+
1. You use the `DefaultAzureCredential` to authenticate to your App Configuration store. Follow the [instructions](./concept-enable-rbac.md#authentication-with-token-credentials) to assign your credential the **App Configuration Data Reader** role. Be sure to allow sufficient time for the permission to propagate before running your application.
92
94
93
-
Update the *Program.cs* file with the following code.
94
-
95
-
``` C#
96
-
// Existing code in Program.cs
97
-
// ... ...
98
-
99
-
using Azure.Identity;
100
-
101
-
var builder = WebApplication.CreateBuilder(args);
102
-
103
-
// Load configuration from Azure App Configuration
0 commit comments