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.
2 parents bf0dcf7 + 5ad3bd0 commit 6f78a19Copy full SHA for 6f78a19
app/backend/app.py
@@ -444,7 +444,7 @@ async def setup_clients():
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
azure_credential: Union[AzureDeveloperCliCredential, ManagedIdentityCredential]
447
- if os.getenv("WEBSITE_HOSTNAME"):
+ if os.getenv("WEBSITE_HOSTNAME"): # Environment variable set on Azure Web Apps
448
current_app.logger.info("Setting up Azure credential using ManagedIdentityCredential")
449
azure_credential = ManagedIdentityCredential()
450
elif AZURE_TENANT_ID:
0 commit comments