# 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.

Cloud service · Azure. Updated 2026-11-25. Page: https://blowstack.com/tools/cloud-services-hub/foundry-agent-service

> 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.

## 9 key features of Foundry Agent Service

1. **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.
2. **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.
3. **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.
4. **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.
5. **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.
6. **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.
7. **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.
8. **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.
9. **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. **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. **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. **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. **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. **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. **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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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](https://blowstack.com/tools/cloud-services-hub/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.
- **[Azure DevOps](https://blowstack.com/tools/cloud-services-hub/azure-devops)**: Foundry agents can use the Azure DevOps MCP Server to work with an Azure DevOps organization. A team can expose only the tools the agent needs, such as reading work items to prepare a sprint summary.
- **[Azure DNS](https://blowstack.com/tools/cloud-services-hub/azure-dns)**: Foundry Agent Service can use Azure Private DNS zones linked to a virtual network to resolve Foundry endpoint hostnames to private endpoint IP addresses. Clients on the network can then reach the agent endpoint without resolving it to a public address.
- **[Azure Firewall](https://blowstack.com/tools/cloud-services-hub/azure-firewall)**: In a network-isolated deployment, outbound traffic from Foundry agents can be routed through Azure Firewall. Firewall rules can restrict which external endpoints network-injected agents can reach.
- **[Azure Key Vault](https://blowstack.com/tools/cloud-services-hub/azure-key-vault)**: Foundry Agent Service deployments can use customer-managed encryption keys stored in Azure Key Vault where supported. In a bring-your-own-resource setup, the connected storage and database services can use Key Vault keys to encrypt agent files and conversation data at rest.
- **[Azure Marketplace](https://blowstack.com/tools/cloud-services-hub/azure-marketplace)**: Foundry Agent Service surfaces eligible partner agent offerings from Azure Marketplace in the Foundry Agent Catalog. Teams can discover those offerings and deploy them into a Foundry project according to the offer's terms.
- **[Azure OpenAI in Foundry Models](https://blowstack.com/tools/cloud-services-hub/azure-openai-in-foundry-models)**: Foundry Agent Service can use an Azure OpenAI model deployment to run a prompt agent. The selected model produces responses and, when the model supports it, decides when to call the agent's configured tools.
- **[Azure Policy](https://blowstack.com/tools/cloud-services-hub/azure-policy)**: Foundry Agent Service deployments inherit Azure Policy controls applied to their Foundry resources. For example, a policy can audit or deny Foundry accounts that allow public network access.
- **[Azure portal](https://blowstack.com/tools/cloud-services-hub/azure-portal)**: Foundry Agent Service uses Foundry accounts and projects that administrators can provision and manage in the Azure portal. Administrators can configure settings such as identity, access control, and private endpoints there while developing agent definitions in Foundry.
- **[Azure Private Link](https://blowstack.com/tools/cloud-services-hub/azure-private-link)**: Foundry Agent Service can be accessed through a private endpoint on the Foundry account. Applications on connected private networks can invoke agents without exposing the account's endpoint to the public internet.
- **[Azure Resource Manager](https://blowstack.com/tools/cloud-services-hub/azure-resource-manager)**: Foundry Agent Service uses Azure Resource Manager resource types for its Foundry accounts, projects, and published agent applications. Teams can provision those resources declaratively and manage their lifecycle through Azure's control plane.
- **[Azure role-based access control (Azure RBAC)](https://blowstack.com/tools/cloud-services-hub/azure-role-based-access-control-(azure-rbac))**: Foundry Agent Service uses Azure RBAC to control access to Foundry projects and connected Azure resources. For example, a team can grant developers the Azure AI User role on a project and grant the project's managed identity separate permissions to its storage account.
- **[Azure Speech in Foundry Tools](https://blowstack.com/tools/cloud-services-hub/azure-speech-in-foundry-tools)**: Foundry agents can use Voice Live to handle spoken conversations. Voice Live provides real-time speech input and output while the agent handles the conversation and invokes its configured tools.
- **[Azure Virtual Network](https://blowstack.com/tools/cloud-services-hub/azure-virtual-network)**: Foundry Agent Service supports network-isolated setups that use an Azure virtual network and private endpoints for connected resources. Agents can reach resources such as their search index, storage account, and conversation database without requiring public endpoints on those resources.
- **[Content Safety in Foundry Control Plane](https://blowstack.com/tools/cloud-services-hub/content-safety-in-foundry-control-plane)**: Foundry Agent Service can apply guardrails to supported agents to moderate inputs and outputs and help detect prompt injection. For a hosted agent with a custom request format, the guardrail configuration can identify which text fields to inspect.
- **[Event Hubs](https://blowstack.com/tools/cloud-services-hub/event-hubs)**: Foundry Agent Service deployments can stream available Foundry resource logs to Event Hubs through Azure diagnostic settings. A downstream consumer can process those logs as they arrive.
- **[Foundry IQ](https://blowstack.com/tools/cloud-services-hub/foundry-iq)**: Foundry agents can call a Foundry IQ knowledge base as a retrieval tool. The knowledge base plans searches across its configured sources and returns evidence the agent can use to answer a question and cite its sources.
- **[Foundry Models](https://blowstack.com/tools/cloud-services-hub/foundry-models)**: Foundry Agent Service runs prompt agents on supported model deployments from Foundry Models. Teams can select a model based on the agent's needs, such as tool calling, multimodal input, or a longer context window.
- **[Microsoft Defender for Cloud](https://blowstack.com/tools/cloud-services-hub/microsoft-defender-for-cloud)**: Foundry Agent Service can be covered by Defender for Cloud threat protection for supported AI workloads. Security teams can use the resulting alerts to investigate suspicious activity involving their Foundry deployments.
- **[Microsoft Entra ID (formerly Azure AD)](https://blowstack.com/tools/cloud-services-hub/microsoft-entra-id-(formerly-azure-ad))**: Foundry Agent Service uses Microsoft Entra ID to authenticate callers and can use managed identities to access tools and resources without stored credentials. Published agents can also use Entra agent identities for governance and discovery through the Entra Agent Registry.
- **[Microsoft Fabric](https://blowstack.com/tools/cloud-services-hub/microsoft-fabric)**: Foundry agents can connect to a Microsoft Fabric data agent as a knowledge tool. The Foundry agent can send it a natural-language question and use the answer from the configured Fabric data sources in its response.
- **[Microsoft Foundry](https://blowstack.com/tools/cloud-services-hub/microsoft-foundry)**: Foundry Agent Service runs within Microsoft Foundry projects, where teams develop, test, version, and publish agents. Agents use project connections to access configured models, tools, and knowledge sources.
- **[Microsoft Purview](https://blowstack.com/tools/cloud-services-hub/microsoft-purview)**: Foundry Agent Service can integrate with Microsoft Purview to make activity from supported agents visible for data security and compliance monitoring. Administrators can review that activity alongside other AI usage in their organization.
- **[Microsoft Sentinel](https://blowstack.com/tools/cloud-services-hub/microsoft-sentinel)**: Foundry agents can connect to the Microsoft Sentinel MCP server and use its authorized tools to retrieve security data. For example, an agent can summarize records returned by a read-only query against the Sentinel data lake.
- **[Observability in Foundry Control Plane](https://blowstack.com/tools/cloud-services-hub/observability-in-foundry-control-plane)**: Foundry Agent Service exposes supported agents and workflows in the Control Plane inventory. With Application Insights configured for the project, teams can inspect a run's traces and see which model call or retrieval step failed.
- **[Phi open models](https://blowstack.com/tools/cloud-services-hub/phi-open-models)**: Foundry Agent Service can use supported Phi model deployments as the model behind a prompt agent. A team can choose a smaller Phi model for a focused task such as classifying short requests.
- **[Queue Storage](https://blowstack.com/tools/cloud-services-hub/queue-storage)**: Foundry Agent Service uses Queue Storage to invoke Azure Functions tools asynchronously. The agent sends a request to an input queue, and the function places its result on a separate response queue for the agent.

## Alternatives to Foundry Agent Service in other clouds

### AWS

**[Amazon Bedrock AgentCore](https://blowstack.com/tools/cloud-services-hub/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.

| | Foundry Agent Service | Amazon Bedrock AgentCore |
| --- | --- | --- |
| Agent deployment | Prompt configuration or custom code | Packaged agent code |
| Tool connection | Direct tools and remote MCP servers | APIs and functions via MCP gateway |

Compared Nov 2026.

## What is Foundry Agent Service

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.
