Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions project-words.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ appinsights
azuremonitor
caplog
Cass
Entra
featurefilters
featureflag
featuremanagement
Expand Down
8 changes: 5 additions & 3 deletions samples/feature_flag_with_azure_app_configuration_sample.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,15 @@
from time import sleep
import os
from azure.appconfiguration.provider import load
from azure.identity import DefaultAzureCredential
from random_filter import RandomFilter
from featuremanagement import FeatureManager, TargetingContext

connection_string = os.environ["APPCONFIGURATION_CONNECTION_STRING"]
endpoint = os.environ["APPCONFIGURATION_ENDPOINT"]
credential = DefaultAzureCredential()

# Connecting to Azure App Configuration using AAD
config = load(connection_string=connection_string, feature_flag_enabled=True, feature_flag_refresh_enabled=True)
# Connecting to Azure App Configuration using Entra ID
config = load(endpoint=endpoint, credential=credential, feature_flag_enabled=True, feature_flag_refresh_enabled=True)

feature_manager = FeatureManager(config, feature_filters=[RandomFilter()])

Expand Down
Loading