This is the code used for the Raspberry Pi 3 and the C# console app simulator described in my blog post here.
http://soapfault.com/blog/2016/11/power-of-powerbi-with-azure-stream-analytics-iothub
The code for the Azure Function and Stream Analytics job are found in the blog post. The Arduino/C code for the Feather M0 device will be pushed here later.