From 7d899e4aa7334260d51218b5892df7f724a1c046 Mon Sep 17 00:00:00 2001 From: Quete Noub <6798554+iurquiza@users.noreply.github.com> Date: Fri, 20 Feb 2026 16:23:25 -0800 Subject: [PATCH] Add missing parameters to `DefaultAzureCredential` Add missing parameters/arguments ``` DefaultAzureCredential( exclude_environment_credential=True, exclude_managed_identity_credential=True) as credential, ``` Without them you get the following error: >EnvironmentCredential: EnvironmentCredential authentication unavailable. Environment variables are not fully configured. --- Instructions/08-build-workflow-ms-foundry.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Instructions/08-build-workflow-ms-foundry.md b/Instructions/08-build-workflow-ms-foundry.md index cf3e0eefc..291ed58b3 100644 --- a/Instructions/08-build-workflow-ms-foundry.md +++ b/Instructions/08-build-workflow-ms-foundry.md @@ -396,7 +396,9 @@ Now that you've built and tested your workflow in the Foundry portal, you can al ```python # Connect to the AI Project client with ( - DefaultAzureCredential() as credential, + DefaultAzureCredential( + exclude_environment_credential=True, + exclude_managed_identity_credential=True) as credential, AIProjectClient(endpoint=endpoint, credential=credential) as project_client, project_client.get_openai_client() as openai_client, ): @@ -516,4 +518,4 @@ If you've finished exploring workflows in Microsoft Foundry, you should delete t 1. Navigate to the [Azure portal](https://portal.azure.com) at `https://portal.azure.com` and view the contents of the resource group where your Foundry project was deployed. 1. On the toolbar, select **Delete resource group**. -1. Enter the resource group name and confirm that you want to delete it. \ No newline at end of file +1. Enter the resource group name and confirm that you want to delete it.