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-variant-feature-flags-python.md
+21-35Lines changed: 21 additions & 35 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,5 @@
1
1
---
2
-
title: 'Use variant feature flags application'
2
+
title: 'Use variant feature flags in a Python application'
3
3
titleSuffix: Azure App configuration
4
4
description: In this tutorial, you learn how to use variant feature flags in an Python application
5
5
#customerintent: As a user of Azure App Configuration, I want to learn how I can use variants and variant feature flags in my python application.
@@ -11,7 +11,7 @@ ms.topic: how-to
11
11
ms.date: 12/02/2024
12
12
---
13
13
14
-
# Use variant feature flags application
14
+
# Use variant feature flags in a Python application
15
15
16
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
@@ -36,13 +36,20 @@ In this tutorial, you use a variant feature flag to manage experiences for diffe
36
36
.\venv\Scripts\Activate
37
37
```
38
38
39
-
1. Install the required packages. The latest versions of `azure-appconfiguration-provider`, and `featuremanagement` are required for variant feature flags.
39
+
1. Install the latest versions of the following packages.
1. Create a new file named *app.py*in the *QuoteOfTheDay* folder. 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 timefor the permission to propagate before running your application.
50
+
1. Create a new file named *app.py*in the *QuoteOfTheDay* folder.
51
+
52
+
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 timefor the permission to propagate before running your application.
46
53
47
54
```python
48
55
import os
@@ -155,12 +162,12 @@ In this tutorial, you use a variant feature flag to manage experiences for diffe
0 commit comments