Early-bird price on the GenAI & Agentic AI Engineer Bootcamp batch. Grab a seat →

Microsoft Foundry is Azure's platform for building AI applications, and Foundry Agent Service is the part of it that hosts and runs agents. Microsoft Agent Framework is a separate open-source library for writing agent code in .NET, Python or Go. You can use either without the other: the service runs agents you define by configuration, and the framework runs anywhere, but they are designed to meet when you deploy framework code as a hosted agent.

Key takeaways

  • "Microsoft Foundry" is the current brand. Microsoft lists Azure AI Studio and Azure AI Foundry as previous names.
  • Foundry Agent Service offers prompt agents (configuration only), voice-based prompt agents and hosted agents (your code in a container).
  • Microsoft Agent Framework is described by Microsoft as the direct successor to both Semantic Kernel and AutoGen.
  • Each agent gets its own Microsoft Entra agent identity, which starts with no permissions.
  • Long-term Memory is in public preview as of November 2026. Check the status of each feature you plan to depend on.

This article is part of our comparison of AI agents on AWS, Azure and Google Cloud. The sibling articles cover Amazon Bedrock AgentCore and its building blocks and ADK and Gemini Enterprise Agent Platform on Google Cloud.

What has been renamed?

If you learned this platform a year or two ago, several words have changed. Microsoft publishes the mapping itself:

PreviousCurrent
Azure AI Studio / Azure AI FoundryMicrosoft Foundry
Azure AI ServicesFoundry Tools
Assistants APIResponses API
Threads, Messages, Runs, AssistantsConversations, Items, Responses, Agent Versions
Hub + Azure OpenAI + Azure AI Services resourcesOne Foundry resource, with projects

Role names changed too: Foundry User and Foundry Owner were previously Azure AI User and Azure AI Owner. Tutorials that talk about threads and runs describe the earlier agent API.

What kinds of agent can you build in Foundry Agent Service?

Microsoft describes a spectrum from declarative to full code.

TypeWhat you provideWhat Foundry runsBest for
Prompt agentInstructions, a model and tools, as configurationEverythingA fast start and agents without custom orchestration
Voice-based prompt agentThe same, plus audio settingsThe agent and the real-time voice orchestrationSpoken, low-latency experiences
Hosted agentYour own code, as a container image or a zip of sourceThe container, endpoint, scaling and identityCustom logic and multi-agent systems
Responses API onlyAgent definition inside your own applicationModel inference and toolsAgents you already run elsewhere

A hosted agent is code you write with Agent Framework, LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK or your own code. Foundry runs it with a managed endpoint, automatic scaling, a dedicated Entra identity and session-level state. Microsoft's documentation says each hosted-agent session runs in a VM-isolated sandbox.

Start with a prompt agent. Move to a hosted agent when you need logic that configuration cannot express.

What are the building blocks?

  • Agent Runtime. Hosts and scales prompt agents and hosted agents, and manages conversations and tool calls.
  • Models. Microsoft says the Foundry catalogue holds more than 10,000 models from Microsoft, OpenAI, Anthropic, Meta and others. Agent Service works with the models in the catalogue that support agents, and you can swap models without changing agent code.
  • Tools and toolboxes. Built-in tools include web search, file search, code interpreter and memory. You can add your own through functions, OpenAPI specifications and Model Context Protocol (MCP) servers. A toolbox groups tools into one versioned unit behind a single managed MCP-compatible endpoint, so several agents share the same set and the same authentication. Our guide to MCP servers, tools and transports explains the protocol.
  • Observability. End-to-end tracing, metrics and evaluations, with Application Insights integration.
  • Identity and security. Entra identity, role-based access control (RBAC), content filters and virtual network isolation.
  • Publishing. Versioned agents with stable endpoints, shared through Microsoft Teams, Microsoft 365 Copilot and the Entra Agent Registry.

Foundry Agent Service also supports the Agent2Agent protocol for calls between agents. Microsoft states that A2A v1.0 is generally available on the service while v0.3 remains in preview. See the A2A protocol explained.

The Foundry Agent Service development lifecycle from creating an agent to monitoring it in production.

What is Microsoft Agent Framework?

Agent Framework is an open-source SDK for building agents and multi-agent workflows. It is available for .NET and Python, with Go in public preview. Microsoft says it combines AutoGen's simple agent abstractions with Semantic Kernel's enterprise features, such as session-based state management, middleware and telemetry, and calls it the next generation of both.

