What is Microsoft Foundry Agent Service? - Microsoft Foundry (original) (raw)

Foundry Agent Service is a managed platform for building, deploying, and scaling AI agents. Use any framework, any supported model from the Foundry model catalog, and the Responses API as a single entry point.

You choose how much of the platform you want:

Already have agent code running outside of Foundry? Call the Responses API from your existing process to get Foundry models and platform tools without moving your code.

What is an agent?

An agent is an AI application that uses a model from the Foundry model catalog to reason about user requests and take autonomous actions to fulfill them. Unlike a simple chatbot that only generates text, an agent can call tools, access external data, and make decisions across multiple steps to complete a task. In some cases, agents act without a chat interface at all — working autonomously in the background, triggered by system events, to accomplish tasks on a user's or organization's behalf.

Every agent combines three core components:

A diagram showing the components of an AI agent.

Agent Service at a glance

Component What it does
Responses API Single entry point for every agent type. Gives any framework, process, or runtime access to Foundry models plus platform tools (file search, code interpreter, memory, web search, MCP servers).
Agent Runtime Hosts and scales prompt agents and Hosted agents. Manages conversations, tool calls, and agent lifecycle.
Tools Built-in tools including web search, file search, memory, code interpreter, MCP servers, and custom functions. Managed authentication includes service-managed credentials and On-Behalf-Of (OBO).
Models Works with many models from the Foundry model catalog, such as GPT-4o, Llama, and DeepSeek. Swap models without changing your agent code.
Observability End-to-end tracing, metrics, and Application Insights integration. See every decision your agent makes.
Identity & Security Microsoft Entra identity, RBAC, content filters, and virtual network isolation. Enterprise-grade trust built in.
Publishing Version agents, create stable endpoints, and share through Microsoft Teams, Microsoft 365 Copilot, and the Entra Agent Registry.

Get started with agents

Choose your path based on what you're trying to do:

Agent types

There are two main agent types in Agent Service:

Prompt agents

Prompt agents are defined entirely through configuration — instructions, model selection, and tools. You author them in the Foundry portal for a quick start, or define them programmatically with the SDKs or REST API to integrate with your CI/CD workflows. Either way, Foundry runs the agent for you — there's no application code to maintain, no compute to pay for, and no containers or packages to optimize, scale, or monitor for security.

Two paths to get started:

Best for: Getting started fast, internal tools, production agents that don't need custom orchestration logic, and teams that want a managed runtime without infrastructure overhead.

Hosted agents (preview)

Hosted agents are code-based agents you build with Agent Framework, LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK, the GitHub Copilot SDK, or your own code. Ship your agent as either a container image or a zip of your source code — Foundry builds the image for you when you bring a zip — and Foundry runs it with a managed endpoint, automatic scaling, a dedicated Microsoft Entra identity, session-level state persistence, and end-to-end observability.

Under the hood, your agent code calls the Responses API on your Foundry project endpoint for model inference and tool orchestration, which gives you access to Foundry models from the catalog and a unified set of platform tools — standard OpenAI tools like file search, code interpreter, and web search, plus Foundry-exclusive tools like SharePoint, WorkIQ, and Fabric IQ.

Note

Hosted agents are currently in public preview.

Best for: Agents that call into your own custom code; secondarily, custom orchestration logic, multi-agent systems, and custom protocols (webhooks, voice, AG-UI) where you want full control over agent logic while letting Foundry handle hosting, scaling, and identity.

If you'd rather keep running your agent code outside of Foundry — for example, embedded in an existing application — you can still get Foundry's models and platform tools by calling the Responses API directly from your process. See Use the Responses API from your own code.

Compare agent types

Prompt agents Hosted agents (preview)
Authoring surface Portal, SDK, or REST Agent Framework, LangGraph, OpenAI Agents SDK, Anthropic Agent SDK, GitHub Copilot SDK, custom code
Foundry models + platform tools Yes Yes (via the Responses API on the Foundry project endpoint)
Skill support Yes Yes
Runtime code to maintain None Yes — your agent logic
Compute to manage None — fully managed Container compute, Foundry-managed
Managed endpoint Yes Yes
Autoscale Automatic, Foundry-managed; scales with request volume Automatic, Foundry-managed; scales container instances per session and request volume
Agent identity (Entra) Yes Automatic, dedicated per agent
Cost model Per-call inference + tool usage Per-call inference + tool usage + container compute
Best for Fast start, production agents without custom orchestration Agents that call into custom code; secondarily, custom orchestration logic

Use the Responses API from your own code

The Responses API is the single model and tools endpoint behind every agent type. You can call it directly from your own code to get Foundry models and platform tools without creating an agent resource in Foundry. This pattern is additive to Hosted agents, not an alternative — the same Agent Framework code can call the Responses API from your own process today and be packaged as a container hosted agent later when you want a Foundry-managed endpoint.

See Quickstart: Use the Responses API for endpoint options and end-to-end samples.

Model support

Agent Service works with many models available in the Foundry model catalog. For the full list, see Quotas, limits, and regional support.

Agent Service provides built-in tools and supports custom tools so your agents can take actions and access data. For a full list, see the Foundry tool catalog. For advanced tool selection patterns, see Tool best practices.

Foundry supports remote MCP servers that you can add from the Add Tools catalog in the Foundry portal. For example, the Azure DevOps MCP Server (public preview) can be added directly from the catalog. Connect your Azure DevOps organization to enable agent access, and configure a subset of available tools to control which actions agents can perform. You can also connect custom MCP servers hosted on Azure Functions using the Functions MCP webhook endpoint (/runtime/webhooks/mcp) to expose custom tools to your agents.

Supported authentication options for MCP servers and other tool connections include:

Toolbox (preview)

Toolbox lets you define a curated set of tools once, manage them centrally in Foundry, and expose them through a single MCP-compatible endpoint. Any MCP-compatible agent runtime or client can consume a toolbox, regardless of the framework you use. Toolbox versioning gives you explicit control over when changes take effect — create a new version, test it, and promote it to default when you're ready.

Development lifecycle

Agent Service supports the full build-test-deploy-monitor workflow:

  1. Create — Define a prompt agent in the portal or with the SDK, or write a Hosted agent that calls the Responses API.
  2. Test — Chat with your agent in the agents playground or run locally. MCP server integrations, including custom MCP servers hosted on Azure Functions, can be exercised directly in the playground to validate tool connectivity, permissions, and behavior before publishing.
  3. Trace — Inspect every model call, tool invocation, and decision with agent tracing.
  4. Evaluate — Run evaluations to measure quality and catch regressions.
  5. Optimize — Automatically improve your hosted agent's instructions using the agent optimizer.
  6. PublishPromote your agent to a managed resource with a stable endpoint.
  7. Monitor — Track performance and reliability with service metrics and dashboards.

For a detailed walkthrough, see Agent development lifecycle.

Enterprise capabilities

Agent Service provides enterprise-grade infrastructure for every agent you deploy:

For environment setup instructions, see Set up your environment.

Publishing and sharing

Agent Service provides built-in versioning and publishing so your agents can move from development to production with confidence.

Security, privacy, and compliance

Agent Service is designed for enterprise workloads where you need strong controls over identity, networking, data handling, and safety.