We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3b19a5b commit 5ad3bd0Copy full SHA for 5ad3bd0
app/backend/app.py
@@ -443,7 +443,7 @@ async def setup_clients():
443
# Use the current user identity for keyless authentication to Azure services.
444
# This assumes you use 'azd auth login' locally, and managed identity when deployed on Azure.
445
# The managed identity is setup in the infra/ folder.
446
- if os.getenv("WEBSITE_HOSTNAME"):
+ if os.getenv("WEBSITE_HOSTNAME"): # Environment variable set on Azure Web Apps
447
azure_credential = ManagedIdentityCredential()
448
else:
449
azure_credential = AzureDeveloperCliCredential(tenant_id=AZURE_TENANT_ID)
0 commit comments