Azure Functions Templates
Dynamic template selection for Azure Functions projects.
Prerequisites: Check MCP Availability
Before proceeding, verify Azure MCP Server and Functions tools are available:
functions_template_get(language: "python")| Result | Action |
|---|---|
| ✅ Returns template list | Use Primary Path: MCP Tools below |
| ❌ Tool not found / Error | Jump to Fallback (MCP Unavailable) |
Primary Path: MCP Tools
Use Azure MCP tools — they provide complete, up-to-date AZD templates with IaC, RBAC, and managed identity.
Step 1: Discover Templates
functions_template_get(language: "<python|csharp|typescript|javascript|java|powershell>")Returns template list with metadata:
templateName— pass to generate calldescription— use for selection (describes trigger, bindings, security features)resource— filter by trigger type (http, cosmos, timer, eventhub, blob, sql, mcp, ai)infrastructure— preferbicep(default), useterraformif user requests
Step 2: Select Template
Use the intent→resource mapping in selection.md to map user intent to a resource filter value.
Default behavior: When user intent cannot be determined or no trigger type is known, use
httpas the default.
Single-template optimization: If description mentions BOTH trigger AND binding user needs, fetch that one template only.
IaC selection:
- Default:
infrastructure: "bicep" - If user says "terraform":
infrastructure: "terraform"
Step 3: Generate Project
functions_template_get(
language: "<language>",