It has four main areas:

  • Agents that call a model, tools and MCP servers. Supported model providers include Microsoft Foundry, Anthropic, Azure OpenAI, OpenAI and Ollama.
  • Harness Agent, a pre-assembled agent for long, multi-step tasks, with planning, context compaction and tool approval.
  • Workflows, functional or graph-based, that connect agents and functions through explicit execution paths.
  • Integrations with model providers, tools, memory providers and evaluation services.

A minimal Python agent that uses a model in a Foundry project looks like this:

# pip install agent-framework
import asyncio

from agent_framework import Agent
from agent_framework.foundry import FoundryChatClient
from azure.identity import AzureCliCredential

agent = Agent(
    client=FoundryChatClient(
        project_endpoint="https://<resource>.services.ai.azure.com/api/projects/<project>",
        model="<your-model-deployment>",
        credential=AzureCliCredential(),
    ),
    name="HelloAgent",
    instructions="You are a friendly assistant. Keep your answers brief.",
)

async def main():
    result = await agent.run("What is the largest city in France?")
    print(f"Agent: {result}")

asyncio.run(main())

Sign in with az login first so AzureCliCredential can find your account. The framework does not load .env files on its own.

Microsoft's guidance: use an agent when the task is open-ended, a workflow when the steps are well defined, and a plain function whenever one will do. Our article on choosing between an agent and a workflow expands on this.

How do memory and identity work?

Memory. The service stores the current exchange as a conversation. Long-term Memory is a separate managed feature that extracts information from conversations, consolidates it and retrieves it in later sessions. It stores three types: user profile memory, chat summary memory and procedural memory. You use it by attaching the memory search tool to a prompt agent or by calling the memory store APIs. As of November 2026 it is in public preview, requires compatible Azure OpenAI chat and embedding model deployments, and does not support virtual network integration for memory stores.

Identity. An agent identity is a special type of identity in Microsoft Entra ID designed for AI agents. Foundry creates one for each agent, under a parent object called an agent identity blueprint. Three points matter in practice:

  • A new agent identity starts without resource permissions. You grant what it needs, for example an Azure RBAC role on a storage account.
  • Tools can run with application-only access (the agent's own authority) or delegated access (on behalf of the signed-in user). Acting on behalf of a user is in preview.
  • Agent identities appear in the Microsoft Entra admin centre, where administrators can apply Conditional Access and review sign-in and audit logs.

If you already govern people and applications in Entra ID, this is the strongest reason to build agents on Azure.

What is a sensible first project?

Build an internal assistant that answers questions from a small set of your own documents.

  1. Create a Foundry project and deploy one model that supports agents.
  2. Create a prompt agent in the portal. Write short instructions, attach the file search tool and upload ten to twenty documents.
  3. Test it in the agents playground. Ask questions whose answers you know, including some the documents cannot answer, and check that it says so.
  4. Read the traces. Open tracing and follow one conversation through each model call and tool call.
  5. Call it from code using the Foundry SDK, then put the agent definition in source control.
  6. Add one custom tool, either a function or a remote MCP server, and give the agent identity only the role that tool needs.
  7. Move to a hosted agent with Agent Framework only when you need orchestration the prompt agent cannot do.

What are the limits and costs to know about?

  • Pricing has several parts. Microsoft's pricing page says there is no additional charge for creating or running prompt agents. You pay for model tokens, and for tools such as file search storage, code interpreter sessions and web search. Hosted agents add container compute measured in vCPU-hours and GiB-hours. See the Foundry Agent Service pricing page.
  • Preview features. Memory, the agent optimiser and some voice features are in preview. Microsoft states that preview features come without a service-level agreement.
  • Two generations coexist. A classic portal and legacy agents with a shared project identity still exist. Make sure the documentation you follow is for the current experience.
  • Model coverage is partial. Not every model in the catalogue works with Agent Service. Filter the catalogue before you design around a model.

Common questions

Do I need Agent Framework to use Foundry Agent Service?

No. Prompt agents need no framework at all, and hosted agents can be written with LangGraph, the OpenAI Agents SDK, the Anthropic Agent SDK or custom code.

Can I use Agent Framework without Azure?

Yes. It is an open-source library that supports model providers such as OpenAI, Anthropic and Ollama as well as Microsoft Foundry.

What happened to Semantic Kernel and AutoGen?

Microsoft describes Agent Framework as the direct successor to both, created by the same teams, and publishes a migration guide for each.

Where do users meet the agent?

A published agent has a stable endpoint you can call from any application. Microsoft also supports sharing agents through Teams and Microsoft 365 Copilot.

Free download: The cloud AI agents field guide

How AWS, Azure and Google Cloud build and run enterprise agents, side by side: Bedrock AgentCore, Microsoft Foundry, Google's ADK and Agent Platform, and the A2A protocol. See what’s inside.