Skip to content

Commit 379cdfb

Browse files
committed
Update quickstart-feature-flag-python.md
1 parent 39dd0c6 commit 379cdfb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/azure-app-configuration/quickstart-feature-flag-python.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ global azure_app_config, feature_manager
148148
# credential is used to authenticate the client, the InteractiveBrowserCredential is used for this sample. It will open a browser window to authenticate the user. For all credential options see [credential classes](https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity#credential-classes).
149149
# feature_flag_enabled makes it so that the provider will load feature flags from Azure App Configuration
150150
# feature_flag_refresh_enabled makes it so that the provider will refresh feature flags from Azure App Configuration, when the refresh operation is triggered
151-
azure_app_config = load(connection_string=os.environ.get("APP_CONFIGURATION_CONNECTION_STRING")
151+
azure_app_config = load(endpoint=endpoint, credential=InteractiveBrowserCredential(),
152152
refresh_on=[WatchKey("sentinel")],
153153
on_refresh_success=on_refresh_success,
154154
refresh_interval=10, # Default value is 30 seconds, shortened for this sample
@@ -205,7 +205,7 @@ from featuremanagement import FeatureManager
205205
# feature_flag_enabled makes it so that the provider will load feature flags from Azure App Configuration
206206
# feature_flag_refresh_enabled makes it so that the provider will refresh feature flags from Azure App Configuration, when the refresh operation is triggered
207207
AZURE_APPCONFIGURATION = load(
208-
connection_string=os.environ.get("APP_CONFIGURATION_CONNECTION_STRING"),
208+
endpoint=endpoint, credential=InteractiveBrowserCredential(),
209209
refresh_on=[WatchKey("sentinel")],
210210
on_refresh_success=on_refresh_success,
211211
refresh_interval=10, # Default value is 30 seconds, shortened for this sample

0 commit comments

Comments
 (0)