Cloud service · Azure · Updated

Foundry Agent Service - Foundry Agent Service is an Azure-managed platform for building, deploying, and operating AI agents that combine language models, knowledge retrieval, and tool execution.

In short

Foundry Agent Service supports configuration-based prompt agents, real-time voice agents, and hosted agents built with custom code and frameworks. It manages agent runtime capabilities, identity, publishing, and observability while connecting agents to enterprise data and business systems.

Cloud Services Hub →

9 key features of Foundry Agent Service

01
Managed prompt-agent runtime

Define instructions, a supported model, and tools without deploying an application container. Use SDK or REST-based definitions in deployment pipelines to make configuration changes reviewable and repeatable.

02
Hosted custom-code agents

Run container-based agents built with your preferred framework while Foundry manages the endpoint, scaling, and identity. Each session executes in an isolated sandbox; persist shared or durable application data in an external service.

03
Knowledge retrieval and conversation context

Ground responses with file search and supported enterprise knowledge connectors while maintaining conversation context. Managed long-term memory is available in preview and should be evaluated separately from ordinary conversation history.

04
Built-in and custom tools

Connect agents to code interpreter, web search, custom functions, OpenAPI services, and remote MCP servers. Validate tool inputs and enforce business authorization in backend services rather than relying on instructions alone.

05
Agent identity and access controls

Use Microsoft Entra identities and Azure RBAC to scope agent access to resources. Supported connections can use on-behalf-of authentication when access must follow the invoking user's permissions.

06
Real-time voice interaction

Use Voice Live integration for speech recognition, speech synthesis, turn-taking, and interruption handling. Voice-based prompt agents connect through a real-time WebSocket while retaining configured tools and knowledge access.

07
Versioning and publishing

Publish agents behind stable endpoints and manage changes through agent versions. Test model, instruction, and tool changes before promotion, and retain a known-good version for rollback.

08
Tracing and evaluation

Inspect model requests, tool invocations, errors, and latency through tracing and Application Insights integration. Use evaluation datasets to detect regressions in answer quality and task completion before deployment.

09
Enterprise model and tool gateways

Bring-your-own AI gateway support allows agents to use externally managed model endpoints, including endpoints behind Azure API Management. Routing MCP tools through an organization-managed gateway is a separate preview capability that requires configuring the gateway route before entering its endpoint in Foundry.

Where Foundry Agent Service is used

  1. 01
    Internal knowledge assistant

    Answer engineering or policy questions using approved documents and search indexes. Apply source-level access controls and return references where supported so users can check the underlying material.

  2. 02
    Customer-support task automation

    Retrieve troubleshooting guidance, inspect order status through APIs, and prepare updates to support records. Require explicit approval or deterministic backend checks before issuing refunds or changing customer entitlements.

  3. 03
    Event-driven case triage

    Use Logic Apps to invoke an agent when a ticket or business event arrives, then classify the request and propose routing. Keep retries, duplicate detection, and final record updates in the workflow or backend service.

  4. 04
    Conversational data analysis

    Use retrieval tools and code interpreter to examine approved datasets and produce summaries or charts. Restrict uploaded data, validate calculations, and store generated artifacts according to organizational retention requirements.

  5. 05
    Voice-enabled service applications

    Connect a voice-based prompt agent through Voice Live for spoken assistance with access to enterprise tools. Design authentication, escalation, and confirmation steps explicitly for actions requested over audio.

  6. 06
    Specialized multi-agent applications

    Separate research, analysis, and action responsibilities across agents when a single agent becomes difficult to evaluate or maintain. Use supported orchestration frameworks or agent-to-agent interfaces, and set limits on delegation depth, execution time, and total consumption.

How Foundry Agent Service is priced

Model inference consumption

Budget for the selected model's input and output usage under its applicable Azure or external-provider pricing. Conversation history, retrieved context, and repeated model calls during tool execution can increase consumption beyond the initial user request.

Tool-specific consumption

Tools can introduce additional charges, such as code execution, retrieval storage, search, or external API usage. Check the billing unit for each enabled tool rather than assuming every tool call is included in model inference pricing.

Hosted execution

Hosted agents add a managed compute cost dimension separate from model inference. Size CPU and memory for the workload, and check the current hosted-agent meters and regional rates when estimating session costs.

Connected Azure resources

Customer-owned services such as Azure AI Search, Azure Blob Storage, Azure Cosmos DB, Azure Functions, API Management, and Azure Monitor are billed under their own pricing. Include capacity, storage, telemetry ingestion, networking, and data-transfer costs where applicable.

Services Foundry Agent Service works with

A typical architecture separates the client application, agent runtime, retrieval layer, and action services. The client authenticates users and invokes a published agent endpoint. The agent retrieves approved content from Azure AI Search, with source documents held in Blob Storage where appropriate. Ingestion, indexing, document authorization, and retention remain explicit parts of the solution rather than automatic consequences of connecting storage.

For business actions, expose narrow operations through Azure Functions, OpenAPI services, or remote MCP servers. Keep validation and transaction rules in those services. Logic Apps can own event triggers, approval steps, retries, and durable workflow state. For example, a ticket workflow can request an agent-generated classification, obtain human approval, and then update the system of record.

Use Microsoft Entra identities for service access and delegated authentication where supported and required. API Management can govern external model endpoints and, through the separate MCP gateway preview, tool traffic. Send operational telemetry to Application Insights and Azure Monitor, applying appropriate redaction and retention. Test the complete network path, including private endpoints and DNS, for every dependency before enabling production traffic.

