Skip to content

Commit 5ad3bd0

Browse files
Update app/backend/app.py
Co-authored-by: Anthony Shaw <[email protected]>
1 parent 3b19a5b commit 5ad3bd0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/backend/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ async def setup_clients():
443443
# Use the current user identity for keyless authentication to Azure services.
444444
# This assumes you use 'azd auth login' locally, and managed identity when deployed on Azure.
445445
# The managed identity is setup in the infra/ folder.
446-
if os.getenv("WEBSITE_HOSTNAME"):
446+
if os.getenv("WEBSITE_HOSTNAME"): # Environment variable set on Azure Web Apps
447447
azure_credential = ManagedIdentityCredential()
448448
else:
449449
azure_credential = AzureDeveloperCliCredential(tenant_id=AZURE_TENANT_ID)

0 commit comments

Comments
 (0)