Azure AI Foundry authentication: Entra ID, agent identities and MCP auth

Foundry supports Entra ID for users, apps and agents, and Foundry Agent Service accepts Entra ID only. This page covers agent identities, sign-in logs, Conditional Access and MCP authentication options.

On this page

Azure AI Foundry authentication: does Entra ID cover agents?

Microsoft Foundry (formerly Azure AI Foundry) supports Microsoft Entra ID and API keys, while Foundry Agent Service accepts Entra ID only, and Microsoft recommends Entra ID for production. An API key gives full access to the resource with no per-user attribution, so treat key-based access as something to remove once every caller can use tokens. The supplied material does not split these controls by Azure or Entra license tier, so confirm with Microsoft which licenses your organization needs for Conditional Access, identity protection and agent identity features before you approve a design. Foundry tokens use the ` scope and require a custom subdomain on the Foundry resource, so check that the resource is configured for it before callers move over.

Three decisions determine how far Entra ID reaches into an agent deployment. The first is the tenant boundary: confirm which Entra tenant governs the Foundry project, because OAuth identity passthrough to MCP servers requires the user's Entra tenant to match the project's tenant. The second is each agent's identity. Foundry creates an Entra agent identity blueprint and an agent identity for each newly created agent, and that identity starts with no resource permissions, so every access grant is a deliberate step. Legacy agents share one project-level identity instead, so inventory which agents you still run before relying on identity-level logs. Agent identities appear in the tenant-wide inventory in the Microsoft Entra admin center, where administrators can apply agent identity controls such as Conditional Access and owner, sponsor and expiration governance.

Azure AI Foundry authentication options and what is built in

This table compares what Azure AI Foundry supports for sign-in, agent identity and MCP server authentication, and what an administrator must configure in Microsoft Entra first. Built in means the platform provides it by default, needs Entra configuration means an administrator must set it up, and not available means the option does not exist for that scope. The main takeaway: Entra ID is the only sign-in method for Agent Service, and most agent controls depend on tenant settings your Entra administrators own.

CapabilityStatusCondition or scope
Entra ID and API key sign-inBuilt inBoth supported on Foundry. Entra ID is recommended for production; API keys give full access without per-user attribution.
Assistants API (Agents v0.5 and v1)Not availableRetirement date August 26, 2026, now passed. Agents moved to the Responses API (Agents v2).
Token scope and custom subdomainNeeds Entra configurationTokens use the ai.azure.com/.default scope and the resource needs a custom subdomain. Microsoft advises removing key auth once all callers use tokens.
Agent identity for each new agentBuilt inA blueprint and agent identity are created per agent with no resource permissions. Legacy agents share one project-level identity.
Entra admin center inventory and governanceNeeds Entra configurationAgent identities appear in the tenant-wide inventory. Admins apply Conditional Access, identity protection, network controls, and owner, sponsor and expiry rules.
Sign-in log filteringBuilt inFilter by blueprint, agent identity or agent user account. Entries show the resource each token targeted and any delegating user.
MCP server authentication optionsNeeds Entra configurationSix options, including key-based and unauthenticated access. Anyone with project access can read a key in a project connection.
OAuth identity passthrough and managed OAuthNeeds Entra configurationThe user's Entra tenant must match the project tenant. Managed OAuth refuses to send Microsoft-audience tokens to custom or third-party MCP servers.
Microsoft 365 channel for hosted agentsBuilt inUses the OAuth on-behalf-of flow when a user token is present, and the agent's own identity when none is.

How Entra tokens, agent identities and MCP credentials fit together

Every call into a Foundry agent starts with a token decision, and the chain only holds if each link is set up on purpose. Callers obtain Microsoft Entra ID tokens for the ` scope, and that scope works only against a Foundry resource with a custom subdomain. Once every caller sends tokens, Microsoft advises removing key-based authentication, because an API key gives full resource access with no per-user attribution. Before go-live, confirm the custom subdomain is in place and that no application still holds a key it could fall back to. Each newly created agent also receives a Microsoft Entra agent identity blueprint and agent identity, which is how Entra identifies that agent when it requests access. The authentication article sets out the full token flow.

