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/README.md
1# Cosmos DB Recipe23Cosmos DB change feed trigger with managed identity authentication.45## Template Selection67Resource filter: `cosmos`8Discover templates via MCP or CDN manifest where `resource == "cosmos"` and `language` matches user request.910## Troubleshooting1112### "Forbidden" on Data Operations1314**Cause:** Cosmos DB uses **two separate RBAC systems** — Azure RBAC (control plane) and Cosmos SQL RBAC via `sqlRoleAssignments` (data plane). The MCP template configures both, but if the SQL role assignment is missing, data reads/writes will fail even if Azure RBAC is correctly assigned.1516**Solution:** Verify the `sqlRoleAssignments` resource exists in the Bicep/Terraform output. Check the function app has the `Cosmos DB Built-in Data Contributor` SQL role.1718### UAMI Connection Issues1920**Cause:** Missing managed identity credential settings.21**Solution:** Ensure all three settings are present in app configuration:2223- `COSMOS_CONNECTION__accountEndpoint`24- `COSMOS_CONNECTION__credential` (value: `managedidentity`)25- `COSMOS_CONNECTION__clientId`2627See [Cosmos DB trigger connections](https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-cosmosdb-v2-trigger#connections) for identity-based config — refer to the **"Connections"** section on that page for managed identity app settings.2829## Eval3031| Path | Description |32|------|-------------|33| [eval/summary.md](eval/summary.md) | Evaluation summary |34| [eval/python.md](eval/python.md) | Python evaluation results |35| [eval/typescript.md](eval/typescript.md) | TypeScript evaluation results |36