Does Azure AI Foundry RBAC meet our agent access control requirement?
Foundry RBAC is built in and enforced only for Entra ID callers, so it can meet an agent access requirement only if no caller authenticates with an API key. Nothing we can confirm establishes a separate paid tier for these roles, so ask Microsoft to state in writing which license and subscription terms cover Foundry User, Foundry Project Manager and Foundry Account Owner in your tenant. An API key grants full access to the resource without role restrictions, so a key left enabled bypasses every role described here. Make key removal a condition of approval and test it by attempting a call with a key and confirming it is refused.
The main limit is that role assignments scoped to a single agent govern only that agent's endpoints and do not isolate project files. A caller who can invoke a prompt agent can reference any file ID in the project, so agent-scope and project-scope roles cannot keep one group's files away from another group inside the same project. The practical trust boundary is the project itself. Principals with the agents/write data action can also invoke model deployments through the project Responses endpoint without referencing an agent, so that action should be granted only to people approved for model use.
For approval, treat each project as one access tier and put data that different groups may not read in separate projects. Give builders Foundry User, which lets them build in a project but not deploy models or publish agents, keep Foundry Project Manager for the few people who publish, and use Foundry Owner sparingly because it can do all of these. For callers, the least-privilege choice is Foundry Agent Consumer, which the portal assigns only at account scope, so narrower project or agent assignments need the Azure CLI and should be checked against an exported assignment list. Do not rely on the Azure AI Developer role for Foundry projects, since it is scoped to hubs and Azure Machine Learning workspaces.
Which Foundry roles can build, deploy, publish and call agents
This table compares which Foundry roles can build, deploy, publish and call agents, and which isolation and approval controls exist at the agent, project and session level. Read the status column as what the platform provides by default and what you must set up yourself. Edition or plan is not given per row, so confirm with Microsoft which plan and edition includes each capability in your tenant. The main takeaway is that the project is the boundary for files, since agent-scoped role assignments only govern endpoint access.
| Capability | Where it applies | Status |
|---|---|---|
| Build agents in a project | Foundry User and Foundry Owner. Foundry User cannot deploy models or publish agents. | Built in |
| Deploy models, create projects and manage models | Deploy: Foundry Account Owner and Foundry Owner. Create projects and manage models: Foundry Account Owner. Foundry User cannot deploy. | Built in |
| Publish agents | Foundry Project Manager and Foundry Owner | Built in |
| Call agent endpoints only | Foundry Agent Consumer. The portal currently assigns it at account scope only; project or agent scope needs Azure CLI. | Needs configuration |
| File isolation between agents in one project | Agent-scoped role assignments govern endpoint access only. Any caller can reference any project file ID. | Not available |
| Entra ID only for enforced roles | Roles apply only to Entra ID callers. An API key grants full access to the resource. | Built in |
| Hosted agent sandbox | Per session VM-isolated sandbox, 0.25 vCPU with 0.5 GiB up to 16 vCPU with 32 GiB (Microsoft Learn) | Built in |
| MCP tool approval | Default require_approval is always. Set never or list specific tools to skip approval. | Built in |
| Project data isolation in standard setup | Standard setup only. Separate storage and Cosmos DB containers provisioned for each project. | Built in by default |
How Azure AI Foundry RBAC and the agent sandbox split enforcement
Foundry enforces access at several points, and each one answers a different question. Foundry RBAC roles apply only when callers authenticate with Microsoft Entra ID, because an API key grants full access to the resource without role restrictions. Confirm that no API keys are issued for the resource before you rely on any role. The role check at account, project or agent scope then decides who can reach the agent endpoints and the project Responses endpoint. Foundry Agent Consumer is the least-privilege role for principals that only call agents, but the Azure portal assigns it only at account scope, so narrower assignments need the Azure CLI. Review the Foundry RBAC article and watch the agents/write data action: principals holding it can invoke model deployments through the project Responses endpoint even without referencing an agent.
Hosted agents add a second layer that controls what agent code can do while it runs. Each session runs in its own VM-isolated sandbox, sized from 0.25 vCPU with 0.5 GiB up to 16 vCPU with 32 GiB, and the sandbox holds no agent blueprint credential. Agent code receives tokens only through the hosted agent token service or the tool server, and both run outside the sandbox. The sandbox limits what hosted agent code can reach and hold, but it does not decide who may call the agent. That question stays with the role check. Prompt agents work differently: Foundry hosts and runs them from instructions, a model and tools, so for them the controls that matter are the tool list and the approval gate described next.
The third control is the MCP approval gate, which is set per tool and limits what an agent may do once it can run. In Foundry Agent Service, the require_approval setting on an MCP tool defaults to always, so every tool call needs approval unless the developer sets never or lists specific tools that skip it. Review each MCP tool's value, because a permissive setting on a write-capable tool lets a permitted caller trigger changes without a per-call check. The gate does not protect project files. Role assignments scoped to a single agent govern only that agent's endpoints, so a caller who can invoke a prompt agent can reference any file ID in the project. Separate projects are the trust boundary. Standard agent setup enforces project-level data isolation by default, with separate storage and Cosmos DB containers for each project, so confirm which setup each project uses before you assume one team's files are walled off from another's.
The request path from caller to role check, sandbox and tool approval
The diagram starts with a caller who signs in with Microsoft Entra ID. The role check then runs at account or project scope and decides whether the caller can reach an agent endpoint or the project Responses endpoint. Both paths lead into the hosted agent sandbox, which holds no agent blueprint credential. Tokens come only from the token service and tool server, which run outside the sandbox. MCP tool calls then pass the approval gate, where require_approval defaults to always. The lower branch shows an API key request, which skips the role check and grants full access to the resource, so reviewers should confirm that API keys are disabled for agent traffic.
Request path through role check, sandbox and approval, with the API key bypass.
Decisions to make before the first Foundry project goes live
Six choices set how far one compromised caller or agent can reach inside Azure AI Foundry. They depend on each other: a project boundary only holds if role scope and authentication policy keep callers inside it. Give each decision a named owner before the first project is provisioned.
Project boundary per trust zone
Decide which data and agents share a Foundry project before anything is built. Microsoft states that role assignments scoped to one agent govern only that agent's endpoints and do not isolate project files, so the project is the file isolation unit and the trust boundary. A caller who can invoke a prompt agent can reference any file ID in the same project. Confirm that standard setup provisions separate storage and Cosmos DB containers per project. Owner: the platform architecture team, with data owners signing off on each zone.
Standard agent setupRole scope: project or agent
Choose whether each identity receives its Foundry role at project scope or at a single agent. Project scope governs building, model deployment and agent publishing, while agent scope governs only that agent's endpoints. The Azure portal assigns Foundry Agent Consumer only at account scope, so project and agent assignments need the Azure CLI. Keep the exact CLI commands in the change record so reviewers can see every scope granted. Owner: the identity and access team, with platform engineering maintaining the runbook.
Foundry RBAC rolesAuthentication policy: Entra ID only
Decide that every caller authenticates with Microsoft Entra ID and that API keys are excluded from production. Foundry RBAC applies only to Entra ID callers, and an API key grants full access to the resource without role restrictions. Foundry Agent Service supports Entra ID only, which enables Conditional Access, managed identities and least-privilege RBAC. The enforcement method is still open: confirm with Microsoft and your tenant team how key access is disabled on the resource and how exceptions are logged. Owner: the identity team, with the security architect approving any exception.
Foundry authentication articleWho may hold agents/write
Limit the agents/write data action to a named group of builders. Microsoft warns that principals with this action can invoke model deployments through the project Responses endpoint even without referencing an agent, so it reaches further than agent access. The Azure AI Developer role applies to hubs and Azure Machine Learning workspaces and does not reach Foundry projects, so do not treat it as the default builder role. Owner: the platform team sets membership, and the model owner approves who may deploy models.
Hosted or prompt agents
Choose between prompt agents, which Foundry runs from instructions, a model and tools, and hosted agents, which run your own containerized code. The sandbox applies to hosted agent code. Each session runs in a VM-isolated sandbox sized from 0.25 vCPU with 0.5 GiB up to 16 vCPU with 32 GiB, and the sandbox holds no agent blueprint credential. Ask the engineering team which framework and container image each hosted agent uses, and have security review that image. Owner: the engineering team that writes the code, with security approving the container.
Hosted agentsMCP approval policy
Set the require_approval value for each MCP tool before it is connected. The default is always, which asks for approval on every tool call. Setting never removes every approval prompt, while a list of named tools skips approval only for those tools. Name read-only tools in the list and leave write tools out, then recheck the list against the server's tool catalog after each update. Owner: the security team sets the policy, and the application owner approves changes to the list.
How the Foundry role model changes by team size and agent type
A single team working in one Foundry project has the simplest role model. Builders need the Foundry User role, which lets them build inside the project but not deploy models or publish agents. A Foundry Project Manager can publish agents and assign the Foundry User role, so building and publishing can sit with different people. Microsoft's role-based access control article sets out which role can do what, and the Foundry Owner role can do all of it, so keep that role to a very small group.
- Builders: Assign Foundry User at project scope so developers can create and test agents without model deployment rights.
- Publishers: Give Foundry Project Manager only to the people who release agents, and check whether they also assign roles to others.
- Account owners: Limit Foundry Account Owner, which can create projects and manage models but cannot build agents.
- Consumers: Use Foundry Agent Consumer for principals that only call agent endpoints. The Azure portal assigns it only at account scope, so narrower assignments require the Azure CLI.
- API keys: Confirm that no API keys are in use for the team, because an API key grants full access to the resource without role restrictions.
Check the role list against the portal and CLI output for your own subscription before you approve the project.
When many teams share one Foundry resource, the account becomes the administrative layer and the project becomes the boundary between teams. Microsoft describes the current model as a single Foundry resource with projects, replacing the earlier hub, Azure OpenAI and Azure AI Services arrangement. Role assignments scoped to a single agent govern only access to that agent's endpoints, so the design question is how many projects and trust zones you need and how few people hold account-level rights.
- Projects per trust zone: Create one project for each trust zone, because a caller who can invoke a prompt agent can reference any file ID in the project.
- Few account owners: Keep Foundry Account Owner and Foundry Owner to a short named list, since those roles can create projects and manage models across the resource.
- Hub-based projects: Confirm which projects exist in the Foundry (classic) portal, because hub-based projects remain there and are managed differently from Foundry projects.
- Azure AI Developer: Do not rely on this role for Foundry projects, because Microsoft scopes it to hubs and Azure Machine Learning workspaces.
- Model invocation: Check which principals hold the agents/write data action, since they can invoke model deployments through the project Responses endpoint even without referencing an agent.
Record the project list, the owner list and the trust zone map in one document, and have the security team approve it before teams start building.
A prompt agent is defined by instructions, a model and tools, and Foundry hosts and runs it. For review, the questions are less about agent code, since there is none to inspect, and more about what the agent's tool calls can reach and who can approve them. The default for MCP tools is that every call needs approval, but the agent's file reach follows the project, not the individual agent assignment, so the approval step and the project layout have to be reviewed together.
- Approval default: An MCP tool's require_approval setting defaults to always, so every tool call needs approval unless a developer sets it to never or lists specific tools that skip approval.
- Skip lists: Review each tool named in a skip list and record who approved that exception and why.
- File reach: Keep sensitive files out of any project that hosts prompt agents with broad tools, because a caller can reference any file ID in the project.
- MCP authentication: Confirm how each MCP server authenticates the agent before relying on the approval step alone, using the MCP server authentication setup guidance.
- Instructions and model: Put the instructions and the chosen model under change control, since the agent's behavior follows both.
Review the agent definitions, the approval setting for each tool and the files in the project before you publish any agent.
A hosted agent runs containerized code that your team wrote, built with a framework such as Microsoft Agent Framework or LangGraph. Each session runs in a VM-isolated sandbox, which limits what one session can reach from another. Microsoft documents the sandbox as holding no agent blueprint credential, and it says agent code gets tokens only through the hosted agent token service or the tool server, both of which run outside the sandbox. The code and its dependencies remain the customer's responsibility, so they belong in the same review as the role model.
- Session sizing: Sandboxes range from 0.25 vCPU with 0.5 GiB up to 16 vCPU with 32 GiB, so set the size each workload needs and record it for review.
- No blueprint credential: Because the sandbox holds no agent blueprint credential, confirm that your design does not require code inside a session to hold one.
- Token path: Review what each token issued by the hosted agent token service or the tool server can reach, since that path is the only way agent code gets tokens.
- Container contents: Scan and approve the container image, its base layer and its dependencies as part of each release, because that code belongs to your team.
- Session state: Confirm with Microsoft how long session state persists and where it is stored, as described in the hosted agents documentation, before you approve regulated data in these sessions.
Ask Microsoft to confirm the current sandbox and token behavior in your region before you approve any hosted agent.
For regulated data, the project is the boundary you can evidence, so the project layout, the role list and the storage setup need to be settled before approval. Standard agent setup enforces project-level data isolation by default, with separate storage and Cosmos DB containers provisioned for each project, which is the isolation record an auditor is likely to ask for. Foundry RBAC roles apply only when callers authenticate with Microsoft Entra ID. A disconnected network is a separate question, because the role model described on this page assumes Azure-hosted resources.
- Project isolation: Map each regulated data set to its own project, since standard agent setup provisions separate storage for each project.
- Entra ID only: Require Entra ID for every caller of regulated projects, because RBAC does not restrict a caller who uses an API key.
- Evidence before approval: Collect the role assignments, project list, approval settings and storage layout before the review, so the reviewer has records to inspect.
- Disconnected networks: Ask Microsoft in writing whether any disconnected or air-gapped option exists for Foundry Agent Service. Do not assume one exists, because the role model here does not cover a disconnected deployment.
- Compliance scope: Confirm with your compliance team and Microsoft which Foundry components fall within the scope of your regulation before any regulated data reaches an agent.
Get the disconnected-network answer and the evidence list in writing before the first regulated agent goes live.
Where Foundry RBAC stops and how to cover each gap
Foundry RBAC decides who can build, publish and call agents, but several paths reach the same resources without passing a role check or an approval. Each card below names one gap a reviewer should expect and the control that covers it. Network egress from hosted agent sandboxes is a point to confirm with Microsoft before approving hosted agents for sensitive data.
Agent-scope assignments do not isolate files
Assigning a role on one agent only governs calls to that agent's endpoints. Microsoft states that a caller who can invoke a prompt agent can reference any file ID in the project, so the separate Foundry project is the trust boundary. Put agents that handle different data in separate projects, and check which file IDs each project holds. Because the portal assigns Foundry Agent Consumer only at account scope, project or agent scope assignments need the Azure CLI, and each change should be recorded.
Model access through agents/write
The agents/write data action lets a principal invoke model deployments through the project Responses endpoint without referencing an agent. A role that looks limited to agent use can therefore reach model deployments directly. Review which principals hold agents/write in each project, including custom roles and service principals. Remove it from anyone who only needs to build or call a defined agent.
Role scope that misses projects
The Azure AI Developer role is scoped to hubs and Azure Machine Learning workspaces, so it does not cover Foundry projects. Foundry User builds in a project but cannot deploy models or publish agents. Foundry Project Manager can publish agents and assign only the Foundry User role. Map each person to the Foundry role they need, and check the scope of every existing assignment before relying on it.
API keys bypass role checks
Foundry RBAC applies only when callers authenticate with Microsoft Entra ID. An API key bypasses roles and grants full access to the resource with no restrictions, so any key in circulation can do what the roles were meant to limit. Block key use through internal process: prohibit keys in code, pipelines and agent configuration, and inventory the keys already issued. Confirm with Microsoft which tenant controls can turn off key authentication for your resource.
Foundry authentication articleMCP approvals skip for listed tools
In Foundry Agent Service, an MCP tool's require_approval setting defaults to always. Setting it to never, or listing specific tools that skip approval, removes the human check on every call those tools make. Review each list against what the tool can change, and keep approval on for write, delete and send actions. Record who approved each list and when it was last reviewed.
Assistants API retirement date has passed
The agent API moved from the Assistants API (Agents v0.5 and v1) to the Responses API (Agents v2). Microsoft lists the Assistants API as deprecated with a retirement date of August 26, 2026, which has already passed as of this writing. Ask the team to list every agent still on the Assistants API, confirm with Microsoft how those agents are being handled now, and move them to the Responses API before relying on them.
What a security reviewer asks to see for Foundry role assignments
This table lists the evidence a security reviewer should request before approving Foundry role assignments, what each item proves, and where it comes from in the Foundry portal or Azure. Read the role and scope rows together, because the portal assigns Foundry Agent Consumer only at account scope and project or agent scope grants need the Azure CLI. Treat the Manage view as a grouping of governance controls, and confirm for each one whether it enforces a setting or only reports on it.
| Evidence | What it shows | Where it comes from in Foundry or Azure |
|---|---|---|
| Role assignments by scope | Every principal with a Foundry role at account, project or agent scope, with the role name and scope. | Azure CLI export of role assignments on the account and each project. Agent-scope grants need the CLI. |
| Owner, Project Manager and Developer holders | Users and groups holding Foundry Owner, Account Owner, Project Manager or agents/write. Shows who can publish agents or call deployments. | Project role assignment list. Check Azure AI Developer separately: it is scoped to hubs and ML workspaces, so it does not grant project access. |
| Entra ID sign-in for agent calls | Proof that agent calls authenticate with Entra ID. RBAC applies only to Entra callers, since an API key has full resource access. | Entra sign-in logs. Confirm which diagnostic logs your tenant captures for the Foundry resource and check for key-based calls. |
| Project separation per trust zone | One project per trust zone. Projects are the boundary, since an agent-scope role does not isolate project files. | Project inventory. Standard setup gives each project separate storage and Cosmos DB containers by default. |
| Hosted agent sandbox size | CPU and memory allocated to each hosted agent session, from 0.25 vCPU with 0.5 GiB to 16 vCPU with 32 GiB. | Hosted agent configuration per agent (Microsoft Learn, hosted agents). Each session runs in a per-session VM-isolated sandbox. |
| MCP approval setting per tool | Whether each MCP tool needs approval per call. The default is always, so any never setting or skip list is an exception to review. | Agent tool configuration, the require_approval value for each MCP tool (Microsoft Learn, MCP server authentication). |
| Change records for CLI-created scope assignments | Who created each project or agent scope grant, when, and under which approval record. | Azure activity log entries for role assignment writes, matched to change tickets. Confirm retention with your tenant admin. |
| Governance controls under Manage | Built-in controls for agent identity, access policies, cost and safety guardrails. Confirm which ones enforce and which only report. | Manage view in the Foundry portal. Test each control to see whether it blocks or only reports. |
Order of work to put Foundry role controls in production
This sequence sets up Foundry role controls in an order where each change can be tested before the next one starts. It begins with knowing every caller, including API key use, and ends with a retest from a caller account in a non-production project. Each step names the check to pass before moving on.
Inventory every principal and calling path
The platform team and the owner of each calling application list every principal that reaches the Foundry resource: users, groups, service principals, managed identities and any application using a key. Record each calling path and the project it reaches. Keys need the most attention, because an API key grants full access to the resource and RBAC does not restrict it, so each key needs a named owner and a retirement plan before step 3. Flag any caller of the Assistants API, which Microsoft lists as deprecated with retirement on August 26, 2026. Check: every path has a named owner and an Entra or key method, and older role names in existing assignments are mapped to the renamed roles, since the role IDs did not change.
Define one project per trust zone
The security architect and platform lead group agents by data sensitivity and by the people who need them, then create one Foundry project for each trust zone. Boundaries come first because a role assignment scoped to one agent governs only that agent's endpoints. A caller who can invoke a prompt agent can reference any file ID in the project, so anything that must stay separate belongs in a separate project. Standard agent setup enforces project-level data isolation by default, with separate storage and Cosmos DB containers for each project, so confirm that setup for every zone. Check: a written map of zone to project exists, and no agent or project file is shared across zones.
Assign build and publish roles to groups
The platform owner assigns roles to Entra groups so that membership changes happen in one place. Foundry User goes to builders, who can build in a project but cannot deploy models or publish agents. Foundry Project Manager goes to publishers, who can publish agents and assign only Foundry User. Foundry Account Owner goes to the team that creates projects and manages models, and it cannot build. Foundry Owner can do all of these, so keep it to a short list of named administrators. The Azure AI Developer role applies only to hubs and Azure Machine Learning workspaces, so it does not grant project access. Check: each group maps to one job, and every Owner holder has a documented reason.
Grant Foundry Agent Consumer at the narrowest scope
The identity owner gives Foundry Agent Consumer to principals that only call agent endpoints, since it is the least-privilege role for that job. The Azure portal assigns this role only at account scope, so project or single-agent assignments must be made with the Azure CLI. Use the narrowest scope the zone allows, and log each command with the principal, scope, zone and approver in the change record. Assignments scoped to one agent govern only that agent's endpoints, so they do not replace the project boundary from step 2. Check: a CLI listing of role assignments shows no account-level grant where a project or agent scope is enough, and the change record matches the listing.
Restrict the agents/write data action
The Foundry administrator finds every role definition and assignment that includes the agents/write data action. Principals holding it can invoke model deployments through the project Responses endpoint even without referencing an agent, so an agent-scoped assignment alone does not stop that call. Remove the action from callers who only invoke agents, and keep it only for named builders in non-production projects, with a recorded reason for each. Check: a test call from a caller identity holding only Foundry Agent Consumer, made to a model deployment without an agent reference, is refused.
Set MCP tool approvals to a reviewed policy
The agent owner checks the require_approval setting on every MCP tool in each project. In Foundry Agent Service it defaults to always, so each tool call needs approval. Keep always as the default, or set never or list specific tools to skip approval only after the security team has reviewed each tool's read and write actions. Record the chosen setting per tool and per project in the register. Check: each MCP tool shows an explicit setting, and the list of tools that skip approval matches the reviewed list exactly. MCP server sign-in is covered on the authentication page.
Retest from a non-production caller account
The security tester signs in as a caller account that holds only the roles from steps 3 to 5, inside a non-production project that mirrors the production zone. Attempt each boundary: invoke an allowed agent, deploy a model, publish an agent, reference a file ID from another project, call a model deployment without an agent, use an API key if any remain, and trigger an MCP tool that should prompt for approval. Each result should match the expected outcome in the test plan, and any mismatch returns to the step that owns it. If hosted agents are in scope, also confirm that the sandbox holds no agent blueprint credential. Check: a signed test record shows every expected denial and approval, and production changes wait for that sign-off.
Questions buyers ask about Foundry RBAC before approving agents
Do Foundry RBAC roles need a separate paid tier or license?
This page does not state a price or license tier for the Foundry roles, so confirm this with Microsoft before approval. Ask your Microsoft account team or licensing contact to confirm in writing whether assigning any Foundry role changes your entitlements in your tenant. Keep two costs apart in your review: the role assignments, which decide who can build, deploy, publish and call agents, and the consumption charges for models, tools and agent compute, which follow their own billing terms. Check the billing and purchase details for each one, since they can follow different rules. Record the answer, the name of the person who gave it and the date in your approval file so the decision can be reviewed later.
Can our own staff set up Foundry roles, or do we need outside help?
Your own administrators can make the role assignments, and that work can stay in-house. Assigning roles at project or agent scope may need the Azure CLI, because the Azure portal assigns the Foundry Agent Consumer role only at account scope, so confirm your administrators can use it. Outside help is useful for the parts that need an independent check: designing which roles each group receives, testing whether callers can reach agents or files they should not, and assembling the evidence reviewers ask for. Before work starts, ask the provider to name who does each task, which test cases are in scope and what form the evidence takes. DeployOpen's engagements are fixed-scope, with deliverables agreed in writing, and day-to-day administration stays with your team.
How long does a Foundry RBAC review or rollout take?
No duration is stated for this work, so ask for a timeline in the written scope before agreeing to one. The effort depends on how many Foundry projects, agents and calling identities need roles, because each one adds assignments to design, test and document. Scope grows as you add projects, as you add agents with their own endpoints, as more users, service principals and applications call those agents, and as more tool paths, such as MCP servers, enter the test plan. A pilot with one project and a small set of callers is easier to bound than a rollout across the whole tenant. Ask any provider to list the projects, agents and callers in scope, the number of test rounds and whether a retest is included, since those items set the schedule.
Does a per-agent role keep project files private from other callers?
No. A role assignment scoped to a single agent controls access to that agent's endpoints only, and it does not isolate the project's files. Microsoft's documentation says a caller who can invoke a prompt agent can reference any file ID in the project, so the Foundry project is the trust boundary for files. Put data with different owners or sensitivity levels in separate projects, and review who holds roles on each one. Then test the setup yourself. Use a caller who has access to one agent only and try to reference file IDs that belong to another workload in the same project. If the reference succeeds, the agent-level role provided no file isolation, and your design should say so. Reviewers often assume agent scope covers data, so document the result in the review.
Can an API key bypass Foundry RBAC role restrictions?
Yes. Foundry RBAC roles apply only when callers authenticate with Microsoft Entra ID, and an API key grants full access to the resource without role restrictions. Microsoft's authentication guidance says Foundry Agent Service supports Entra ID only, and it recommends Entra ID for production because it enables Conditional Access, managed identities and least-privilege RBAC. Confirm with Microsoft which key-based paths still exist for the resources in your tenant before approving any project. Then check that no key sits in agent code, configuration files, pipeline variables or MCP server settings, because anyone holding a key has the resource's full access. Remove or avoid any key you do not need, and use Entra ID for every caller that can reach a production agent.
Can code running in a hosted agent reach our team's credentials?
Microsoft's hosted agents documentation says the sandbox holds no agent blueprint credential. Agent code gets tokens only through the hosted agent token service or the tool server, and both run outside the sandbox. Each hosted agent session runs in its own VM-isolated sandbox, sized from 0.25 vCPU with 0.5 GiB up to 16 vCPU with 32 GiB. This limits what agent code can take from the platform, but it does not settle what a token can do. Ask Microsoft which identity each token carries and what roles that identity holds, and test whether a compromised dependency could call tools beyond its purpose. Review what you place inside your own container image or environment variables, because the sandbox does not protect secrets you add yourself.
What drives the cost of this Foundry RBAC work?
Three things drive the outside cost: staff time for the people who review and decide roles, the number of projects and agents in scope, and the depth of the test plan, including prompt injection, tool permission and file exposure cases. DeployOpen works to a fixed scope agreed in writing, and ongoing support or continuous testing is available as a retainer, so ask which parts of the quote recur. Your internal costs are administrator time to implement and maintain role assignments and to review access over time. Microsoft charges for models, tools and hosted agent compute are separate and are covered on the billing page in this Azure AI Foundry guide. Ask for a quote that lists each deliverable, the projects and agents covered, the test rounds and the retest. DeployOpen does not publish a price list, so the quote follows from the written scope.
How DeployOpen tests Foundry agent permissions before approval
DeployOpen tests Azure AI Foundry role assignments, agent permissions and sandbox settings as part of an AI agent rollout security review. The work covers prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings, and ends with a findings report, fixes and a retest. Engagements are fixed-scope, and the written scope sets which projects, roles and agents are included.
How we scope
- Scope names each Foundry project, the people in each role and the agents that will run there.
- Role mapping covers Foundry User, Foundry Project Manager, Foundry Account Owner, Foundry Owner and Foundry Agent Consumer.
- Engagements are fixed-scope, with scope and deliverables agreed in writing before testing starts.
How we test
- Testing covers prompt injection, tool and file permissions, data exposure, credential handling, SSO and admin settings.
- Confirm Foundry User cannot deploy models or publish agents, and that agent-scope grants only govern endpoint access.
- Confirm the require_approval setting on each MCP tool, since the default is always and developers can relax it.
How we hand over
- Deliver a findings report with each finding, the recommended fix and a retest of the fixed setup.
- Document the role assignment map per project, including which principals hold agents/write and why.
- Document Azure CLI assignments at project and agent scope, since the portal assigns Foundry Agent Consumer only at account scope.
How we support
- Retainers cover ongoing support, upgrades and continuous testing as Foundry role names, portal views and agent APIs change.
- Re-check role names after Microsoft's renames, since Azure AI User is now Foundry User with unchanged role IDs.
- Retest after agents move from the Assistants API to the Responses API, since call paths may change.