The agent identity starts with no resource permissions, so every grant to a model, project or tool is a separate decision made after deployment. Legacy agents are the exception: they share one project-level identity, which means a permission granted to that identity reaches every legacy agent in the project. Sign-in logs are where you verify what actually happened. Microsoft Entra sign-in logs can be filtered by agent identity blueprint, agent identity or agent user account, and they show which agent identity obtained a token for which resource and, for delegated access, on behalf of which user. Use that filter as a go-live check: review the logs for each agent, confirm the resources and user attribution match the design, and flag any agent that appears under the shared legacy identity. The role grants themselves are covered on the permissions page.

Entra, Foundry and the MCP server each enforce a different decision, so review each one separately. In Microsoft Entra, the tenant-wide inventory of agent identities is where administrators apply Conditional Access, identity protection and network access controls, and set owner, sponsor and expiration governance for each identity. In Foundry, the authentication choice is made per MCP connection, among key-based, Entra agent identity, project managed identity, Entra user delegation, OAuth identity passthrough and unauthenticated access. Two settings need particular attention. Anyone with project access can read an API key stored in a project connection, and OAuth identity passthrough requires the user's Entra tenant to match the Foundry project's tenant. The MCP server itself must still decide what each caller may do, so confirm that control with the server's vendor or your own build. The MCP authentication guide covers the setup for each connection type.

How a user, an agent and an MCP server authenticate in Foundry

The diagram starts with a user in the Entra tenant, who obtains a token for the Foundry resource. The agent runs on that resource under its own Entra agent identity and calls the MCP server with an agent identity token. A second path, OAuth identity passthrough, forwards the user's token, but it works only when the user's tenant matches the project's tenant. The API key path sits beside the flow: it gives full resource access without per-user attribution and is not used for Agent Service. Token events from the agent identity land in Entra sign-in logs, where they can be filtered by agent identity. Check which MCP option each server uses and confirm tenant alignment before approval.

Authentication paths for users, agents and MCP servers in Foundry.

Decisions to make before approving Entra sign-in for agents

Six choices decide how users, applications and agents sign in to Azure AI Foundry and what evidence you keep afterward. They depend on each other: the tenant setup decides which passthrough paths work, the key policy decides which callers stay outside Entra, and the agent identity model decides what sign-in logs can attribute. Settle them in this order before approving Entra sign-in for any agent.

Tenant and custom subdomain

Entra ID tokens for Foundry use a fixed Foundry scope, and they only work against a Foundry resource that has a custom subdomain. Decide which Entra tenant your users and agents sign in from before you enable this, because OAuth identity passthrough to MCP servers requires the user's Entra tenant to match the Foundry project's tenant. Confirm with your identity team whether any guest or external accounts need access, since they will hit that tenant match rule.

Authentication article

Key-based authentication policy

Foundry supports both Entra ID and API keys, but Microsoft recommends Entra ID for production. Agent Service, evaluations and the toolbox accept Entra only, and an API key gives full resource access without per-user attribution. Microsoft advises removing key-based authentication once all callers use tokens, so set a dated cutover: inventory every application that still sends a key, move it to tokens, then remove the key path. Ask who holds the existing keys, since each holder can act with full access.

Agent identity model

Each newly created agent gets a Microsoft Entra agent identity blueprint and its own agent identity, which starts with no resource permissions. Legacy agents instead share a project-level identity, so logs cannot attribute activity to one legacy agent. Decide whether existing agents are rebuilt as new agents or kept on the shared identity, and record an owner, sponsor and expiration date for each identity in the tenant-wide inventory of the Microsoft Entra admin center.

MCP authentication method per server

For MCP servers, Foundry offers six methods: key-based auth, Entra agent identity, project managed identity, Entra user delegation, OAuth identity passthrough and unauthenticated access. Choose one method for each server and record it. Managed OAuth on Entra will not send tokens for a known Microsoft audience to custom or third-party MCP servers, and anyone with project access can read an API key stored in a project connection, so keep keys out of shared connections.

MCP authentication setup

Delegated or agent-owned identity in Microsoft 365

