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-azure-kubernetes-service.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ ms.author: linglingye
14
14
15
15
# Tutorial: Use dynamic configuration in Azure Kubernetes Service
16
16
17
-
If you use Azure Kubernetes Service (AKS), this tutorial will show you how to enable dynamic configuration for your workloads in AKS by leveraging Azure App Configuration and its Kubernetes Provider. The tutorial assumes that you have already worked through the quickstart and have an App Configuration Kubernetes Provider set up, so before proceeding, make sure you have completed the [Use Azure App Configuration in Azure Kubernetes Service](./quickstart-azure-kubernetes-service.md) quickstart.
17
+
If you use Azure Kubernetes Service (AKS), this tutorial shows you how to enable dynamic configuration for your workloads in AKS by leveraging Azure App Configuration and its Kubernetes Provider. The tutorial assumes that you work through the quickstart and have an App Configuration Kubernetes Provider set up, so before proceeding, make sure you complete the [Use Azure App Configuration in Azure Kubernetes Service](./quickstart-azure-kubernetes-service.md) quickstart.
18
18
19
19
> [!TIP]
20
20
> See [options](./howto-best-practices.md#azure-kubernetes-service-access-to-app-configuration) for workloads hosted in Kubernetes to access Azure App Configuration.
@@ -38,7 +38,7 @@ Add the following key-value to your App Configuration store. For more informatio
38
38
39
39
## Reload data from App Configuration
40
40
41
-
1. Open the *appConfigurationProvider.yaml* file located in the *Deployment* directory. Then, add the `refresh` section under the `configuration` property as shown below. It enables configuration refresh by monitoring the sentinel key.
41
+
1. Open the *appConfigurationProvider.yaml* file located in the *Deployment* directory. Then, add the `refresh` section under the `configuration` property. It enables configuration refresh by monitoring the sentinel key.
42
42
43
43
```yaml
44
44
apiVersion: azconfig.io/v1
@@ -66,15 +66,15 @@ Add the following key-value to your App Configuration store. For more informatio
66
66
> [!TIP]
67
67
> By default, the Kubernetes provider polls the monitoring key-values every 30 seconds for change detection. However, you can change this behavior by setting the `interval` property of the `refresh`. If you want to reduce the number of requests to your App Configuration store, you can adjust it to a higher value.
68
68
69
-
1. Open the *deployment.yaml* file in the *Deployment* directory and add the following content to the `spec.containers` section. Your application will load configuration from a volume-mounted file the App Configuration Kubernetes provider generates. By setting this environment variable, your application can [ use polling to monitor changes in mounted files](/dotnet/api/microsoft.extensions.fileproviders.physicalfileprovider.usepollingfilewatcher).
69
+
1. Open the *deployment.yaml* file in the *Deployment* directory and add the following content to the `spec.containers` section. Your application loads configuration from a volume-mounted file the App Configuration Kubernetes provider generates. By setting this environment variable, your application can [ use polling to monitor changes in mounted files](/dotnet/api/microsoft.extensions.fileproviders.physicalfileprovider.usepollingfilewatcher).
70
70
71
71
```yaml
72
72
env:
73
73
- name: DOTNET_USE_POLLING_FILE_WATCHER
74
74
value: "true"
75
75
```
76
76
77
-
1. Run the following command to deploy the change. Replace the namespace if you are using your existing AKS application.
77
+
1. Run the following command to deploy the change. Replace the namespace if you're using your existing AKS application.
78
78
79
79
```console
80
80
kubectl apply -f ./Deployment -n appconfig-demo
@@ -92,7 +92,7 @@ Add the following key-value to your App Configuration store. For more informatio
92
92
| Settings:Message | Hello from Azure App Configuration - now with live updates! |
93
93
| Settings:Sentinel | 2 |
94
94
95
-
1. After refreshing the browser a few times, you will see the updated content once the ConfigMap is updated in 30 seconds.
95
+
1. After refreshing the browser a few times, you'll see the updated content once the ConfigMap is updated in 30 seconds.
96
96
97
97

Copy file name to clipboardExpand all lines: articles/azure-app-configuration/howto-targetingfilter-aspnet-core.md
+18-18Lines changed: 18 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
---
2
2
title: Enable staged rollout of features for targeted audiences
3
3
titleSuffix: Azure App Configuration
4
-
description: Learn how to enable staged rollout of features for targeted audiences
4
+
description: Learn how to enable staged rollout of features for targeted audiences.
5
5
ms.service: azure-app-configuration
6
6
ms.devlang: csharp
7
7
author: maud-lv
@@ -12,9 +12,9 @@ ms.date: 02/16/2024
12
12
13
13
# Enable staged rollout of features for targeted audiences
14
14
15
-
Feature flags allow you to dynamically activate or deactivate functionality in your application. Feature filters determine the state of a feature flag each time it's evaluated. The `Microsoft.FeatureManagement` library includes `TargetingFilter`, which enables a feature flag for a specified list of users and groups, or for a specified percentage of users. `TargetingFilter` is "sticky." This means that once an individual user receives a feature, they'll continue to see that feature on all future requests. You can use `TargetingFilter` to enable a feature for a specific account during a demo, to progressively roll out new features to users in different groups or "rings," and much more.
15
+
Feature flags allow you to dynamically activate or deactivate functionality in your application. Feature filters determine the state of a feature flag each time it's evaluated. The `Microsoft.FeatureManagement` library includes `TargetingFilter`, which enables a feature flag for a specified list of users and groups, or for a specified percentage of users. `TargetingFilter` is "sticky." This means that once an individual user receives a feature, they'll continue to see that feature on all future requests. You can use `TargetingFilter` to enable a feature for a specific account during a demo, to progressively rollout new features to users in different groups or "rings," and much more.
16
16
17
-
In this article, you'll learn how to roll out a new feature in an ASP.NET Core web application to specified users and groups, using `TargetingFilter` with Azure App Configuration.
17
+
In this article, you learn how to roll out a new feature in an ASP.NET Core web application to specified users and groups, using `TargetingFilter` with Azure App Configuration.
18
18
19
19
## Prerequisites
20
20
@@ -23,31 +23,31 @@ In this article, you'll learn how to roll out a new feature in an ASP.NET Core w
23
23
24
24
## Create a web application with feature flags and authentication
25
25
26
-
To roll out features based on users and groups, you'll need a web application that allows users to sign in.
26
+
To roll out features based on users and groups, you need a web application that allows users to sign in.
27
27
28
-
1. Create a web application that authenticates against a local database using the following command:
28
+
1. Create a web application that authenticates against a local database using the following command.
29
29
30
30
```dotnetcli
31
31
dotnet new mvc --auth Individual -o TestFeatureFlags
32
32
```
33
33
34
-
1. Build and run, then select the **Register** link in the upper right corner to create a new user account. Use an email address of `[email protected]`. On the **Register Confirmation** screen, select **Click here to confirm your account**.
34
+
1. Build and run. Then select the **Register** link in the upper right corner to create a new user account. Use an email address of `[email protected]`. On the **Register Confirmation** screen, select **Click here to confirm your account**.
35
35
36
-
1. Follow the instructions in [Quickstart: Add feature flags to an ASP.NET Core app](./quickstart-feature-flag-aspnet-core.md) to add a feature flag to your new web application.
36
+
1. Follow the instructions in the [Quickstart](./quickstart-feature-flag-aspnet-core.md) to add a feature flag to your new web application.
37
37
38
38
1. Toggle the feature flag in App Configuration. Validate that this action controls the visibility of the **Beta** item on the navigation bar.
39
39
40
40
## Update the web application code to use TargetingFilter
41
41
42
-
At this point, you can use the feature flag to enable or disable the `Beta` feature for all users. To enable the feature flag for some users while disabling it for others, update your code to use `TargetingFilter`. In this example, you'll use the signed-in user's email address as the user ID, and the domain name portion of the email address as the group. You'll add the user and group to the `TargetingContext`. The `TargetingFilter` uses this context to determine the state of the feature flag for each request.
42
+
At this point, you can use the feature flag to enable or disable the `Beta` feature for all users. To enable the feature flag for some users while disabling it for others, update your code to use `TargetingFilter`. In this example, you use the signed-in user's email address as the user ID, and the domain name portion of the email address as the group. You add the user and group to the `TargetingContext`. The `TargetingFilter` uses this context to determine the state of the feature flag for each request.
43
43
44
44
1. Update to the latest version of the `Microsoft.FeatureManagement.AspNetCore` package.
0 commit comments