Azure Blob Storage

Use Blob Storage for source documents, generated artifacts, or customer-owned storage in supported agent configurations. For example, an ingestion process can place approved PDF manuals in a container before indexing them for retrieval. Configure least-privilege access and lifecycle policies, and do not assume a new blob becomes searchable without an ingestion step.

Azure Functions

Expose validated business operations through Functions-backed APIs or a supported remote MCP endpoint. For example, an agent can call a function that checks inventory and returns a structured availability result. Keep authorization, input validation, idempotency, and transaction rules inside the function or its downstream service.

Logic Apps

Use Logic Apps to trigger agents from business events or expose workflow actions to agents through supported tools. For example, a new support email can start a workflow that asks an agent to classify the issue and then creates an approval task. Let the workflow own retries and approval state rather than treating conversational context as durable process state.

Azure Monitor

Connect observability to Azure Monitor and Application Insights to investigate latency, failed model requests, and tool errors. For example, correlate a slow agent response with a timeout in an order-management API. Review telemetry capture settings because prompts, tool arguments, and retrieved content can contain sensitive information.

API Management

Place externally managed model endpoints behind API Management and connect them through bring-your-own AI gateway support. For example, route an agent's inference requests to an approved enterprise model endpoint with gateway access policies. MCP tool routing through your own gateway is a separate preview: configure the MCP route first, then supply the gateway-routed endpoint to Foundry.

Azure Cosmos DB

Use Azure Cosmos DB for customer-owned conversation state where the selected agent setup supports it, or access application data through a narrowly scoped custom tool. For example, a case-management tool can retrieve a customer's active case by a validated identifier. Treat conversation storage and application records as separate data domains with their own retention and access policies.

Azure AI Bot Service

Foundry Agent Service can publish an agent to Microsoft Teams and Microsoft 365 Copilot using an Azure Bot resource. The bot routes conversations from those channels to the published agent endpoint.

Azure App Testing

Foundry Agent Service uses Playwright Workspaces in Azure App Testing for its browser automation tool. The workspace provides cloud browsers in which an agent can navigate a site, interact with page elements, and read the results.

Azure Container Registry

Foundry Agent Service can pull a container image from Azure Container Registry to deploy a hosted agent. This lets a team package its agent code and dependencies into a versioned image before deployment.

Azure Databricks

Foundry agents can connect to Azure Databricks managed MCP servers as tools. For example, an agent can use a tool backed by a Genie space to answer a business question against the data exposed by that space.

Alternatives to Foundry Agent Service in other clouds

AWS

Amazon Bedrock AgentCore

Amazon Bedrock AgentCore and Foundry Agent Service both provide managed infrastructure for running AI agents, connecting them to tools, and monitoring their activity. AgentCore Runtime hosts agent code you package, while Foundry Agent Service supports both custom-code agents and prompt agents defined by configuration.

Compare fact by fact
Foundry Agent ServiceAmazon Bedrock AgentCore
Agent deploymentPrompt configuration or custom codePackaged agent code
Tool connectionDirect tools and remote MCP serversAPIs and functions via MCP gateway

What is Foundry Agent Service

2 min read

Foundry Agent Service provides a managed runtime for AI agents in Microsoft Foundry. An agent combines model instructions, conversation context, knowledge sources, and tools to respond to requests or perform tasks. The service manages runtime and lifecycle functions, but application teams remain responsible for tool permissions, business rules, evaluation, and approval requirements for consequential actions.

Choose the agent type according to the amount of application logic you need to control. Prompt agents define behavior through instructions, a supported model, and configured tools, using the portal, SDKs, or REST API. Voice-based prompt agents add real-time spoken interaction through Voice Live. Hosted agents run your own agent code in a managed execution environment and support frameworks such as Microsoft Agent Framework, LangGraph, and the OpenAI Agents SDK. Hosted execution uses isolated per-session sandboxes; durable business state should be stored explicitly rather than assumed to survive in local process memory.

Agents access information through retrieval tools and perform actions through tool interfaces. Available options include file search, web search, code interpreter, custom functions, OpenAPI-based APIs, and remote Model Context Protocol servers. For example, a support agent can retrieve troubleshooting instructions, query an order API, and prepare a refund request. Treat model-generated tool arguments as untrusted input: validate identifiers and amounts in backend code, enforce authorization at the destination, and require approval before committing sensitive changes.

Identity and network design are deployment concerns, not optional finishing steps. Use Microsoft Entra identities and narrowly scoped Azure role assignments for downstream access. Where a connector supports delegated access, configure on-behalf-of authentication when results must reflect the requesting user's permissions. Private networking and bring-your-own Azure resources support controlled architectures, but configuration and availability differ by agent type and tool. Verify outbound connectivity, private DNS, subnet capacity, and tool authentication before production rollout.

Develop and test agents against representative conversations and failure scenarios. Trace model calls and tool invocations, measure latency and consumption, and evaluate groundedness, task completion, and unsafe-action handling. Publishing provides a stable endpoint and versioned deployment artifacts. Keep agent definitions, tool contracts, and application code under source control, and evaluate changes before promoting a new version.

Conversation history is distinct from long-term memory. Managed long-term memory is a preview capability and needs explicit decisions about retention, user separation, and sensitive data. Other newer capabilities, including Foundry Routines and gateway-based MCP governance, also have preview-specific support boundaries. Confirm regional availability, model compatibility, quotas, and feature status for the exact deployment configuration, and budget for inference, tools, hosted execution where applicable, and connected Azure resources.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.