Hosted agents published to Microsoft 365 channels can use the OAuth on-behalf-of flow when a user token is present, or their own identity when none is present. Each hosted agent receives a dedicated Entra agent identity and endpoint at deploy time. Delegated calls carry the signed-in user's access, while agent-owned calls carry only what the agent identity has been granted. Decide which path each channel may use, and test both paths in a non-production project before you approve the channel.

Hosted agents overview

Sign-in log retention and review

Microsoft Entra sign-in logs can be filtered by agent identity blueprint, agent identity or agent user account. They show which agent identity obtained a token for which resource and, for delegated access, on behalf of which user. Confirm how long your tenant keeps these logs and whether they are exported to your security monitoring platform, because your Entra log settings control that period. Name a reviewer and a review cadence before go-live.

Agent identity concepts

How the Entra sign-in answer changes by situation

If every team in scope uses Foundry surfaces that accept Entra ID only, the sign-in answer is the simplest of the five. Microsoft lists Foundry Agent Service, evaluations and the toolbox as Entra-only, so API keys cannot be used to reach them. Callers request tokens for the scope, which requires a custom subdomain on the Foundry resource.

  • Named callers: Each request comes from a user or application identity in your tenant, so sign-in logs can show who or what made the call.
  • Conditional Access: Apply policies to agent identities through the tenant-wide inventory in the Microsoft Entra admin center, including identity protection and network access controls.
  • Governance fields: Confirm the owner, sponsor and expiration date recorded for each agent identity.
  • Starting permissions: A newly created agent identity starts with no resource permissions, so every grant needs an explicit role decision.

Confirm that the Foundry resource has a custom subdomain, that no caller requests tokens for a different audience, and that your Conditional Access policies cover agent identities as well as human users.

Where Foundry agent sign-in falls short and how teams cover it

Entra ID covers sign-in for users and agents in Azure AI Foundry, but several gaps remain, and most of them sit in how keys, shared identities and MCP server connections are configured. Each card names one gap, what it means for your review, and the control to put in place before a team builds on the project.

API keys grant full access

Foundry accepts Entra ID and API keys, but an API key gives full resource access with no per-user attribution. Keys stored in a project connection, such as one used for an MCP server, can also be read by anyone with project access. Move callers to Entra tokens, confirm the Foundry resource has the custom subdomain that Entra tokens require, then remove key-based authentication once every caller uses tokens. Rotate any key already placed in a connection and review project membership.

Authentication article

Legacy agents share one identity

Each newly created agent gets its own Microsoft Entra agent identity blueprint and agent identity, and that identity starts with no resource permissions. Legacy agents share a project-level identity, so logs filtered by agent identity cannot tell those agents apart, and a permission granted to one can reach the others. Build an inventory of every agent identity in the tenant-wide view of the Microsoft Entra admin center, record an owner and expiration for each, and identify which agents still run on the shared identity before you approve the project.

Agent identity concepts

Managed OAuth blocks Microsoft tokens

With managed OAuth on Entra, Foundry Agent Service refuses to send tokens for a known Microsoft audience to custom or third-party MCP servers. A team that expects its own MCP server to receive a Microsoft token will see the call fail at the platform. Before approval, confirm with the server owner which authentication the server accepts, such as key-based, project managed identity or agent identity, and run a test connection in a non-production project for each option you plan to allow. Record the results in the approval file.

MCP authentication setup

Passthrough fails across tenants

OAuth identity passthrough forwards a signed-in user's token to an MCP server, and it requires the user's Entra tenant to match the Foundry project's tenant. Partner staff, contractors and users from acquired subsidiaries who sign in from another tenant will not get passthrough working. Before rollout, list which user groups sit outside the project tenant, decide whether they are excluded or moved to a different authentication option, and test one account from each group. Document the decision so the reviewer can see which users the MCP server can and cannot serve.

Sign-in logs stop at the token

Microsoft Entra sign-in logs can be filtered by agent identity blueprint, agent identity or agent user account. They show which agent identity obtained a token for which resource and, for delegated access, on behalf of which user. They do not record what the MCP server did with that token, such as which tool it called or which record it changed. Require the MCP server to write its own audit log with the caller identity, tool name and target, and confirm how long those logs are kept and whether they can be exported, so both records can be matched by time and identity.

