Create Azure Logic App in Visual Studio 2019
    • Dark
      Light
    • PDF

    Create Azure Logic App in Visual Studio 2019

    • Dark
      Light
    • PDF

    Article Summary

    #ServerlessTips - Azure Logic Apps
    Author: Kent Weare Integration MVP

    Building Azure Logic Apps in Visual Studio is nothing new, but with the release of Visual Studio 2019 the Logic Apps team has provided updated SDK tooling to allow developers to build their logic apps in the latest version of the IDE.

    Once you have Visual Studio downloaded, you will need to also install the following tools:

    Why Visual Studio?

    Creating logic apps, in a web browser, provides a quick and friction-less experience as you can just focus on solving the integration problem. It is great for building proof-of-concepts, testing an idea, or experiment. However, if you are building out an enterprise use case, naturally you want to have your workflow definition persisted in source control. Having your logic app in Visual Studio gives you source control integration with tools like Azure DevOps.

    Before embarking on a Visual Studio – Logic Apps journey, one concept to understand is that testing your logic app requires an Azure deployment. So while the designer is hosted inside of Visual Studio, you still need to deploy your latest logic app to Azure in order to test. This does require some context switching as you are moving between Visual Studio and Azure Portal.

    1-VSStudio.png

    Hybrid Approach

    Getting your logic app into source control is obviously important. In part, due to building out continuous build and deployment processes so that you can streamline your Dev-Test-Prod deployments. Some developers have discovered a hybrid approach works best for them. Developers will build out their “Dev” version of their logic app in the Azure Portal. Once they have completed their tests, they then create a Visual Studio project where they can export their Logic App from Azure into Visual Studio where they can then add their project to source control and then hook it into their Azure DevOps pipeline.

    Visual Studio supports the ability to Open with Logic App Editor which will retrieve the logic app from Azure where it can be persisted into source control.

    2-vsexport.png

    However, another way to export your Logic App from the Azure Portal does exist. The LogicAppTemplateCreator project, which is available on GitHub, allows you to retrieve a logic app definition using Powershell.

    Using a hybrid approach provides the best of both worlds. Quick turnaround time when making edits to your logic apps and testing in the Azure portal. But, still having the ability to store logic apps in source control and then having the ability to automate your deployment processes.

    Logic Apps-3


    Was this article helpful?