azure-functions-hosted-skills
Skill11 starsChanged 15 days agoMITView on GitHub
Build, scaffold, extend, deploy, and troubleshoot Azure Functions Hosted Skills: cloud-hosted, event-driven intelligent capabilities built with Markdown, natural-language instructions, declarative configuration, code, and tools. Use whenever the user asks for an Azure Functions Hosted Skill, medium-code intelligent capability, AI app on Azure Functions, intelligent app on Azure Functions, serverless agent, serverless agents, Azure Functions agent, scheduled agent, morning briefing, daily digest, timer agent, inbox summary, email or Teams briefing, background AI workflow, connector-triggered agent, HTTP/chat capability, MCP tool, webhook-style agent, Azure Functions hosted agent, or Dynamic Workflows with Durable Functions or DTS. Use this skill, not azure-functions-deploy or azure-functions-diagnostics, to deploy or troubleshoot an app with agents.config.yaml, azurefunctions-agents-runtime, or its create_function_app(); app-local *.agent.md files count, .github/agents files do not.
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- Azure/azure-functions-skillsedited, first seen Oct 13, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- Azure/azure-functions-skills★ 2290% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository30 other files it gives its agents.
- azure-app-platform-agent-instructionsSkill
- azure-app-platform-block-authoringSkill
- azure-app-platform-canvasSkill
- azure-app-platform-fluent-themeSkill
- azure-app-platform-hosted-skillSkill
- azure-app-platform-spot-illustrationSkill
- azure-cost-health-checkSkill
- azure-functions-hosted-skills-canvasSkill
- azure-functions-hosted-skills-github-daily-digestSkill
- azure-functions-assessSkill
- azure-functions-best-practicesSkill
- azure-functions-canvasSkill
- azure-functions-commonSkill
- azure-functions-createSkill
- azure-functions-deploySkill
- azure-functions-diagnosticsSkill
- azure-functions-doctorSkill
- azure-functions-feedbackSkill
- azure-functions-health-statusSkill
- azure-functions-helpSkill
- azure-functions-inventorySkill
- azure-functions-setupSkill
- azure-functions-updateSkill
- azure-resources-querySkill
- azure-sre-agent-canvasSkill
- azure-storageSkill
- containersSkill
- kusto-workbenchSkill
- create-canvas-appSkill
- create-spot-illustrationSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. About 0 are common, 16 are distinctive, and 20 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈16
Distinctive · estimate
This author's own choices. Worth a look.
20
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Very specific: line 45
Prefer the newest deployable GPT reasoning model with remaining quota when available, such as gpt-5.4 or newer.
- Distinctive: line 51
If an agent needs web browsing, current public data, browser automation, data analysis, or code execution, use Azure Container Apps dynamic …
- Very specific: line 54
Use remote HTTP MCP servers and connection MCP servers from mcp.json.
- Very specific: line 57
Use Connector Namespaces, represented as Microsoft.Web/connectorGateways resources in Bicep.
- Distinctive: line 112
Before editing, inspect the app.
- Very specific: line 128
When inspecting deployed connectors, remember that Connector Namespace resources live under Microsoft.Web/connectorGateways.
- Distinctive: line 136
When the user wants to create a Hosted Skill or describes an agentic or tool-driven capability, do not jump straight to files unless the …
- Distinctive: line 141
Ask only the questions needed to move forward, usually covering:
- Distinctive: line 144
Invocation: Should it be chat/API-driven, scheduled, event-triggered, connector-triggered, or some combination?
- Distinctive: line 153
Teams targets: If the agent needs a Teams team, channel, or chat target, ask the user to paste a Teams link and parse IDs from it on their …
- Very specific: line 162
Deployment preference: Default to building and deploying to Azure with azd up, but offer to run locally first if the user wants a local …
- Distinctive: line 165
Do not ask the user to estimate runtime duration unless the workflow is obviously unusual or may run longer than the standard …
- Very specific: line 172
Do not add builtin_endpoints or a main.agent.md debug/chat agent just to test a scheduled, timer, connector-triggered, queue, or other …
- Very specific: line 178
After the discovery, summarize the plan before editing.
- Distinctive: line 189
Ask whether to use Dynamic Workflows before enabling them.
- Distinctive: line 191
After adoption, ask a separate question about Durable Task Scheduler (DTS).
- Distinctive: line 206
Use manifest discovery + MCP primary retrieval when Azure MCP tools are available:
- Very specific: line 213
Call Azure MCP functions_template_get with language: python and template: ai-hosted-skills-python.
- Very specific: line 216
Write the returned files array into the target project.
- Very specific: line 218
If MCP returns an actual tool error, cannot retrieve the template, or returns an empty/zero-file result after reading the complete …
- Distinctive: line 226
When Azure MCP tools are not available, skip directly to the manifest/GitHub fallback above.
- Distinctive: line 229
Do not use bundled template files as a scaffold source.
- Distinctive: line 233
After scaffolding from MCP or GitHub, tailor the app to the user's agent.
- Very specific: line 268
Before running azd provision or azd up, run the model and quota checks in models.md, recommend the best deployable GPT model, and set the …
- Distinctive: line 272
No reasoning app settings unless the app is explicitly upgraded to a reasoning-capable model.
- Distinctive: line 285
After copying, remove or adjust sample-specific agents and instructions.
- Very specific: line 290
Default to deploying new apps to Azure with azd up.
- Very specific: line 303
When an app uses Foundry, dynamic sessions, or connector MCP servers, run azd provision before local development.
- Very specific: line 312
Start Azurite with azurite --skipApiVersionCheck.
- Very specific: line 370
Do not silently deploy gpt-4.1 just because it is the template default.
- Very specific: line 379
When selecting a reasoning-capable model, confirm reasoning support from the Azure OpenAI reasoning models documentation, then set model …
- Distinctive: line 403
Keep files and existing Azure resources.
- Very specific: line 414
Before azd provision or azd up, run az account show --query "{name:name,id:id,tenantId:tenantId}" and show the selected subscription to the …
- Very specific: line 424
After deployment, verify outputs with azd env get-values, open or provide the relevant app URL, show the user how to get the default …
- Very specific: line 433
When a manual trigger starts a timer/background agent, tell the user what to expect before waiting: the admin endpoint often returns 202 …
- Very specific: line 454
When creating backing Azure resources beyond this skill's bundled Bicep, use Azure docs.
≈ “Common” is an estimate: at least 1 in 5 of the 408,460 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.
Files
Azure Functions Hosted Skills
Azure Functions Hosted Skills are a medium-code programming model for building cloud-hosted, event-driven intelligent capabilities on Azure Functions. Start with Markdown, natural-language instructions, and declarative configuration, then add code, tools, functions, bindings, business logic, and Azure integrations when the scenario needs more control.
Each Hosted Skill runs within an Azure Functions application and can react to HTTP requests, messages, schedules, data changes, and other Functions triggers. It uses the Functions foundation for deployment, event-driven scale, identity, networking, monitoring, and operations, and can expose capabilities through HTTP or MCP for applications, agents, and agent harnesses.
Azure Functions hosts and manages the skill in the cloud, so it remains available after deployment instead of depending on a developer laptop or local process. Lead customer conversations with this programming model and the customer's end-to-end scenario and success criteria, rather than trying to categorize the product. Hosted Skills complement other Microsoft AI offerings and can be used with them.
Hosted Skills are for developers, cloud application teams, and non-professional developers. The approachable starting point supports straightforward intelligent functionality, while the path to custom code and Azure integrations supports increasingly specialized requirements.
The current implementation uses the Azure Functions agents runtime. Skill definitions live in
Markdown .agent.md files, runtime defaults live in agents.config.yaml, remote MCP servers live
in mcp.json, and deployment uses azd.
Terminology
- This authoring skill is the
SKILL.mdguidance used by a coding agent to build Hosted Skills. - Hosted Skill is the cloud-deployed intelligent capability built on Azure Functions.
- Agent definition is a
*.agent.mdimplementation file that configures one runtime capability. - Agent Skill is reusable instruction or domain knowledge under
src/skills/that an agent definition can consume; it is not the Hosted Skills product or this authoring skill.
Current Defaults
- Scaffold with Microsoft Foundry as the model provider.
- Scaffold files may keep
gpt-4.1as the safe Bicep fallback, but before provisioning or deploying, check the user's subscription/region for the best deployable GPT model and quota. - Prefer the newest deployable GPT reasoning model with remaining quota when available, such as
gpt-5.4or newer. Only configure reasoning settings for models known to support them. Older models can fail ifAZURE_FUNCTIONS_AGENTS_REASONING_*settings are present. - For
gpt-5.xand other reasoning-capable models, use reasoning effortmediumby default,highwhen the task needs deeper reasoning or the agent is underthinking,xhighonly when the selected model supports it, and reasoning summaryconcise. - If an agent needs web browsing, current public data, browser automation, data analysis, or code execution, use Azure Container Apps dynamic sessions. Do not write custom web-fetch tools for those cases.
- Use remote HTTP MCP servers and connection MCP servers from
mcp.json; localstdioMCP servers are not supported by the runtime. When the user brings a stdio MCP server, convert the needed actions into Python custom tools or use a hosted remote MCP endpoint. - Use Connector Namespaces, represented as
Microsoft.Web/connectorGatewaysresources in Bicep. - Generated apps should include a ready-to-edit
src/local.settings.json, not only a template. - Generated
requirements.txtshould useazurefunctions-agents-runtime[monitor]whenever the app includesAPPLICATIONINSIGHTS_CONNECTION_STRING(the scaffolded infra provisions it by default), so the runtime auto-exportsagent.runanddynamic_session.executespans to Application Insights with no extra code. If the retrieved template ships the baseazurefunctions-agents-runtime, add the[monitor]extra. When the app has no Application Insights, use the base package and either prompt the user to add it or omit telemetry.
Progressive References
Load only the files needed for the task:
| Need | Reference |
| Required files and scaffold contents | project-files.md |
| Agent frontmatter, triggers, built-in endpoints | agent-files.md |
| Trigger schemas, connector triggers, built-in endpoint routes | triggers.md |
| Built-in chat APIs, session IDs, built-in MCP tools | built-in-endpoints.md |
| Local/deployed testing recipes by trigger type | testing.md |
| Foundry model defaults, upgrades, reasoning settings | models.md |
| Dynamic sessions for code execution and web browsing | sessions.md |
| Connector Namespace overview, naming, and safety boundaries | connectors.md |
Remote MCP server entries, headers/auth, Connector MCP server configs, authorization, mcp.json, and inspection | connector-mcp.md |
| Connector operation IDs, schemas, and dynamic parameters | connector-schemas.md |
| Microsoft Teams connector targets, links, schemas, and troubleshooting smoke tests | connector-teams.md |
| Connector side-effect smoke tests for Teams, Outlook, and MCP tools | connector-smoke-tests.md |
| Connector-triggered agents and trigger config deployment | connector-triggers.md |
| Custom Python tools and Agent Skills | tools-and-skills.md |
| Dynamic Workflows: suitability, opt-in, Durable activities, data-driven plans, Sub Agents, and backend choice | dynamic-workflows.md |
| Writing robust agent instructions | agent-authoring.md |
| Bicep, azd, deployment, local development | infra-and-deployment.md |
| Azure resource naming abbreviations used by the Bicep assets | abbreviations.json |
| Diagnostics and common failures | troubleshooting.md |
| Official Azure Functions Hosted Skills quickstart template and Learn article | quickstart-reference.md |
Skill Scope
For Hosted Skills apps, this skill owns deployment and troubleshooting. Do not hand off to
azure-functions-deploy or azure-functions-diagnostics; those are for standard Azure Functions
apps. Deploy with this skill's azd guidance, and diagnose errors with
troubleshooting.md and the connector references.
This rule also applies to a follow-up request that only says deploy, azd up, redeploy, or
reports an error. A Functions app is a Hosted Skills app when one of these markers is present:
- The selected Functions app contains
agents.config.yaml(commonlysrc/agents.config.yaml). - Its
requirements.txtdepends onazurefunctions-agents-runtime, or itsfunction_app.pyimportscreate_function_app()from that runtime. - App-local
*.agent.mdfiles count only when they belong to that runtime app. Do not treat repository-level.github/agents/*.agent.mdcoding-agent configuration as a Hosted Skills marker.
Assess the Workspace
Before editing, inspect the app. Look for:
src/function_app.pyimportingcreate_function_app()src/*.agent.mdsrc/agents.config.yamlsrc/mcp.jsonsrc/tools/andsrc/skills/src/local.settings.jsoninfra/main.bicep,infra/app/*.bicep,infra/main.parameters.jsonazure.yaml.azure/*/config.jsonfor existingazdenvironments
For existing apps, read the current files and preserve the app's structure. Current apps should
use explicit builtin_endpoints, trigger.args, Foundry provider settings, agents.config.yaml
for shared runtime defaults, and Connector Namespace MCP entries in mcp.json.
When inspecting deployed connectors, remember that Connector Namespace resources live under
Microsoft.Web/connectorGateways. Connections are connectorGateways/<gateway>/connections, MCP
server configs are connectorGateways/<gateway>/mcpserverconfigs, and trigger configs are
connectorGateways/<gateway>/triggerconfigs. Do not search for legacy top-level
Microsoft.Web/connections to find Connector Namespace connections.
Discuss and Plan the Hosted Skill
When the user wants to create a Hosted Skill or describes an agentic or tool-driven capability, do not jump straight to files unless the request already contains enough detail. First understand the end-to-end scenario, what they have already tried, and how they will measure success. Then learn enough to shape the app and discuss a short plan.
Ask only the questions needed to move forward, usually covering:
- Goal: What should the agent accomplish, and what should a successful run produce?
- Invocation: Should it be chat/API-driven, scheduled, event-triggered, connector-triggered, or some combination?
- Inputs and outputs: What data starts the run, and should the result be returned, logged, emailed, posted, drafted, stored, or sent somewhere else?
- Interactive surfaces: Does the user want to chat with the agent, expose a chat/API surface, stream responses, or expose the agent as a built-in MCP tool? Enable built-in endpoints only for those interactive scenarios.
- Tools and services: Does it need web/code execution, Microsoft Learn, Office 365, Teams, Azure Resource Manager, storage, queues, databases, or custom APIs?
- Teams targets: If the agent needs a Teams team, channel, or chat target, ask the user to paste a Teams link and parse IDs from it on their behalf. Do not ask them to manually find raw team IDs, channel IDs, or chat IDs. Load connector-teams.md before wiring Teams posting or diagnosing a missing Teams message.
- Safety boundaries: For actions like email, Teams posts, ticket creation, or resource changes, should the agent draft, ask for confirmation, or act automatically?
- Model selection: Which Azure subscription and region should be checked for GPT model access
and quota? If the user has not specified them, use the current Azure CLI subscription and the
planned
AZURE_LOCATION. - Deployment preference: Default to building and deploying to Azure with
azd up, but offer to run locally first if the user wants a local iteration loop.
Do not ask the user to estimate runtime duration unless the workflow is obviously unusual or may
run longer than the standard background-agent defaults. Set practical timeouts yourself: keep
simple chat/API agents at the runtime default, set timer, connector-triggered, queue, and other
background agents to 30 minutes, and align host.json functionTimeout to the longest agent
timeout. For synchronous HTTP work that may take longer than about 230 seconds, choose a
background/deferred pattern instead of relying on a longer HTTP response.
Do not add builtin_endpoints or a main.agent.md debug/chat agent just to test a scheduled,
timer, connector-triggered, queue, or other background workflow. If the user asks for a chat bot,
debug chat UI, chat API, streaming API, or says they want to talk to the agent, enable the
appropriate built-in endpoints for that agent or add a separate interactive agent. Otherwise,
verify background agents with the admin invoke endpoint and Application Insights.
After the discovery, summarize the plan before editing. Include the agent files, trigger or built-in endpoints, model choice, tools/MCP/connectors, infrastructure changes, and how it will be tested. If the user has already provided enough detail, make reasonable choices and proceed.
Consider Dynamic Workflows
For parallel analysis, several dependent tool calls, bounded dataset processing, durable waits, or work that must survive worker restarts, load dynamic-workflows.md before choosing the execution model. Explain briefly how Dynamic Workflows work: an agent builds a plan at runtime and Durable Functions executes its activities with persisted state and observable progress. Ask whether to use Dynamic Workflows before enabling them; do not add them to simple one-turn work.
After adoption, ask a separate question about Durable Task Scheduler (DTS). Recommend DTS for lower orchestration latency and its execution-history/activity dashboard, explaining additional Azure resources and cost without promising a speed multiplier. Azure Storage remains supported when DTS is declined. An explicit choice already made by the user need not be asked again. These choices do not approve provisioning, side-effect tests, or deployment.
Enable only the selected agents, author bounded @workflow_tool handlers, and keep backend
configuration in host.json and matching app settings, not agent frontmatter. Dynamic Workflows
do not require ACA Dynamic Sessions; retain sessions only for approved web/code workloads.
Preserve the user's approved service and tool choices.
Include the terminal result destination, idempotency strategy, backend and service-related Bicep
changes, and completion checks in the plan. A started Workflow ID is not business completion.
Scaffold a New App
Use manifest discovery + MCP primary retrieval when Azure MCP tools are available:
- Fetch the Azure Functions template manifest from
https://cdn.functions.azure.com/public/templates-manifest/manifest.jsonand findai-hosted-skills-python. Use its catalog metadata (priority,categories,tags,whatsIncluded) to explain why this is the correct Azure Functions Hosted Skills scaffold. KeeprepositoryUrl,folderPath, andgitReffor fallback. - Call Azure MCP
functions_template_getwithlanguage: pythonandtemplate: ai-hosted-skills-python. This is the primary source for the complete project files. - Write the returned
filesarray into the target project. If the output is truncated or saved to a temporary file, read the complete JSON response before deciding retrieval failed. - If MCP returns an actual tool error, cannot retrieve the template, or returns an empty/zero-file
result after reading the complete response, fall back to the manifest
repositoryUrl,folderPath, andgitRefusing direct GitHub download first andgit clone --depth 1only if downloads fail. An older MCP catalog can list only the former IDai-serverless-agents-python. In that case, use the current manifest's GitHub coordinates, not the former template ID. Keep the manifest'sgitRefso the retrieved files match the selected release. Tell the user that MCP retrieval failed and GitHub fallback was used.
When Azure MCP tools are not available, skip directly to the manifest/GitHub fallback above. Do not invent a project structure from memory.
Do not use bundled template files as a scaffold source. This skill intentionally does not include a full copy of the Azure Functions Hosted Skills template because the template evolves independently; always retrieve it from MCP first or from the manifest GitHub coordinates as fallback.
After scaffolding from MCP or GitHub, tailor the app to the user's agent.
Baseline structure:
<project-root>/
azure.yaml
infra/
abbreviations.json
main.bicep
main.parameters.json
app/
api.bicep
connector-gateway.bicep
trigger-config.bicep # copy from this skill's supplemental asset if using connector triggers
foundry.bicep
rbac.bicep
session-pool.bicep
session-pool-rbac.bicep
src/
function_app.py
host.json
local.settings.json
requirements.txt
.funcignore
agents.config.yaml
main.agent.md # only when the user wants chat/API/MCP endpoints
<agent-name>.agent.md
mcp.jsonDefault scaffold choices:
- Python 3.13 in Bicep.
- Foundry provider. Keep
gpt-4.1in template defaults only as a safe fallback. - Before running
azd provisionorazd up, run the model and quota checks in models.md, recommend the best deployable GPT model, and set theFOUNDRY_MODEL,FOUNDRY_MODEL_NAME,FOUNDRY_MODEL_VERSION,FOUNDRY_DEPLOYMENT_CAPACITY, and reasoning env vars when a better reasoning-capable model is selected. - No reasoning app settings unless the app is explicitly upgraded to a reasoning-capable model.
- ACA dynamic session pool when any agent needs code execution or web browsing.
- Optional Office 365 Outlook connection MCP server when
TO_EMAILis set. - Built-in endpoints only when the scenario is interactive. Do not add debug chat UI, chat API,
streaming API, built-in MCP, or a general
main.agent.mdto a scheduled-only/background-only app unless the user asked for that surface. - Explicit timeout settings: use
functionTimeout: "00:30:00"inhost.jsonfor background-capable apps, keep simple chat/API agents attimeout: 900, and set timer, connector-triggered, queue, or other long-running background agents totimeout: 1800unless the task clearly needs more. - Connector-triggered apps use the preview extension bundle and a second-step trigger config
deployment after the
connector_extensionsystem key exists. local.settings.jsonincludes local storage and Foundry/MCP placeholders.
After copying, remove or adjust sample-specific agents and instructions. Keep infrastructure modules only when the app needs them.
Local Development First Rule
Default to deploying new apps to Azure with azd up; these agents are designed for managed
identity, Foundry, dynamic sessions, Connector Namespaces, Application Insights, and Functions
hosting. Offer to run locally first when the user wants to iterate before deploying, and explain
the local tools required.
Local prerequisites:
- Azure Developer CLI (
azd) - Azure Functions Core Tools v4
- Python 3.13+
- Azurite, when using
AzureWebJobsStorage=UseDevelopmentStorage=true - Azure CLI login for local managed-identity-equivalent access
When an app uses Foundry, dynamic sessions, or connector MCP servers, run azd provision before
local development. Local func start still calls real Azure resources for model, session pool,
and connector operations.
Local loop:
azd initazd provision- Copy outputs from
azd env get-valuesintosrc/local.settings.json. - Start Azurite with
azurite --skipApiVersionCheck. - From
src, create a venv, install requirements, and runfunc start.
The scaffolded Bicep grants the deployer/local user access to Foundry and the session pool, and connection access policies when optional connectors are enabled.
Build or Modify Agents
Each .agent.md file defines one agent. Use YAML frontmatter for runtime configuration and
markdown for behavior. The file stem becomes the function name and built-in endpoint route
segment.
Choose endpoints from the scenario, not from testing convenience. Scheduled-only, timer,
connector-triggered, queue, and other background agents should omit builtin_endpoints unless the
user asks to talk to that agent, expose it as an API, or expose it as a built-in MCP tool. Use the
admin endpoint and Application Insights to test background agents.
Current trigger example:
---
name: Daily Report
description: Sends a daily report.
trigger:
type: timer_trigger
args:
schedule: "0 0 15 * * *"
mcp: true
---Current built-in endpoint example:
---
name: Chat Agent
description: Interactive agent for testing.
builtin_endpoints:
debug_chat_ui: true
chat_api: true
mcp: true
mcp: false
---Load agent-files.md before adding less common frontmatter fields.
Model Selection Guidance
For new scaffolds, keep gpt-4.1 as the safe Bicep default, but actively try to select the best
deployable GPT model before provisioning. Use az cognitiveservices model list and
az cognitiveservices usage list to check the user's subscription, target region, model version,
deployment SKU, and quota. See models.md for copyable commands.
Do not silently deploy gpt-4.1 just because it is the template default. Either run the model
and quota checks and choose/recommend a better deployable model, or state why the checks could not
be run and then use gpt-4.1 without reasoning settings.
Recommend the newest deployable GPT reasoning model with remaining quota. Ask the user to choose
when there are meaningful tradeoffs, such as newer/slower/costlier reasoning models versus smaller
mini/nano models. If no reasoning-capable model has quota, or if availability/quota discovery
cannot determine what the user can deploy, use gpt-4.1 without reasoning settings.
When selecting a reasoning-capable model, confirm reasoning support from the Azure OpenAI
reasoning models documentation, then set model and reasoning values together. Use reasoning effort
medium by default. Offer high and increased deployment capacity when the task needs deeper
reasoning or the deployed agent is underthinking. Use xhigh only when the selected model supports
it and the user wants maximum reasoning with possible latency/cost tradeoffs. Use reasoning summary
concise.
Deploy and Verify
Also load azure-functions-deploy and follow its verified deployment result
reference, azure-functions-deploy/references/deployment-result.md,
for identity and links only; keep the Hosted Skills deployment steps below.
Freeze the approved subscription, tenant and cloud
before execution. For a canvas-requested deployment, report deploymentScope
during plan before run, and report the actual Function App resourceId at final
verification. For standalone chat deployments, provide a verified Function App
in Azure Portal link separately from the app/chat endpoint and connector
authorization URLs. Never invent a canvas instance/run or substitute its current
picker selection. Failed link lookup does not undo successful deployment.
For a canvas-requested run, check its Build state before every write or cloud
operation. If hostedDeployment.cancellation is present, stop new work for that
exact run and wait for its in-flight tools and cloud operations to stop or settle.
Then call acknowledge_deployment_cancellation with its exact runId.
Keep files and existing Azure resources; do not roll back, delete, retry or claim
deployment success. If an operation is still pending or its outcome is unknown,
explain that in chat and leave cancellation pending until reconciled.
For new apps, use azd up from the project root. If the user has agreed to deploy, run the
deployment commands yourself instead of stopping after printing them. Set required azd env vars,
run azd init when needed, run model/quota checks before provisioning, confirm the active Azure
subscription, then run azd up with a generous timeout. Pause only for information you genuinely
need from the user, such as a missing recipient email, region choice, subscription confirmation,
or portal-only connector authorization. Do not route secrets through chat.
Before azd provision or azd up, run az account show --query "{name:name,id:id,tenantId:tenantId}"
and show the selected subscription to the user unless they already explicitly named the subscription
for this deployment. If it is not the intended subscription, have the user choose or run
az account set --subscription <subscription-id> before provisioning. Do not deploy to whichever
Azure CLI subscription happens to be active without making that choice visible.
Unless the user explicitly asks for continuous deployment, deploy from the local workspace with
azd up. Do not create GitHub Actions workflows, CI/CD pipeline files, repository secrets, or run
azd pipeline config for a normal app deployment request.
After deployment, verify outputs with azd env get-values, open or provide the relevant app URL,
show the user how to get the default function key only when built-in chat UI/API endpoints are
present, open Connector Namespace authorization links when connectors are present, check
connection status, and run a smoke test when practical. For timer or other non-HTTP agents,
manually trigger the function with the admin endpoint after deployment, then query Application
Insights requests, traces, and exceptions for that run. For built-in chat agents, open or provide
the /agents/<slug>/ URL and call the chat API if useful. Do not rely on az functionapp log tail
for Flex Consumption agent diagnostics.
When a manual trigger starts a timer/background agent, tell the user what to expect before waiting:
the admin endpoint often returns 202 Accepted, the agent may run for several minutes, and
Application Insights can lag. Give short progress updates while checking telemetry, especially for
runs that take 5-10 minutes. If telemetry does not appear after a reasonable wait, or the function
appears stuck past its expected duration, say so and switch to troubleshooting instead of silently
waiting or repeatedly triggering the function.
For connector actions with visible side effects, such as Teams posts or Outlook messages, verify the downstream side effect after the first run. If the user reports it is missing, do not keep triggering the agent. Inspect the recorded tool result/session and run a focused connector smoke test with the same arguments before changing model settings or rerunning the full workflow.
For Dynamic Workflows, also use testing.md to verify
the terminal orchestration state and final destination. The trigger Function can finish while
the workflow continues; neither 202 Accepted nor a successful starter proves completion.
Be hands-on after scaffolding. Do not stop at a command list when the next command is safe and the
user already approved the direction. Run azd up, open authorization URLs, run azd env
get-values, test deployed endpoints, and report the results. Stop only for user-only actions such
as signing in to authorize a connector, selecting an ambiguous option, or entering secrets.
When creating backing Azure resources beyond this skill's bundled Bicep, use Azure docs. If the
agent needs searchable docs context, ask the user to connect the Microsoft Learn MCP server at
https://learn.microsoft.com/api/mcp.
Useful endpoints:
- Chat UI, when enabled:
/agents/<agent-file-stem>/ - Chat API, when enabled:
POST /agents/<agent-file-stem>/chat - Streaming chat API, when enabled:
POST /agents/<agent-file-stem>/chatstream - MCP endpoint, when enabled:
/runtime/webhooks/mcp - Manual non-HTTP trigger:
POST /admin/functions/<agent-file-stem>
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
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.