Conditional Access needs policy checks

Foundry agent identities appear in the tenant-wide inventory in the Microsoft Entra admin center, where administrators can apply Conditional Access, identity protection and network access controls. Coverage is not automatic: confirm, policy by policy, that each Conditional Access policy targets agent identities and that its conditions and grant controls behave as you expect for them. Include the agent identity blueprints and any user agent accounts in that review. Keep a dated record of test sign-ins showing which policies blocked or allowed an agent.

Azure AI Foundry authentication rollout order

This sequence moves a Foundry deployment from shared keys and unowned identities to traceable access. Each step names what to verify before the next one starts, and the final step leaves sign-in evidence that your review process can read. Start with the license and tenant terms so that the identity and MCP decisions later rest on confirmed facts.

  1. Confirm the license tier and tenant terms

    Ask your Microsoft account team which Foundry offering, license tier and Entra tenant terms apply to your subscription, and confirm that the Foundry project sits in the tenant that holds your workforce identities. Confirm the terms for Foundry Models sold by Azure separately from partner and community models, since model providers set their own license terms for the latter. Record the answers in writing with the names of the people who gave them. Done when the security and procurement teams have accepted the tenant boundary for agent sign-in in writing.

  2. Inventory Foundry resources, agents and MCP connections

    The platform owner lists every Foundry resource and project, then sorts agents into prompt agents and hosted agents and marks each one as new or legacy. New agents receive their own Entra agent identity, while legacy agents share a project-level identity, so the list must show which applies to each agent. Include every MCP connection and its current authentication method, along with any remaining Assistants API calls, which Microsoft lists as deprecated with a retirement date of August 26, 2026. Done when the inventory has been reconciled against the Foundry portal and the agent identities listed in the Microsoft Entra admin center.

  3. Move callers to Entra tokens and plan key removal

    Application teams switch each caller from API keys to Entra ID tokens. Foundry Agent Service supports Entra ID only, and Microsoft recommends it for production because it enables Conditional Access and least-privilege RBAC. Confirm that the Foundry resource has a custom subdomain, since Entra tokens require one, and check the token scope against Microsoft's Foundry authentication guidance. Keep a list of callers that still use keys, and remove key-based authentication once every caller sends tokens. Done when the list is empty and sign-in logs show a token for each caller.

  4. Set owner, sponsor and expiration on agent identities

    In the Microsoft Entra admin center, find each Foundry agent identity in the tenant-wide inventory and assign a named owner and sponsor. Set an expiration on each identity so that identities for retired agents do not remain active by default. Hosted agents receive their own identity at deploy time, so include them in this review. Agent identities start with no resource permissions, so confirm that each one holds only the role assignments it needs. The agent identity concepts article explains how these identities are created. Done when every agent identity has an owner, a sponsor and an expiration, and the list matches the inventory from the previous step.

  5. Test, then apply Conditional Access and identity protection

    Security engineering writes Conditional Access and identity protection policies for agent identities and tests them first, using a report-only or test state if your tenant supports it for these policies. Review the simulated sign-ins against the inventory to find agents that would be blocked or challenged unexpectedly. Confirm which network access controls also apply, since they are managed in the same admin center. Enforce the policies in stages after the test results are reviewed, and keep a documented rollback path. Done when each agent identity is covered by a tested policy and the change record names the approver.

  6. Choose and test MCP authentication per server

    For each MCP server in the inventory, choose one method from key-based auth, Entra agent identity, project managed identity, Entra user delegation, OAuth identity passthrough or unauthenticated access, and record the reason. Anyone with project access can read an API key stored in a project connection, so treat those keys as shared secrets. With managed OAuth on Entra, Foundry refuses to send tokens for a known Microsoft audience to custom or third-party servers, so test each server's behavior. For OAuth identity passthrough, confirm that the user's Entra tenant matches the Foundry project's tenant, and test a sign-in from a user outside that tenant. Done when each server has a tested method and a written justification, following the MCP authentication setup guide.

  7. Route sign-in logs to the review process

    Connect Microsoft Entra sign-in logs for agent identities to your security monitoring and access review process. Filter by agent identity blueprint, agent identity or agent user account to confirm which agent obtained a token for which resource, and for delegated access, confirm which user the agent acted on behalf of. Confirm the retention period for these logs in your tenant and in your own records policy, because this sequence does not set one. Done when a test agent sign-in appears in the review queue with its blueprint, identity, target resource and delegating user, and the retention period is written down with a named owner.

