Skip to content

Microsoft Foundry Agent Service

Foundry Agent Service is the managed runtime in Microsoft Foundry for building, hosting and scaling AI agents. Teams configure prompt agents with no code, run voice agents, or deploy their own agent code as hosted containers, with Entra identity, tools, tracing and publishing to Teams and Microsoft Copilot. [1]

Also known as Foundry Agent Service, Azure AI Agent Service

Intended for
Agent and application developers, Platform engineers, Solution architects, Security and identity teams
Runs on
Azure public cloud regions (hosted agents only in the regions Learn lists), Private networking: standard setup for prompt agents, bring-your-own VNet for hosted agents [2]

What it is

In one paragraph
Microsoft Foundry Agent Service is a managed platform inside Microsoft Foundry for building, deploying and scaling AI agents. It offers three agent types: prompt agents defined by instructions, a model and tools; voice-based prompt agents that hold real-time spoken conversations through Voice Live; and hosted agents, where you package your own code built with Microsoft Agent Framework, LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK, the GitHub Copilot SDK or custom code, and Foundry runs it. The current service uses the Responses API (Agents v2), which replaced the Assistants API. Earlier SDKs used the name Azure AI Agent Service, and the older agents now run as Foundry Agent Service (classic). [1, 3, 4]
What it does
The service hosts and scales agents, manages conversations, tool calls and versions, and can give each agent its own Microsoft Entra identity. Toolboxes group tools such as web search, file search, code interpreter, MCP servers and custom functions behind one managed MCP endpoint. Tracing, evaluations and Application Insights show what each agent did. Published agents get a stable endpoint and can be shared to Microsoft Teams, Microsoft Copilot and the Entra Agent Registry, and agents can talk to other agents over the A2A protocol. [1]

How it works

  • Prompt agents: defined by configuration in the portal, SDK or REST; Foundry runs them with no runtime code. Cost: per-call inference plus tool usage.
  • Voice-based prompt agents (preview): connect through Voice Live over a real-time WebSocket, using native speech-to-speech or a cascaded speech, text and speech design; phone numbers through Teams Phone extensibility or Twilio.
  • Hosted agents: you push a container image to Azure Container Registry, or a .zip that Foundry builds. Each session runs in its own VM-isolated sandbox with a persistent $HOME, sized from 0.5 vCPU and 1 GiB up to 2 vCPU and 4 GiB, in Python or C#. Compute is released after an idle timeout (default 15 minutes) and state is restored on resume. Cost adds CPU and memory during active sessions.

Endpoints support the Responses, Invocations, Activity and A2A protocols. Prompt agents can use private networking; hosted agents use a bring-your-own virtual network. [1, 2]

Microsoft Foundry Agent Service architecture: components by layer and how they connectCopilot & businessappsAgents & automationAI models & platformData & analyticsDeveloper toolsSecurity, identity &governanceApps, Microsoft Teams and Microsoft Copilot: Where users and other systems reach the agentApps, Microsoft Teams andMicrosoft CopilotAgent endpoint (Responses, Invocations, Activity, A2A): Stable entry point for a published agent versionAgent endpoint (Responses,Invocations, Activity, A2A)Agent runtime (prompt and hosted agents): Hosts agents, manages conversations, tool calls and sessionsAgent runtime (prompt andhosted agents)Foundry Models: Models used for reasoningFoundry ModelsToolbox MCP endpoint: Curated tools such as web search, code interpreter and MCP serversToolbox MCP endpointFoundry IQ knowledge bases: Grounding in company data through Azure AI SearchFoundry IQ knowledge basesTracing and Application Insights: Traces, metrics and evaluationsTracing and ApplicationInsightsMicrosoft Entra agent identity: Scoped, auditable access to resourcesMicrosoft Entra agentidentity
Diagram as a list
  1. Copilot & business apps

    • Apps, Microsoft Teams and Microsoft CopilotWhere users and other systems reach the agentConnects to Agent endpoint (Responses, Invocations, Activity, A2A)
  2. Agents & automation

    • Agent endpoint (Responses, Invocations, Activity, A2A)Stable entry point for a published agent versionConnects to Agent runtime (prompt and hosted agents)
    • Agent runtime (prompt and hosted agents)Hosts agents, manages conversations, tool calls and sessions
  3. AI models & platform

    • Foundry ModelsModels used for reasoning
    • Toolbox MCP endpointCurated tools such as web search, code interpreter and MCP servers
  4. Data & analytics

    • Foundry IQ knowledge basesGrounding in company data through Azure AI Search
  5. Developer tools

    • Tracing and Application InsightsTraces, metrics and evaluations
  6. Security, identity & governance

    • Microsoft Entra agent identityScoped, auditable access to resources
