How YOU can build a Serverless C# .Net Core API in no time, with bindings and a Database

Chris Noring on September 13, 2019

Follow me on Twitter, happy to take your suggestions on topics or improvements /Chris This article is part of #ServerlessSeptember. You'll find ot... [Read Full]
markdown guide

Hi Chris

Thanks for the awesome article. Just wondering if it is possible to have the single inbound trigger with two outbound bindings. The first being a CosmosDb collection and the second being a queue.

The queue message however needs to have the Id of the entry in the CosmosDb.


Would it be better to have it write to the collection in using the inbound trigger and then create a second function with the CosmosDbTrigger which would be triggered when the new document is added. This would then write to a queue from processing.


You can have two output bindings.. I would say though that your second scenario is what I would do.


Hi Chris,

Thanks for the response...I appreciate it. On a seperate topic, have spend quite a fair amount of time on R&D with regards to Azure Index Service, but I am quite interested in how you would utilise Azure Storage. In particular, if I have a bunch of image thumbnails which I have created using a resizer function in do I serve these to my web application?

I currently have an onprem application that serves them from a server disk...would I just use the thumbnail URI generated from Azure when it is stored? And if so, how could I use a custom domain for them i.e.{id}


Hi Chris,

Really good article!

The first c# class example, Id should be of type string, not int.(As I was getting an Exception binding Parameter 'bookmark'. Newtonsoft.Json: Could not convert string to integer).

I'm attempting this demo in vs2019.




hi Ferdeen.. Yes I've noticed myself. The code is changed later in the article, I missed that first instance. I'll update.. Sorry you got stuck.


Really good post! I started using Azure Functions recently and this helped me understand them better :)

code of conduct - report abuse