Creating Azure Functions in Visual Studio

So far, we have only created functions in the Azure portal, but this isn't ideal. First, the portal doesn't provide proper tools for writing complex code. Second, your code isn't included in source control. Third, your code isn't covered in unit tests and automated builds. Finally, you can never deploy your functions to other environments through continuous deployment. So, while it's nice for simple use cases, try to avoid creating functions in the portal and use Visual Studio instead.

Now, we are going to create our functions using Visual Studio 2017. To follow along with these examples, you need to have the Visual Studio Azure development workload installed, which you can select when you install ...

Get Migrating Applications to the Cloud with Azure now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.