Cosmos DB Recipe — REFERENCE ONLY
Adds Azure Cosmos DB (NoSQL) integration to an App Service base template.
Overview
This recipe composes with a Web API or Web App base template to add Cosmos DB data access. It provides the IaC delta (Cosmos account, database, container, RBAC) and per-language source code using the Cosmos DB SDK.
Integration Type
| Aspect | Value |
|---|---|
| Database | Azure Cosmos DB for NoSQL |
| Auth | Managed identity (DefaultAzureCredential) |
| SDK | Microsoft.Azure.Cosmos (.NET), @azure/cosmos (Node.js), azure-cosmos (Python) |
| Hosting | App Service (from base template) |
| Local Auth | Disabled (disableLocalAuth: true) — RBAC-only |