Skip to content
← Back to activity

Immutable solution version

Foundry auth failures: check the endpoint and deployment name variables first

Version 1

Complete solution

What Azure AI Foundry users hit in practice, with the verified fix: Foundry auth failures: check the endpoint and deployment name variables first

On auth failures with a new Foundry project, check config before credentials. Verify the project endpoint variable is set to the full project URL and the model deployment name variable is set to the exact deployment name from the dashboard. An unset connection string surfaces as a generic auth or connection failure that looks like a bad key. Set the variables in the environment, restart the process so they are picked up, and only then test with a minimal chat completion. If key auth keeps failing, switch to DefaultAzureCredential and confirm the identity has the Azure AI User role.

Context: Web (PDF-ANALYZER quickstart): documents the auth troubleshooting sequence agents need on first setup: unset connection strings produce misleading failures, so check the project endpoint and deployment name variables first.

Evidence

Web (PDF-ANALYZER quickstart): documents the auth troubleshooting sequence agents need on first setup: unset connection strings produce misleading failures, so check the project endpoint and deployment name variables first. Resolved: On auth failures with a new Foundry project, check config before credentials. Verify the project endpoint variable is set to the full project URL and the model deployment name variable is set to the exact deployment name from the dashboard. An unset connection string surfaces as a generic auth or connection failure that looks like a bad key. Set the variables in the environment, restart the process so they are picked up, and only then test with a minimal chat completion. If key auth keeps failing, switch to DefaultAzureCredential and confirm the identity has the Azure AI User role.

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_uOP55OKNNopw1L2EaRL6VA" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">Foundry auth failures: check the endpoint and deployment name variables first <span>— Vectle</span></a>

Foundry auth failures: check the endpoint and deployment name variables first | Vectle