Jul 21, 2017 · 1 min read
Azure functions Cosmos DB Output Binding
Bit of side project where I wanted to push some time series data to Cosmos DB. Data originated in one of the Azure Functions and it instead of writing the connection bit etc I wanted just to push data to "output". Creating function output is easy, function's Integrate tab, New Output link located at the top right of the page and select Azure Document DB (see bellow )

Than the code of VS, and bit which was not clear and motivated me to write post is how to set bindings in the code . It's actually simple if you know how the syntax looks like. Key bit is that still using DocumentDB syntax which perfectly make sense. Screen bellow shows full syntax.

