Costa Farms Case Study: Node on Azure IoT & Azure Functions

Microsoft’s own Joe Raio will show us how Costa Farms used the cloud to monitor important business operations. Joe will show us the solution that was implemented including Node (Javascript) on Azure IoT and Azure Functions. He’ll also dive into how you can modify this solution into your own solutions. Costa Farms Case Study: Azure IoT & Azure Functions
Costa Farms is a family-owned group of companies headquartered in beautiful Miami, Florida that grow houseplants such as the canela tree, orchids, and Cecilia Aglaonema.

Learn how Joe Raio and his colleagues at Microsoft helped Costa implement a smart IoT solution to allow them to monitor important vital statistics of their nurseries in real time. The solution included using Arduino Devices, Azure IoT Hub, Azure Functions and more.

In this session we will walk through each piece of the puzzle. In addition, we will demonstrate how this same solution can be easily modified and applied to many different scenarios, not just farming.

Deploy Azure Web App or Azure Function from Repository Folder

I participate in a lot of hackathons. Whether its an internal up-skilling event, university hackathon, or on site with a partner. These are often some of the most fun and frustrating things I get to work on.

At just about every hackathon, we use GitHub to setup a central repo with all the parts of the project we are working on. This could for example contain a web app, azure functions, Xamarin app, console app etc. We normally will just throw everything into its own folder and work from the one repo to keep it easy for everyone.

Often, I want to deploy my web app (and only the web app) right from this repo as I am pushing changes to GitHub. Thankfully through Azure, not only is it very easy to setup continuous deployment using GitHub, but you can also specific what folder within the repo to deploy from.

To deploy an ASP.NET Core web app to Azure from a specific folder in your repository, you simply have to add a new application setting called ‘project’ and point it to the source folder of the project.

For example; I have a project consisting of a UWP slideshow application and my web app to manage the slides. The repository can be found here: https://github.com/joescars/MICMediaSlideshow

In this instance, I only want to deploy the folder ‘MicMediaManager’ to my web app. To do this I connected my Azure Web App to GitHub for continuous deployment and then added the following settings to my app settings.

That’s it! Now I can update each folder independently and my web app will only publish changes within the source folder specified.

So… what about Azure Functions?

This same method works with Azure Functions as well. I’ve setup a sample repository here: https://github.com/joescars/AzureFunctionsCustomDeployment in which I have a folder with my Functions inside their own sub-folder. I then go to the function app settings, add a project setting and it will deploy all my Functions from that folder.

Happy Coding!

Costa Farms Case Study: Azure IoT & Azure Functions & State of dotNet Miami

New year, new dotNetMiami! We’re going to start off the year with some cutting-edge technology and a introspective look into the community. First off, Microsoft’s own Joe Raio will show us how Costa Farms used the cloud to monitor important business operations. Joe will show us the solution that was implemented including Azure IoT and Azure Functions. He’ll also dive into how you can modify this solution into your own solutions. Then dotNet Miami’s Community Caretaker will give the “State of the Community” address for 2017. He’ll share where dotNet Miami’s history but more importantly the vision of dotNet Miami and how you can help the community.

And since it will be dotNet Miami’s 5th birthday we’ll have some birthday cake to celebrate! Come join us for a great night of technology, community, and cake!

Make sure to RSVP here: https://www.meetup.com/dotNetMiami/events/236727880/

Azure IoT Hub, Azure Functions and Farming!

Late last year I had the opportunity to work with Costa Farms on a small proof of concept project. The goal was simple; actively monitor pH levels in their plants water supply and take intelligent action if needed.

We were able to accomplish this using Azure IoT Hub, Stream Analytics, Event Hubs and Azure Functions.

You can find the full case study here.

In addition please find a slide deck below with additional info.