agentleFS
MicrosoftKnown publishermicrosoft/ai-agents-for-beginners/translations/pcm/.agents/skills/deploying-scalable-agents/SKILL.md

deploying-scalable-agents

Skill76k starsChanged 5 months agoMITView on GitHub

Take one working agent prototype go scalable, observable production

Adopted by

Steady: 0 new projects took it in the last 4 weeks, none the 4 weeks before.thin data

Week of Oct 4: 0 new projectsWeek of Oct 11: 0 new projectsWeek of Oct 18: 0 new projectsWeek of Oct 25: 0 new projectsWeek of Nov 1: 0 new projectsWeek of Nov 8: 0 new projectsWeek of Nov 15: 0 new projectsWeek of Nov 22: 0 new projects
Oct 2026Nov 2026Nov 2026
New projects taking a version of this file each week, over the 8 weeks our latest run read: only 0 in all, so this is a hint, not a trend.

Who's talking about microsoft/ai-agents-for-beginners

The biggest 5 of 88 mentions linking to the repository that our crawl found. Each line is their own headline.

See all 88

Talked about on GitHub, Bluesky and Hacker News (88 times).

On GitHub · 50

45 more on GitHub

On Bluesky · 35

30 more on Bluesky

On Hacker News · 3

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 7 are distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Add model routing, response caching, or bounded concurrency to control latency and cost.

    line 30
  2. Distinctive:

    Add evaluation gate so bad agent version no fit ship.

    line 31
  3. Distinctive:

    Add human-in-the-loop approval step for high-risk actions.

    line 32
  4. Distinctive:

    After deploy, make sure say endpoint really dey answer (green deploy fit still dey silent).

    line 83
  5. Distinctive:

    MCP for production: treat every MCP server as untrusted boundary — pin version, scope identity, validate outputs, rate-limit, no ever …

    line 98
  6. Very specific:

    Prefer di canonical FoundryChatClient(...) + provider.as_agent(...) pattern wey dem dey use for di whole course.

    line 102
  7. Distinctive:

    No promise live-Azure results wey you never comfirm.

    line 103
  8. Distinctive:

    Keep evaluation and cost advice together: evaluation set di quality floor, routing/caching keep cost near dat floor.

    line 104

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Deploying Scalable Agents with Microsoft Foundry

Companion skill for Lesson 16 – Deploying Scalable Agents. Use am to help learner move agent from prototype go scalable, observable production deployment. Ground every recommendation inside lesson content and the runnable notebook; no make you invent Foundry APIs.

Triggers

Activate dis skill when learner wan:

  • Deploy agent to Microsoft Foundry as hosted agent and make am versioned/observable.
  • Choose between client-hosted, hosted-agent, and agent-workflow deployment patterns.
  • Add model routing, response caching, or bounded concurrency to control latency and cost.
  • Add evaluation gate so bad agent version no fit ship.
  • Add human-in-the-loop approval step for high-risk actions.
  • Instrument agent wit OpenTelemetry tracing for production observability.
  • Smoke-test deployed agent as quick post-deploy gate.

Core mental model

Production agent na mostly operational skeleton around di model (~80%), no be di model itself. Map every recommendation to one of dis concerns:

ConcernPrototype → Production
Hostingnotebook → versioned hosted service
Identityyour az login → managed identity + scoped RBAC
Statein-memory → externalised thread/memory store
Failuretraceback → retries, fallbacks, alerts
Cost"small small cents" → tracked, routed, cached, budgeted
Qualityeyeballing → automated evaluation gate
Trustyou approve → policy + human-in-the-loop

Deployment patterns (pick one, or combine)

  1. Client-hosted — di reasoning loop dey run inside your process. Max control; you dey own scaling/state.
  2. Hosted agent (Foundry Agent Service) — Foundry dey host the loop, dey store threads, dey enforce RBAC/content safety, dey show di agent for portal. Less control, far less operational wahala.
  3. Agent workflow — multiple agents/tools join body as graph wit branching, approval nodes, and durable checkpoints.

Lifecycle (di loop wey dey deliver agent)

create → version → evaluate (gate) → deploy hosted → observe online → collect failures → repeat. Offline evaluation na gate, no be afterthought — version no go ship unless e clear di threshold. Online observability dey feed real failures back enter di offline test set.

Scaling and cost levers (priority order)

  1. Right-size di model — use di smallest model wey fit pass di evaluation gate.
  2. Route by complexity — small/fast model for simple requests, big model for real reasoning (DIY classifier or Foundry Model Router).
  3. Cache — serve near-duplicate requests without model call.
  4. Stateless design + bounded concurrency — externalise state; retry wit backoff.

Key patterns wey dem suppose reproduce

Point learner to these from di notebook 16-python-agent-framework.ipynb:

  • Request handler: cache → route by complexity → trace span → run → cache.
  • Evaluation gate: score offline test set; return pass_rate >= threshold and only deploy if true.
  • Human approval: @tool(approval_mode="always_require") for actions like large refunds.
  • Tracing: wrap each request inside tracer.start_as_current_span(...) and set attributes like routed.model, customer.id.

Smoke-testing deployed agent

After deploy, make sure say endpoint really dey answer (green deploy fit still dey silent). Use AI Smoke Test action via .github/workflows/smoke-test.yml with catalog for tests/. Runner dey POST each prompt to POST {project_endpoint}/agents/{agent_name}/endpoint/protocols/openai/responses and e dey check the reply text. Identity need Azure AI User role at Foundry project scope; token audience must be https://ai.azure.com/.

Combine di gates: smoke test (make sure e dey respond, every deploy) → offline evaluation (good enough to ship before promotion) → online evaluation (how e dey perform for real life, continuous).

Enterprise controls

  • RBAC: give every hosted agent managed identity with least privilege.
  • MCP for production: treat every MCP server as untrusted boundary — pin version, scope identity, validate outputs, rate-limit, no ever expose secrets.

Guardrails for the assistant

  • Prefer di canonical FoundryChatClient(...) + provider.as_agent(...) pattern wey dem dey use for di whole course.
  • No promise live-Azure results wey you never comfirm; recommend di smoke-test workflow to confirm deployment.
  • Keep evaluation and cost advice together: evaluation set di quality floor, routing/caching keep cost near dat floor.

<!-- CO-OP TRANSLATOR DISCLAIMER START -->

Disclaimer: Dis document don translate wit AI translation service Co-op Translator. Even tho we dey try make am correct, abeg make you know say automated translation fit get errors or mistakes. Di original document for dia own language na im be di correct source. For important info, make person wey sabi human translation do am. We no go responsible for any misunderstanding or wrong understanding wey fit happen because of dis translation.

<!-- CO-OP TRANSLATOR DISCLAIMER END -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.