Last week we did a quick demo on Azure Functions in combination with the event hub. Today I wanted to explore what would happen if I wanted to use “custom” libraries. Could I install libraries on functions? Let’s try it out shall we!
Install NPM Module in
Just like we would anywhere else…
Adding an extra output
As I want to output the csv files to another container, I’ll be adding an additional output ;
Same like before…
Now let’s extend the function…
We’ve added the necessary code to convert the json 2 csv and send it to our new output.
Test driving it
So we have our little test script…
Based upon the json from the other container.
So it works! 😀