Components and connections as documented by Microsoft.

Who it serves

Developers and platform teams who build custom agents that need a choice of model, integration with company systems or custom logic, and who prefer a managed runtime to running their own containers or Kubernetes. Microsoft's Cloud Adoption Framework places Foundry at the strategic transformation end, with deep integration and custom logic, and Copilot Studio at the process transformation end with low-code tools. [5]

Practical use cases

A contact center wants an automated voice agent for routine calls without building speech infrastructure.
Approach
Create a voice-based prompt agent and connect a phone number through Teams Phone extensibility or Twilio.
Role of Microsoft Foundry Agent Service
Agent Service manages the agent and voice orchestration through Voice Live.
Data, infrastructure and skills
Foundry project, Voice Live model, Application Insights and a telephony channel.
Type of benefit
Faster customer response
Caveats
Voice agents are preview; direct SIP is not supported.
First step
Build a voice agent and test it from the browser playground.

Sources [1]

Employees need an agent in Teams that answers questions and performs simple tasks in internal systems.
Approach
Build a prompt agent with toolbox tools and a knowledge base, then publish it to Teams.
Role of Microsoft Foundry Agent Service
Agent Service hosts the agent, applies Entra identity and handles publishing.
Data, infrastructure and skills
Foundry project, model deployment, tools and Teams publishing rights.
Type of benefit
Employee time saved
Caveats
Agents require Microsoft Entra ID authentication; review data flows to any non-Microsoft tools.
First step
Prototype the agent in the playground with two or three tools.
External systems such as GitHub or Jira should trigger an agent with their own payloads.
Approach
Deploy a hosted agent that exposes the Invocations protocol to receive webhooks.
Role of Microsoft Foundry Agent Service
Agent Service runs the container per session and provides identity and tracing.
Data, infrastructure and skills
Agent code in Python or C#, Azure Container Registry and a supported region.
Type of benefit
Process automation
Caveats
You maintain the agent code; billing includes CPU and memory per active session.
First step
Deploy a sample hosted agent from the foundry-samples repository.

Sources [2]

Problems it solves

Teams that build agents with open-source frameworks also have to handle containers, web servers, security, memory, scaling, instrumentation and version rollback. Microsoft's hosted agent documentation names these cross-cutting jobs as the problem the service takes on.

Agent Service handles the hosting side. Simple agents need no runtime code at all; for code-based agents the platform provides the endpoint, per-session isolation, identity, state and observability while your code keeps control of the logic. [2]

Capabilities

  • Prompt agents [1]

    Agents defined entirely by instructions, model choice and tools, authored in the portal or as code in a CI/CD pipeline.

    Why it matters: The fastest path to a production agent with nothing to host.

    Limits: No custom orchestration logic; use a hosted agent for that.

  • Hosted agents [2]

    Your own agent code, in any framework, runs in per-session VM-isolated sandboxes with a dedicated endpoint, Entra identity and persisted session state.

    Why it matters: Full control of logic while Foundry handles hosting, scaling and identity.

    Limits: Python and C# only; sandboxes go up to 2 vCPU and 4 GiB; an endpoint serves one version with no traffic splitting.

  • Voice-based prompt agents [1, 6]

    Managed real-time voice agents through Voice Live, with browser testing and phone channels via Teams Phone extensibility or Twilio.

    Why it matters: Customer-facing voice experiences without hosting voice orchestration.

    Limits: Preview; direct SIP is not offered, and phone callers receive audio only.

  • Toolboxes and MCP [1, 6]

    Curated tools shared across agents through one managed MCP endpoint with central authentication, governance and versioning.

    Why it matters: Change a tool once instead of rewiring every agent.

    Limits: Authentication options are key, Entra identity, OAuth passthrough or unauthenticated; non-Microsoft tools may send data outside your boundary.

  • Identity and networking [1, 2]

    Dedicated Microsoft Entra identities for agents, RBAC, content filters and virtual network isolation.

    Why it matters: Agents get scoped access to resources without shared credentials.

    Limits: A private Azure Container Registry for hosted agents works only for projects created after 25 June 2026.

  • Publishing and protocols [1, 6]

    Versioned agents with stable endpoints, shared to Microsoft Teams, Microsoft Copilot and the Entra Agent Registry; A2A for agent-to-agent calls.

    Why it matters: Agents reach users where they already work and can be called by other agents.

    Limits: A2A v1.0 is GA but v0.3 is preview; voice-based agents do not show the standard Teams publishing card.

  • Observability and optimization [1, 6]

    End-to-end tracing, evaluations and Application Insights integration, plus an agent optimizer that proposes better instructions and tool descriptions.

    Why it matters: Teams can see each decision and measure quality over time.

    Limits: Tracing is GA for prompt and hosted agents; the agent optimizer is limited preview.

  • Memory [6, 7]

    Managed short-term, long-term and procedural memory for agents.

    Why it matters: Agents can keep useful context across conversations.

    Limits: Memory is preview (checked 26 Oct 2026).

