Repository navigation
Add azure provider with Entra ID auth - #20
Merged
Merged
Conversation
Foundry has key auth disabled; spec an azure provider that authenticates via Entra ID tokens so the agent can run on Container Apps and AKS.
A static Entra token in OPENAI_API_KEY works but cannot refresh; document it as a pre-implementation check of network, RBAC and deployment.
Foundry has key auth disabled. The azure provider gets tokens from DefaultAzureCredential (managed identity, AKS workload identity, az login) and lets @ai-sdk/azure send and refresh them; no API key is needed.
Explain the config, identity per environment, the required role and env vars; align spec 016 with the /openai baseUrl form and the pinned SDK version.
Contributor
QualOps Code Quality AnalysisStatus: Summary
🔴 Critical Issues (1)
🟠 High Issues (1)
🟡 Medium Issues (1)
📊 Full ReportPowered by QualOps |
afiodorov
approved these changes
Oct 19, 2026
Contributor
Author
QualOps triageNote: QualOps attaches every finding to
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
New model provider
azurefor OpenAI models on Azure Foundry / Azure OpenAI. It authenticates with Microsoft Entra ID tokens instead of API keys.Why
For Azure deployments (Container Apps, AKS) where key auth is disabled on the Foundry resource. The identity comes from the environment, and tokens are refreshed automatically. Nothing changes between environments:
az loginNotes
@ai-sdk/azureis pinned exactly to 4.0.11 to match the other@ai-sdkpackages. Newer versions fail typecheck.baseUrlmust behttps://<resource>.openai.azure.com/openai; other hosts or a trailing/v1build a wrong URL. See the user guide./ready?deep=1.docs/specs/016_azure_entra_auth_plan.md. Setup:docs/user-guide.md→ "Azure Foundry (Entra ID)".🤖 Generated with Claude Code