Loading source
Pulling the file list, source metadata, and syntax-aware rendering for this listing.
Source from repo
Prepare Azure environments for new workloads—subscriptions, networking, identity, and landing zones
Files
Skill
Size
Entrypoint
Format
Open file
Syntax-highlighted preview of this file as included in the skill package.
references/services/functions/templates/recipes/cosmosdb/eval/typescript.md
1# Cosmos DB Recipe - TypeScript Eval23## MCP Template Validation45| Criteria | Expected | Status |6|----------|----------|--------|7| Template discovery | `functions_template_get(language: "typescript")` returns list | ✅ PASS |8| Filter by resource | `resource == "cosmos"` finds matches | ✅ PASS |9| Template scaffolded | `cosmos-trigger-typescript-azd` | ✅ PASS |10| Has trigger code | `app.cosmosDB` trigger binding in output | ✅ PASS |11| Has IaC | `projectFiles[]` includes Bicep | ✅ PASS |12| Has RBAC | Cosmos DB Data Contributor role | ✅ PASS |1314## Agent Behavior Validation1516```text171. Agent calls: functions_template_get(language: "typescript")182. Agent scans templateList.triggers[] descriptions and resource field193. Agent selects: template where resource == "cosmos" → cosmos-trigger-typescript-azd204. Agent calls: functions_template_get(language: "typescript", template: "cosmos-trigger-typescript-azd")215. Agent writes: functionFiles[] + projectFiles[]22```2324## Code Indicators Verified2526- `app.cosmosDB` trigger binding (V4 model)27- TypeScript compilation successful (`npm install` + `tsc`)28- Cosmos DB with managed identity and proper RBAC assignments29- Infrastructure uses `Microsoft.DocumentDB`3031## Test Date32332026-04-223435## Verdict3637**PASS** - MCP template provides complete TypeScript Cosmos DB trigger with IaC, RBAC, and UAMI binding.38