What a security reviewer asks for on Foundry sign-in and where it comes from

This table lists the evidence a security reviewer should request for Foundry sign-in, where each item comes from, and the gap to check before approval. Read each row against the Foundry resource, the Microsoft Entra admin center, the sign-in logs or the MCP server settings, depending on where the evidence lives. The main takeaway is that an Entra-only setting for Agent Service does not settle the key status of every resource, so ask for evidence for each resource and each MCP connection.

Evidence requestWhere it comes fromGap to note
Entra-only setting for Agent ServiceFoundry authentication settings for the resource and project, confirmed against Microsoft's authentication articleAgent Service accepts Entra ID tokens only, but other resource paths may still accept keys until they are removed
Key authentication status per resourceFoundry resource key settings and a list of every caller that uses keysAPI keys give full resource access without per-user attribution, so each remaining key holder needs a named owner
Agent identity inventoryMicrosoft Entra admin center, tenant-wide list of agent identities and blueprintsLegacy agents share a project-level identity, so one identity may cover several agents
Conditional Access policies scoped to agent identitiesMicrosoft Entra admin center, Conditional Access policies filtered to agent identitiesConfirm the policy names, conditions and network controls that apply to each agent identity
Sign-in log entries filtered by agent identity blueprintMicrosoft Entra sign-in logs, filtered by blueprint, agent identity or agent user accountLogs show the resource each token was issued for and any user the agent acted on behalf of; confirm retention and export
Owner, sponsor and expiration fieldsMicrosoft Entra admin center, governance fields on each agent identityAgents without an owner or expiration date are a review gap; ask who approves expiry and removal
MCP connection authentication methodFoundry project connection list for each MCP server, showing the method in useAnyone with project access can read an API key stored in a project connection; confirm which method each server uses
Assistants API retirement statusMicrosoft Learn authentication article, which lists the Assistants API as deprecatedIts retirement date was August 26, 2026, which has passed; ask whether any workload still calls it

Questions buyers ask before approving Foundry sign-in

What does Foundry Entra ID sign-in cost, and what drives it?

Foundry sign-in has no single price tag in this section. The cost sits in three places: Microsoft Entra licensing, Foundry consumption and the effort to configure and verify the setup. Conditional Access and sign-in log retention depend on the Entra tenant license your organization holds, and you should confirm the exact tier and retention period with Microsoft before you budget. Foundry usage is billed separately and is covered on the billing page of this site. Ask Microsoft which license covers Conditional Access for agent identities and how long sign-in logs are kept under your tenant. Your internal cost also rises with the number of agents, legacy agents and MCP servers that need review. Ask any outside provider for a quote built from a written scope, which lists what is tested, what is delivered and what is retested.

How long does a Foundry agent identity review take, and what drives it?

No duration is stated here, because the time depends on the setup you actually run. The main drivers are the number of agents, whether any of them are legacy agents, the count of MCP servers and the connection method each one uses, and how tightly the written scope is drawn. Legacy agents share a project-level identity, so they usually need more analysis before you can assign each one its own identity. Each MCP server needs its own decision on key-based, managed identity, user delegation, OAuth identity passthrough or unauthenticated access, and each choice changes what must be tested. Your own team also sets the pace, since Conditional Access policies, owners, sponsors and expiration rules must be agreed internally. Ask for a timeline only after the scope is written, and ask the provider to name the milestones, the retest step and the items that depend on your staff.

Which parts of Foundry sign-in can our own team handle, and what can outside help cover?

