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.