Borrowing it
Nothing to install: this file belongs to leestott/generative-ui-foundry-hosted-agents. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/leestott/generative-ui-foundry-hosted-agents/main/.copilot/skills/foundry-agent-deploy/SKILL.mdgit clone --depth 1 https://github.com/leestott/generative-ui-foundry-hosted-agentsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy)<a href="https://agentmods.dev/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy"><img src="https://agentmods.dev/badge/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy"><img src="https://agentmods.dev/badge/skills/leestott/generative-ui-foundry-hosted-agents/foundry-agent-deploy.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00147 | $0.01827 |
| Opus 5.5 | $0.00059 | $0.00731 |
| Sonnet 5.5 | $0.00029 | $0.00365 |
| Haiku 4.5 | $0.00015 | $0.00183 |
Grade A, and why
foundry-agent-deploy scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
curl.exe -sS -X POST $swa/api/copilotkit -H "Content-Type: application/json" --data-binary "@$env:TEMP\i.json" How it starts
The opening of the file, as written. The whole thing — 150 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Skill: Deploy a Foundry Hosted Agent + CopilotKit runtime + SWA
Validated, end-to-end deployment flow for the three-component generative-UI
solution (agent → runtime → frontend). Assumes infra is provisioned via azd
(azd up). Pair with the foundry-hosted-agent-maf skill for the agent code.
Deployment order (matters)
- Provision infra —
azd up(ACR, App Service, SWA, Foundry account + model, App Insights, managed identities). - Deploy runtime + frontend —
azd deploy runtime,azd deploy web(or viaazd up). The runtime boots even before the agent exists (lazy 503). - Build the agent image to ACR.
- Register a hosted-agent version and poll to
active. - Grant RBAC to the agent instance identity.
- Wire the runtime to the invocations endpoint (with
api-version). - Verify end-to-end through the SWA.
1–2. Provision + deploy
azd auth login
azd up
azd deploy runtime # redeploy after runtime/src/server.ts changes (npm run build first)
The
azure.ai.agentspostdeployhook logsAZURE_AI_PROJECT_ENDPOINT is not set— cosmetic, deploy succeeds. Node App Service cold start ≈100s.
3. Build the agent image
$acr = (azd env get-values | ConvertFrom-StringData).AZURE_CONTAINER_REGISTRY_NAME.Trim('"')
$tag = "maf-agui-$(Get-Date -Format yyyyMMddHHmmss)"
az acr build --registry $acr --image "analytics-agent:$tag" --image "analytics-agent:latest" ./agent
4. Register a hosted-agent version
Use the azure-ai-projects Python SDK (see scripts/register_agent.py — update
IMAGE to the new tag, then run it):
from azure.ai.projects import AIProjectClient
from azure.ai.projects.models import (
HostedAgentDefinition, ProtocolVersionRecord, AgentEndpointProtocol, ContainerConfiguration,
)
from azure.identity import DefaultAzureCredential
project = AIProjectClient(endpoint=PROJECT_ENDPOINT,
credential=DefaultAzureCredential(), allow_preview=True)
agent = project.agents.create_version(
agent_name="analytics-agent",
definition=HostedAgentDefinition(
container_configuration=ContainerConfiguration(image=IMAGE),
protocol_versions=[ProtocolVersionRecord(protocol=AgentEndpointProtocol.INVOCATIONS, version="1.0.0")],
cpu="1", memory="2Gi",
environment_variables={
"AZURE_OPENAI_ENDPOINT": "https://<account>.openai.azure.com/",
"MODEL_DEPLOYMENT_NAME": "model-router",
},
),
)
PROJECT_ENDPOINT=https://<account>.services.ai.azure.com/api/projects/<project>.- Poll
project.agents.get_version("analytics-agent", agent_version="N").statusuntil it equalsAgentVersionStatus.ACTIVE(usually near-instant). Compare to the enum, notstr(status)— under Python 3.11+str(status)is"AgentVersionStatus.ACTIVE". - The agent's Entra instance identity principal is on the create response at
agent.instance_identity.principal_id.
What ships with it
1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 150 lines · 147 tokens per session scan A 81a6ef80ac8b
foundry-agent-deploy is a skill published in the GitHub repository leestott/generative-ui-foundry-hosted-agents (6 stars, last pushed 3mo ago), licensed MIT. It adds 147 tokens to every session and 1,827 once invoked, about $0.0006 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
foundry-agent-deploy compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| foundry-agent-deployleestott/generative-ui-foundry-hosted-agents | Skill | 6 | 3mo ago | MIT | A | 147 | Claude Code, Codex |
| agui-tauri-windows-signingCopilotKit/OpenBot | Skill | 10k | yesterday | MIT | A | 202 | Claude Code, Codex |
| tiered-memoryAzure-Samples/eShopLite | Skill | 169 | 6d ago | MIT | A | 25 | Claude Code, Codex |
| release-processAzure-Samples/eShopLite | Skill | 169 | 6d ago | MIT | A | 0 | Claude Code, Codex |
| aspireSSWConsulting/SSW.VerticalSliceArchitecture | Skill | 416 | 8d ago | MIT | A | 201 | Claude Code |
| ralph-two-pass-scanAzure-Samples/eShopLite | Skill | 169 | 6d ago | MIT | A | 0 | Claude Code, Codex |
| agentic-modernizationAzure-Samples/eShopLite | Skill | 169 | 6d ago | MIT | A | 33 | Claude Code, Codex |