Your own administrators keep control of the tenant and the Foundry project. That includes Entra ID configuration, Conditional Access policies, the role assignments that Foundry RBAC governs, the decision on which MCP servers each team may reach, and the removal of API keys once callers move to tokens. Your team also owns the agent inventory, the owner, sponsor and expiration settings on each agent identity, and the sign-in log reviews that your security operations run. Outside help is a different function. DeployOpen tests the setup for prompt injection, tool and file permissions, data exposure, credential handling, and SSO and admin settings, then delivers a findings report with fixes and a retest. It does not make your tenant decisions, issue audit reports or sign off on your controls. The split should be written into the scope before work starts.

Can API keys be turned off for Foundry, and what breaks?

Yes, if every caller already uses Entra ID tokens, and Microsoft's authentication article advises removing key-based authentication once that is true. Foundry Agent Service supports Entra ID only, with no API keys, and Microsoft recommends Entra ID for production. Evaluations and the toolbox are also Entra-only, but confirm with Microsoft which other endpoints on your resource still accept keys before you rely on the switch. Before cutover, inventory every application, script and notebook that holds a key, because a key gives full resource access with no per-user attribution. Token callers must use the Foundry token scope, and the resource needs a custom subdomain. Plan a cutover with a rollback path and confirm the disablement steps with Microsoft for your resource type.

Does Foundry support non-Microsoft identity providers for sign-in?

Not established yet, because Microsoft's Foundry sign-in guidance covers Microsoft Entra ID, so treat other providers as unconfirmed until Microsoft answers in writing. Foundry documents Entra ID and API keys as its sign-in methods, and Microsoft recommends Entra ID for production because it enables Conditional Access, managed identities and least-privilege RBAC. Ask whether a provider you run outside Entra can sign users into your Foundry project, and how those sign-ins appear in your logs. For MCP servers, OAuth identity passthrough requires the user's Entra tenant to match the Foundry project's tenant, which is a practical limit to check against any cross-directory plan. Get the answer in writing for each identity provider in your estate, and test it in a non-production project before anyone relies on it.

Does Foundry sign-in alone satisfy an audit requirement?

No. Foundry sign-in is one control among several, and on its own it does not establish compliance with any framework. Entra ID sign-in, Conditional Access, agent identities and sign-in logs show which identity obtained a token for which resource, which auditors may ask to see. They do not address data storage and retention, model provider terms, role design within projects, or your organization's own policies and exceptions. Those belong to the compliance scope, which is covered on its own page on this site. Audit reports and attestations come only from independent auditors and certification bodies. DeployOpen prepares the systems, controls and evidence for an assessment but does not issue the report itself, so agree the evidence list with your assessor before you decide what sign-in must prove.

How DeployOpen tests Foundry agent sign-in before rollout

DeployOpen reviews Azure AI Foundry authentication as one connected system: how users and applications sign in with Microsoft Entra ID, which Entra agent identity each agent runs under, how Conditional Access and sign-in logs apply to agents, and how agents authenticate to MCP servers. Most engagements are fixed-scope, with the scope agreed in writing before work starts. Role permissions are covered separately on the permissions page.

How we scope

  • The written scope lists each Foundry project, agent and MCP server under review.
  • Scope records which Foundry surfaces accept only Entra ID, including Agent Service, evaluations and the toolbox.
  • Scope confirms which MCP authentication modes each server uses and which Entra tenant the users belong to.

How we build

  • Implementation verifies token requests use the Foundry scope and a custom subdomain on the Foundry resource.
  • Testing flags legacy agents that share one project-level identity so logs cannot attribute access to a single agent.
  • MCP tests confirm server auth modes and flag key-based connections, since anyone with project access can read stored keys.

How we hand over

  • Handover documents the Entra agent identities, their Conditional Access policies, and the sign-in log filters admins should use.
  • Retest after fixes confirms user tenants match the Foundry project tenant for OAuth identity passthrough.
  • The findings report lists each sign-in path, the fix, and the retest result.

How we support

  • Ongoing support is available as a retainer for upgrades, Foundry changes and continuous testing.
  • Confirm no agent calls the Assistants API, which Microsoft lists as deprecated with an August 26, 2026 retirement date.
  • Keep sign-in logs and Conditional Access reviewed after rollout, since new agents get their own identity at creation.

Sources and further reading

Related

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.