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
# Quickstart: Manage feature flags in Azure App Configuration
17
17
18
-
Azure App Configuration includes feature flags, which you can use to enable or disable a functionality, and variant feature flags (preview), which allow multiple variations of a feature flag.
18
+
Azure App Configuration includes feature flags, which you can use to enable or disable a functionality, and variant feature flags, which allow multiple variations of a feature flag.
19
19
20
20
The Feature manager in the Azure portal provides a UI for creating and managing the feature flags and the variant feature flags that you use in your applications.
21
21
@@ -59,9 +59,9 @@ az appconfig feature set --name <name> --feature Beta
59
59
60
60
---
61
61
62
-
## Create a variant feature flag (preview)
62
+
## Create a variant feature flag
63
63
64
-
Add a new variant feature flag (preview) by opening your Azure App Configuration store in the Azure portal and from the **Operations** menu, select **Feature manager** > **Create**. Then select **Variant feature flag (Preview)**.
64
+
Add a new variant feature flag by opening your Azure App Configuration store in the Azure portal and from the **Operations** menu, select **Feature manager** > **Create**. Then select **Variant feature flag**.
65
65
66
66
:::image type="content" source="media\manage-feature-flags\variant-feature-flags-menu.png" alt-text="Screenshot of the Azure platform. Create a variant feature flag.":::
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/use-variant-feature-flags-aspnet-core.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
@@ -13,7 +13,7 @@ ms.date: 10/10/2024
13
13
14
14
# Tutorial: Use variant feature flags from Azure App Configuration in an ASP.NET application
15
15
16
-
In this tutorial, you'll use a variant feature flag to manage experiences for different user segments in an example application, *Quote of the Day*. You'll utilize the variant feature flag created in [Use variant feature flags](./use-variant-feature-flags.md). Before proceeding, ensure you create the variant feature flag named *Greeting* in your App Configuration store.
16
+
In this tutorial, you use a variant feature flag to manage experiences for different user segments in an example application, *Quote of the Day*. You utilize the variant feature flag created in [Use variant feature flags](./use-variant-feature-flags.md). Before proceeding, ensure you create the variant feature flag named *Greeting* in your App Configuration store.
17
17
18
18
> [!div class="checklist"]
19
19
> * Set up an ASP.NET app to consume variant feature flags
@@ -26,19 +26,19 @@ In this tutorial, you'll use a variant feature flag to manage experiences for di
26
26
27
27
## Create an ASP.NET Core web app
28
28
29
-
1.Open a command prompt and run the following code. This creates a new Razor Pages application in ASP.NET Core, using Individual account auth, and places it in an output folder named *QuoteOfTheDay*.
29
+
1.Run the following code in a command prompt. This command creates a new Razor Pages application in ASP.NET Core, using Individual account auth, and places it in an output folder named *QuoteOfTheDay*.
30
30
31
31
```dotnetcli
32
32
dotnet new razor --auth Individual -o QuoteOfTheDay
33
33
```
34
34
35
-
1. In the command prompt, navigate to the *QuoteOfTheDay* folder and run the following command to create a [user secret](/aspnet/core/security/app-secrets) for the application. This secret holds the endpoint for App Configuration.
35
+
1. Navigate to the *QuoteOfTheDay* folder and run the following command to create a [user secret](/aspnet/core/security/app-secrets) for the application. This secret holds the endpoint for App Configuration.
36
36
37
37
```dotnetcli
38
38
dotnet user-secrets set Endpoints:AppConfiguration "<App Configuration Endpoint>"
39
39
```
40
40
41
-
1. Add the latest versions of the required libraries.
41
+
1. Add the latest versions of the required packages.
42
42
43
43
```dotnetcli
44
44
dotnet add package Azure.Identity
@@ -58,7 +58,7 @@ In this tutorial, you'll use a variant feature flag to manage experiences for di
58
58
59
59
1. In *Program.cs*, under the line `var builder = WebApplication.CreateBuilder(args);`, add the App Configuration provider, which pulls down the configuration from Azure App Configuration when the application starts. By default, the `UseFeatureFlags` method pulls down all feature flags with no label.
60
60
61
-
You use the `DefaultAzureCredential` to authenticate to your App Configuration store. Follow the [instructions](./concept-enable-rbac#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.
61
+
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.
Copy file name to clipboardExpand all lines: articles/azure-app-configuration/use-variant-feature-flags.md
+9-9Lines changed: 9 additions & 9 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,15 +13,15 @@ ms.date: 10/10/2024
13
13
14
14
# Use variant feature flags
15
15
16
-
Variant feature flags enable your application to support multiple variants of a feature. The variants of your feature can be assigned to specific users, groups, or percentile buckets. These can be particularly useful for feature rollouts, configuration rollouts, and feature experimentation (also known as A/B testing).
16
+
Variant feature flags enable your application to support multiple variants of a feature. The variants of your feature can be assigned to specific users, groups, or percentile buckets. These flags can be useful for feature rollouts, configuration rollouts, and feature experimentation (also known as A/B testing).
17
17
18
18
## What is a variant feature flag?
19
19
20
20
A variant feature flag uses variants and allocation to assign values to users. Variants are defined with a **Name** and a **Configuration Value**. Name is simply an identifier to help tell variants apart. The configuration value on a variant can be any valid JSON or JSON value. Using JSON allows variants to contain as much or as little data as needed to control a feature.
21
21
22
22
### Variants
23
23
24
-
The following is an example of two variants using JSON objects for the configuration value.
24
+
The following example shows two variants using JSON objects for the configuration value.
25
25
26
26
| Variant Name | Variant Configuration Value |
27
27
|---|---|
@@ -30,11 +30,11 @@ The following is an example of two variants using JSON objects for the configura
30
30
31
31
### Allocation
32
32
33
-
Allocation controls which segment of users will get each variant. The following example allocates 10% of users to get the *Minimal* variant and 90% to get the *Standard* variant.
33
+
Allocation controls which segment of users get each variant. The following example allocates 10% of users to get the *Minimal* variant and 90% to get the *Standard* variant.
34
34
35
35
| Variant | Allocation | Remarks |
36
36
|---|---|---|
37
-
| Minimal | 10% | Assign the variant to users in the 0 to 10th percentile. |
37
+
| Minimal | 10% | Assign the variant to users in the 0th to 10th percentile. |
38
38
| Standard | 90% | Assign the variant to users in the 10th to 100th percentile. |
39
39
40
40
### Overrides
@@ -48,14 +48,14 @@ You can assign variants to specific groups or users irrespective of the percenta
48
48
### Default variants and kill switch
49
49
50
50
Variant feature flags have two variant defaults, **DefaultWhenEnabled** and **DefaultWhenDisabled**.
51
-
1. The **DefaultWhenEnabled** variant will take effect if the flag is enabled but the allocation does assign all percentiles. Any user placed in an unassigned percentile will receive the **DefaultWhenEnabled** variant.
52
-
1. The **DefaultWhenDisabled** variant will take effect if the flag is disabled, usually done by setting the **Enabled** field to false, also known as using the "kill switch".
51
+
1. The **DefaultWhenEnabled** variant takes effect if the flag is enabled but the allocation does assign all percentiles. Any user placed in an unassigned percentile receives the **DefaultWhenEnabled** variant.
52
+
1. The **DefaultWhenDisabled** variant takes effect if the flag is disabled, done by setting the **Enabled** field to false, also known as using the "kill switch".
53
53
54
-
The **kill switch** is used to stop users from allocating. Usually it is used when one or more of the variants have a problem- whether it's a bug, regression, or bad performance. To use the kill switch, set the **Enabled** field of the variant flag to false. Regardless of which percentiles users were a part of, all users will now be given the **DefaultWhenDisabled** variant.
54
+
The **kill switch** is used to stop users from allocating. Usually it's used when one or more of the variants have a problem- whether it's a bug, regression, or bad performance. To use the kill switch, set the **Enabled** field of the variant flag to false. Regardless which percentiles users were a part of, all users now are given the **DefaultWhenDisabled** variant.
55
55
56
56
## Build an app with a variant feature flag
57
57
58
-
In this tutorial, you will create a web app named _Quote of the Day_. When the app is loaded, it displays a quote. Users can interact with the heart button to like it. To improve user engagement, you want to explore whether a personalized greeting message will increase the number of users who like the quote. Users who receive the _None_ variant will see no greeting. Users who receive the _Simple_ variant will get a simple greeting message. Users who receive the _Long_ variant will get a slightly longer greeting.
58
+
In this tutorial, you create a web app named _Quote of the Day_. When the app is loaded, it displays a quote. Users can interact with the heart button to like it. To improve user engagement, you want to explore whether a personalized greeting message increases the number of users who like the quote. Users who receive the _None_ variant see no greeting. Users who receive the _Simple_ variant get a simple greeting message. Users who receive the _Long_ variant get a slightly longer greeting.
59
59
60
60
1. Create a variant feature flag called *Greeting* with no label in your App Configuration store. It includes three variants: *None*, *Simple*, and *Long*, each corresponding to different greeting messages. Refer to the following table for their configuration values and allocation settings. For more information on how to add a variant feature flag, see [Create a variant feature flag](./manage-feature-flags.md#create-a-variant-feature-flag).
61
61
@@ -65,7 +65,7 @@ In this tutorial, you will create a web app named _Quote of the Day_. When the a
65
65
| Simple | "Hello!" | 25% |
66
66
| Long | "I hope this makes your day!" | 25% |
67
67
68
-
2. Continue to the following instructions to use the variant feature flag in your application for the language or platform you are using.
68
+
2. Continue to the following instructions to use the variant feature flag in your application for the language or platform you're using.
0 commit comments