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
+18-36Lines changed: 18 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -12,7 +12,7 @@ ms.date: 12/02/2024
12
12
13
13
# Roll out features to targeted audiences in an ASP.NET Core application
14
14
15
-
In this guide, you'll use the targeting filter to roll out a feature to a targeted audience for your ASP.NET Core application. For more information about the targeting filter, see [Roll out features to targeted audiences](./howto-targetingfilter.md).
15
+
In this guide, you'll use the targeting filter to roll out a feature to targeted audiences for your ASP.NET Core application. For more information about the targeting filter, see [Roll out features to targeted audiences](./howto-targetingfilter.md).
16
16
17
17
## Prerequisites
18
18
@@ -31,18 +31,10 @@ In this section, you create a web application that allows users to sign in and u
31
31
dotnet new webapp --auth Individual -o TestFeatureFlags
32
32
```
33
33
34
-
1. Navigate to the newly created *TestFeatureFlags* directory.
35
-
36
-
```dotnetcli
37
-
cd TestFeatureFlags
38
-
```
39
-
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.
34
+
1. Navigate to the newly created *TestFeatureFlags* directory and add references to the following NuGet packages.
41
35
42
36
### [Microsoft Entra ID (recommended)](#tab/entra-id)
1. Create a user secret for the application by navigating into the *TestFeatureFlags* folder and running the following command.
52
+
1. Create a user secret for the application by running the following commands.
69
53
70
54
### [Microsoft Entra ID (recommended)](#tab/entra-id)
71
55
@@ -78,11 +62,11 @@ In this section, you create a web application that allows users to sign in and u
78
62
79
63
### [Connection string](#tab/connection-string)
80
64
81
-
The command uses [Secret Manager](/aspnet/core/security/app-secrets) to store a secret named `ConnectionStrings:AppConfig`, which stores the connection string for your App Configuration store. Replace the `<your_connection_string>` placeholder with your App Configuration store's connection string. You can find the connection string in your App Configuration store's **Access settings** in the Azure portal.
65
+
The command uses [Secret Manager](/aspnet/core/security/app-secrets) to store a secret named `ConnectionStrings:AppConfiguration`, which stores the connection string for your App Configuration store. Replace the `<your-App-Configuration-connection-string>` placeholder with your App Configuration store's read-only connection string. You can find the connection string in your App Configuration store's **Access settings** in the Azure portal.
82
66
83
67
```dotnetcli
84
68
dotnet user-secrets init
85
-
dotnet user-secrets set ConnectionStrings:AppConfig "<your_connection_string>"
69
+
dotnet user-secrets set ConnectionStrings:AppConfiguration "<your-App-Configuration-connection-string>"
86
70
```
87
71
---
88
72
@@ -102,18 +86,15 @@ In this section, you create a web application that allows users to sign in and u
102
86
103
87
var builder = WebApplication.CreateBuilder(args);
104
88
105
-
// Load configuration from Azure App Configuration
0 commit comments