This repository acts as compendium of different recipes using Azure Cosmos DB and Azure Functions.
The content is distributed in different folders, each for a different scenario:
- Cosmos DB Input Binding: Contains samples on how to use the Cosmos DB Input Binding to run queries and read data from your Cosmos DB containers.
- Cosmos DB Output Binding: Contains samples on how to use the Cosmos DB Output Binding to save a single document or multiple documents to your Cosmos DB containers.
- Client management: Contains samples on how to best use a custom Cosmos DB SDK client within Azure Functions optimizing for best performance and avoiding common pitfalls.
- Cosmos DB Trigger: Contains a complete sample using Cosmos DB, Azure Cognitive Services, and Azure Signal R to create a flow of data analysis based on events happening in a Cosmos DB container.
- Cosmos DB Trigger Scenarios: Contains scenario samples like sharing the leases container.
- Custom ConnectionMode & Protocol: Contains a complete sample to customize the
ConnectionMode
andProtocol
used in the internalDocumentClient
instances for bindings and trigger. - Monitoring the Cosmos DB Trigger progress: Contains a sample to leverage the Remaining Work Estimator and send progress to App Insights.