web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :

Working with Logic Apps from Visual Studio

Kunaltripathy Profile Picture Kunaltripathy 395

Azure portal makes it really easy to get started with creating and managing Logic Apps, with all the built-in connectors and easy interactive orchestration UI you can be up and running with your integration in a couple of hours.

But what if you want to manage your code in TFS or Git or any other source control system. Working and creating Logic App in Azure is great but as Dev we enjoy working within Visual Studio.

Good news is that you can create manage and deploy logic App from within Visual Studio and it’s better if you have become familiar with creating Logic Apps from Code View Interface.

In order to get Started with Logic App, you need to install Azure Logic apps tools for VS. it is available for download through VS Extension and updates.

Once Installed you are ready to write your first Logic App from VS, start by creating new Project of type Arm.

Once you select your Project you will be asked to select the type of Azure component you are creating. For our purpose, we will select Azure Logic App.

The created project will have two files.

  • LogicApp.json
  • LogicApp.parameters.json

You can rename the files to your needs. Best practice is to rename the parameter file prefix to be same as logic app file. A parameter file is used to have deployment time values for deploying to a different environment, more on that later.

In order to start orchestrating Logic app, right click on Logic App file and select “Open with Logic App Designer’, this will prompt you for Azure subscription and resource group details

this will bring up the familiar-looking interface for creating Logic Apps.

Now you can follow the same steps as you do on Azure Portal for creating the Logic App, You may reference this blog post if you are new to Logic Apps.

For this, I am using the logic app example from Integration with Microsoft Dynamics 365 using Azure Logic App Service, The logic app have a Dynamics 365 connector and it is also using an Http connector to speak with VSTS.

Once you have created your logic app, you can test, deploy and manage from Visual Studio.

In order to deploy your logic app, right click on the solution and click Deploy. This will bring the deployment window and ask for which logic app to deploy and which parameters file to use. Select appropriate and hit deploy.

you may supply and edit the Parameters from the deployment window:

  If you have deployed a new Logic app, Authorization needs to be provided for API Connection, this could only be done through Azure Portal.

Once the logic app is deployed, you are free to edit them from Azure or Visual Studio, when you are ready to edit them again in Visual Studio use the refresh to get the latest version and then download it to add to your Visual Studio project.

You can also manage other/ previously created logic apps from visual studio through Cloud explorer. using Cloud Explorer you can make edits, check run history as well as trigger them.

Hope this helps you get started with working on Logic Apps from within Visual Studio, this is a 2 part blog and in the next blog post, I will talk about how to work with parameters file to better manage DevOps and ALM process for Logic Apps while integrating it with Dynamics 365.

The post Working with Logic Apps from Visual Studio appeared first on Kunal Tripathy.


This was originally posted here.

Comments

*This post is locked for comments