azure function - triggered when new event in eventhub, writing it to cosmos db
Hello All,
azure function - triggered when new event in eventhub, writing it to #Cosmos db using EventHubTrigger in c#?
this my code [FunctionName("ProcessEvents")] public static void Run( [EventHubTrigger("yourEventHubName", Connection = "EventHubConnection")] string[] events, [CosmosDB( databaseName: "yourDatabaseName", collectionName: "yourCollectionName", ConnectionStringSetting = "CosmosDBConnection" )] out dynamic outputDocument, ILogger log) { log.LogInformation($"C# Event Hub trigger function processed a message: {events.Length} messages"); var documents = new List