AGENT SKILL

hosted-agent-deployment

Help a learner deploy an agent to production as a Microsoft Foundry Hosted Agent, and decide when Capability Hosts are needed. Use for Lessons 4–5: hosted deployment, thread/memory persistence, bring-your-own storage, and enterprise governance.

License 许可
MIT
最近更新
2026-10-31
Stars
★ 198
Forks
72

01 前言 Front Matter

name
hosted-agent-deployment
description
Help a learner deploy an agent to production as a Microsoft Foundry Hosted Agent, and decide when Capability Hosts are needed. Use for Lessons 4–5: hosted deployment, thread/memory persistence, bring-your-own storage, and enterprise governance.

03 SKILL.md 正文

Hosted agent deployment

Guidance for taking an agent to production (Lessons 4–5).

Guardrails (always apply)

  • Terminology: Hosted Agents, Capability Hosts, Microsoft Foundry Agent Service.
  • Deploy with the current SDK/Responses API; models gpt-5.1 (chat) / gpt-5-codex (coding).
  • Config and secrets via .env / managed identity — never hardcode endpoints or keys.

The key distinction (teach this clearly)

  • Hosted Agents provide the Microsoft-managed execution environment: compute, scaling, identity, observability and session management. You do not need a Capability Host just to run a Hosted Agent.
  • Capability Hosts are only required when you want Agent Service to use customer-owned resources instead of Microsoft-managed storage.
    • Happy with default Microsoft-managed storage, vector search and conversation persistence? No Capability Host configuration is required.
    • Need data sovereignty, private networking, compliance controls, or storage in your own Azure Cosmos DB, Azure Storage Account and Azure AI Search? Configure Capability Hosts to connect Agent Service to those resources.

Concepts a learner should grasp

  1. Basic vs standard setup: basic = Microsoft-managed; standard = bring-your-own resources via Capability Hosts + connections.
  2. Persistence: hosted agents persist threads and memory server-side (long-running conversations).
  3. Governance: identity, private networking, Hosted MCP approval workflows, cost controls.

How to help

  • Start from lesson-4-agentdeployment/ for the deploy + ChatKit front end, then lesson-5-hosted-agents-production/ for enterprise/BYO-storage and governance.
  • Before recommending Capability Hosts, ask whether the learner actually needs customer-owned storage/networking — if not, keep the basic setup.
  • Remind them of cost & cleanup: delete the resource group when finished.

Validate

  • python -m py_compile on any deploy scripts.
  • CI smoke test: .github/workflows/smoke-test-hosted-agent.yml (workflow_dispatch, OIDC) exercises a deployed hosted agent.

References

  • lesson-4-agentdeployment/README.md, lesson-5-hosted-agents-production/README.md

04 同仓库更多 Skills

microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

multi-agent-a2a

Help a learner compose agents as networked services using the open Agent-to-Agent (A2A) protocol — expose an agent as an A2A server and consume a remote agent as a peer. Use for Lesson 7 tasks: multi-agent orchestration and A2A client/server wiring.

★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

microsoft-toolbox

Help a learner use Microsoft Toolbox to define tools once and govern them centrally, then consume a toolbox from an agent through a single MCP endpoint. Use for Lesson 6 tasks: tool discovery, registration, governance, and versioning.

★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

mcp-integration

Help a learner give an agent tools through the Model Context Protocol (MCP) — both client-side MCP and Foundry Hosted MCP tools. Use when connecting an agent to an MCP server (e.g. the GitHub MCP server), adding a remote tool, or reasoning about MCP approval/governance.

★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

foundry-agent-basics

Help a learner build their first AI agent with the Microsoft Agent Framework (MAF) on Microsoft Foundry. Use when the task is creating a basic agent, wiring up FoundryChatClient, choosing a model, running the DevUI, or understanding lesson 1–2 concepts (instructions, tools, threads).

★ 198
microsoft
microsoft/Building-AI-Agents-From-Zero-To-Production

agent-evaluation

Help a learner evaluate and observe an AI agent on Microsoft Foundry — quality/safety evaluators, tracing, and reading results. Use for Lesson 3 tasks: measuring agent performance, adding observability, or interpreting evaluation output.

★ 198