Requirements and dependencies

Required

  • An Azure subscription with a Foundry resource and project
  • Microsoft Entra ID authentication, which agents require instead of API keys
  • A supported model from the Foundry catalog
  • For hosted agents: a container image or source .zip in Python or C#, and a region that offers hosted agents
  • For private networking: the standard setup for prompt agents or a bring-your-own virtual network for hosted agents
[1, 6]
Required means it does not work without it; optional means it can connect when you need it. Relationships follow Microsoft's documentation.

Platforms: Cloud service

Licensing and cost considerations

Licensing model
Pay as you go
Availability and licensing
Agents (core) and publishing to Microsoft Copilot and Teams are GA; Voice Live agents, memory and agent guardrails are preview; the agent optimizer is limited preview (Learn GA overview, checked 26 Oct 2026). The hosted agents page has no preview label. Workflows retire on 1 December 2026; agents (classic) retire on 31 March 2027. Pricing: inference and tools, plus CPU and memory for hosted agents. [2, 6, 7]

Prices change and depend on your agreement. This guide quotes a price only with the date it was checked; use Microsoft's pricing page for current figures.

Limitations, and when something simpler is enough

What it is not

Agent Service is not a low-code maker tool for business users; Microsoft positions Copilot Studio for that. It is not an agent framework: you write orchestration with Microsoft Agent Framework or another SDK and host it here. It is not the place for new multi-agent workflows: Microsoft is retiring Foundry workflows on 1 December 2026 and points new development to Microsoft Agent Framework. And it is not always needed: Microsoft's guidance says to check first whether a ready-made SaaS agent meets the requirement. [5, 6]

Common failure points (our implementation notes)

  • Building a custom agent before checking whether a ready-made Microsoft SaaS agent or Copilot Studio meets the need, as Microsoft advises.
  • Starting new multi-agent orchestration in Foundry workflows, which retire on 1 December 2026; Microsoft points to Agent Framework instead.
  • Connecting non-Microsoft tools without reviewing data flows, since those tools may send data outside your boundary.
  • Grounding an agent on company data before access permissions and data governance are settled, so it can surface content users should not see.
  • Putting preview features such as memory, guardrails or voice agents in production paths without a fallback.

Practical first steps

  1. Set up the environment

    Create a Foundry project and choose the basic setup for prototypes or the standard setup for enterprise data and networking control.

    Check: You can open the project in the Foundry portal.

  2. Create a prompt agent

    Use the portal or the prompt agent quickstart to set instructions, a model and tools.

    Check: The agent replies correctly in the agents playground.

  3. Add a toolbox

    Curate the tools the agent needs into a toolbox and attach it.

    Check: Traces show the expected tool calls.

  4. Move custom logic to a hosted agent

    Package your framework code as a container or .zip and deploy it with the Azure Developer CLI.

    Check: The agent's dedicated Responses endpoint answers test requests.

  5. Publish

    Promote a version to a managed resource and publish it to Microsoft Teams and Microsoft Copilot.

    Check: Users can find and chat with the agent in Teams.

  6. Leave workflows before 1 December 2026

    If you use Foundry workflows, follow the migration guide to Microsoft Agent Framework.

    Check: No production process depends on Foundry workflows.

Sources, status and review

Status
Active
Last checked against the sources
26 Oct 2026
Responsible editor
IntelligentHQ editors

Numbered sources

Each statement above links to the source it comes from. Labels say who reported it.

  1. What is Microsoft Foundry Agent Service? (Microsoft Learn) (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  2. Hosted agents in Foundry Agent Service (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  3. What is Microsoft Foundry? (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  4. What's new in Foundry Agent Service? (classic) (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  5. Technology plan for AI agents (Cloud Adoption Framework, Microsoft Learn) (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  6. Microsoft Foundry portal general availability overview (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
  7. Foundry Agent Service product page (opens in a new tab) Microsoft · Vendor-reported · link checked 3 Nov 2026
Change log for this page
  1. Content updated: Platforms, licensing model, cost considerations, common failure points

Everything that changed in the guide

Deciding whether you need it?

Three free tools apply Microsoft's own published guidance to your situation, and say when Microsoft Foundry Agent Service or any new technology is not needed. Your answers stay in your browser.

Fill out the form below to request your copy.

Name(Required)