Skip to content

Commit 6f78a19

Browse files
committed
Better types
2 parents bf0dcf7 + 5ad3bd0 commit 6f78a19

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
@@ -444,7 +444,7 @@ async def setup_clients():
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.
446446
azure_credential: Union[AzureDeveloperCliCredential, ManagedIdentityCredential]
447-
if os.getenv("WEBSITE_HOSTNAME"):
447+
if os.getenv("WEBSITE_HOSTNAME"): # Environment variable set on Azure Web Apps
448448
current_app.logger.info("Setting up Azure credential using ManagedIdentityCredential")
449449
azure_credential = ManagedIdentityCredential()
450450
elif AZURE_TENANT_ID:

0 commit comments

Comments
 (0)