Cosmos DB in Azure Functions V1 and V2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
... | |
using Microsoft.Azure.Documents; | |
... | |
namespace CosmosDb.NetFramework.FunctionApp | |
{ | |
public static class UpsertProductCosmosDbTrigger | |
{ | |
[FunctionName("ProductUpsertCosmosDbTrigger")] | |
public static void Run( | |
[CosmosDBTrigger( | |
// Those names come from the application settings. | |
// Those names can come with both preceding % and trailing %. | |
databaseName: "CosmosDbDdatabaseName", | |
collectionName: "CosmosDbCollectionName", | |
LeaseDatabaseName = "CosmosDbDdatabaseName", | |
LeaseCollectionName = "CosmosDbLeaseCollectionName")] IReadOnlyList<Document> input, | |
TraceWriter log) | |
... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment