Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 1.73 KB

File metadata and controls

20 lines (13 loc) · 1.73 KB

Serverless recipes with the Azure Cosmos DB Output Binding

<- Back to the root

The following project contains samples using Azure Function's Cosmos DB Output Binding.

It contains 2 different samples:

  1. HttpTriggerToAsyncCollector: Use an HTTP POST to send a batch of documents to be saved to a container in a single operation.
  2. HttpTriggerWithSingleDocument: Use an HTTP POST to send a single document to be saved to a container.
  3. HttpTriggerToAsyncCollectorMultiMaster: Use an HTTP POST to send a batch of documents to be saved to a container in a single operation, with Multi Master support and defining a preferred write region.

How to run this sample

You can use Visual Studio Code, Visual Studio or even the Azure Functions' CLI. You only need to customize the local.settings.json file to match the Cosmos DB Connection String, Database name, and Collection/Container name on which you want the documents to be saved to.

Useful links