plugins/microsoft-agents-expert/skills/microsoft-foundry/SKILL.md
Run agents on Microsoft Foundry (formerly Azure AI Foundry) Agent Service — prompt agents vs hosted agents, threads/runs and the Responses API, built-in tools (Bing grounding, code interpreter, file search, MCP, OpenAPI, A2A), connected agents, Entra agent identity, SDKs, and observability/evaluations.
npx skillsauth add markus41/claude plugins/microsoft-agents-expert/skills/microsoft-foundryInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Azure's managed agent runtime. Now branded Microsoft Foundry (portal ai.azure.com; docs
under /azure/foundry/, previous generation under /azure/foundry-classic/; RBAC roles
renamed "Foundry User/Owner/…"). The classic Agent Service went GA May 2025 (REST
api-version 2025-05-01) with the OpenAI-Assistants-style agents / threads / runs /
messages model; the current service centers on the Responses API as the single entry
point. Overview: https://learn.microsoft.com/azure/foundry/agents/overview
| Type | What it is | When | |---|---|---| | Prompt agents | Config-only: instructions + model + tools, authored in portal or SDK/REST. Fully managed runtime — no code or compute to manage. | Tool-using assistants where instructions + built-in tools suffice | | Hosted agents (preview) | Your code — built with Agent Framework, LangGraph, OpenAI Agents SDK, Anthropic SDK, GitHub Copilot SDK, or custom — shipped as a container or zip. Foundry provides the managed endpoint, autoscale, dedicated Entra identity per agent, session-state persistence, and observability. Your code calls the Responses API for models + platform tools. | Custom agent loops that still want managed hosting/identity/observability |
Classic threads/runs semantics: run states queued → in_progress → requires_action → completed/failed/cancelled/expired; threads up to 100K messages; optional BYO Cosmos DB
for thread storage.
| Surface | Names |
|---|---|
| Python | azure-ai-projects (>=2.0.0, AIProjectClient) + azure-identity; classic threads/runs library azure-ai-agents; hosted-agent server libs azure-ai-agentserver-responses / azure-ai-agentserver-invocations |
| .NET | Azure.AI.Projects (AgentAdministrationClient) |
| Agent Framework hosting | pip install agent-framework agent-framework-foundry-hosting → ResponsesHostServer |
| CLI | azd ext install microsoft.foundry; azd ai agent show \| invoke \| monitor |
import os
from azure.identity import DefaultAzureCredential
from azure.ai.projects import AIProjectClient
project_client = AIProjectClient(
endpoint=os.environ["FOUNDRY_PROJECT_ENDPOINT"],
credential=DefaultAzureCredential(),
)
agent = project_client.agents.get("<your-agent-name>")
client = project_client.get_openai_client() # Responses API access
# Classic threads/runs REST (GA api-version 2025-05-01)
curl -X POST "$ENDPOINT/threads/thread_abc123/runs?api-version=2025-05-01" \
-H "Authorization: Bearer $AGENT_TOKEN" -H "Content-Type: application/json" \
-d '{"assistant_id": "asst_abc123"}'
microsoft-opentelemetry). External agents can be
registered for trace/eval scoping.AIAgentConverter in azure-ai-evaluation — run evaluations as a pre-deploy gate
(see /msagent-deploy).skills/agent-interop.tools
Build Teams-native agents with the Teams SDK (formerly Teams AI Library v2) — App class, activity routing, adaptive cards, streaming, AI-generated labels, feedback, message extensions, Teams-as-MCP-server, and the bring-your-own-AI pattern with Agent Framework.
tools
Build and host custom engine agents with the Microsoft 365 Agents SDK — AgentApplication, the Activity protocol, channel reach via Azure Bot Service, hosting Agent Framework or Semantic Kernel engines, and the Agents Toolkit/Playground workflow. Successor to the Bot Framework SDK.
tools
Design, govern, and extend Microsoft Copilot Studio agents — topics, generative orchestration, knowledge, tools and MCP, agent flows, autonomous triggers, publishing channels, Copilot Credits pricing, and solution-based ALM on Power Platform.
tools
Choose and combine Microsoft agent stacks — the Copilot Studio vs Teams SDK vs M365 Agents SDK vs Agent Framework vs Foundry decision matrix, plus interop patterns - MCP as the tool fabric, A2A as the agent protocol, hosting matrices, and Agent 365 identity/observability.