Microsoft Standard Logic Apps

Introduction

Azure Logic Apps Standard is a cloud-based platform for automating logic app workflows that connect our apps, data, services, and systems. You can easily build highly scalable integration solutions for your corporate and business-to-business (B2B) situations with this platform. You may use either the Logic App (Consumption) resource type or the Logic Apps Standard resource type to construct a logic app.

The Consumption resource type is for multi-tenant Azure Logic Apps or integration services, whereas the Standard resource type is for single-tenant Azure Logic Apps.

Stateful and Stateless workflows in Standard LogicApp

Stateful Workflow

When you need to keep, evaluate, or refer to data from prior events, create a stateful process. These workflows save and transfer all of the inputs and outputs for each action, as well as their states, to external storage, allowing for post-run analysis of the details and history.

If there are disruptions, stateful workflows give excellent resiliency. You can recreate interrupted runs from the preserved state and repeat the workflows to completion after services and systems have been restored. Stateful workflows can run for significantly longer periods of time than stateless processes.

Stateless Workflow

When you don’t need to maintain, evaluate, or refer to data from prior events in external storage for subsequent review, create a stateless workflow. These workflows save all of the inputs and outputs for each operation, as well as their states, in memory rather than on disc. Because the run information and history aren’t kept in external storage, stateless workflows feature shorter runs (usually less than 5 minutes), faster performance (quicker reaction times), higher throughput, and lower running costs. Interrupted runs are not automatically restored if there are outages, thus the caller must manually resubmit interrupted processes.

Create First Standard Logic-App

Login to the Azure portal ➜ Search Resource Groups ➜ then select Resource Group, under which you want to create Standard LogicApp.

Microsoft Standard Logic Apps

After opening the Resource Group, you will see an icon ‘+ Create’ which will help to create Standard LogicApp. Click on + Create icon.

Microsoft Standard Logic Apps

It’ll open a new page where either you can directly search LogicApp in search box or you can click on Integration from list of categories. After that LogicApp icon will appear, click on Create.

Microsoft Standard Logic Apps

It’ll open a new window where we need to fill all the required details. Let’s fill in the basic details first, like,

  1. Subscription
  2. Resource Group
  3. Type - We are going to create Standard LogicApp so we have to choose ‘Standard’
  4. Publish - Here we have 2 options, either we can publish on Docker container or can use the workflow. In this article, we’ll use workflow.
  5. Region

Then click on Next: Hosting to configure the hosting and other configurations.

Microsoft Standard Logic Apps

Under Hosting configuration, we need to provide the storage & Plan details.

For Storage,

  • Storage Type -> Storage type could be Azure storage or SQL & Azure storage. In this article we’ll use Azure storage
  • Storage Account à You can use the existing storage account or create new storage account. In this article we’ll create new storage account.

For Plan

The plan you choose dictates how your app scales, what features are enabled, and how it is priced.

  • Windows Plan
  • Sku & Size

Click on Next: Monitoring to configure the Monitoring and other configurations.

Microsoft Standard Logic Apps

Microsoft Standard Logic Apps

In Monitoring section, we can enable application insight to monitor the application. It will detect performance anomalies and includes powerful analytics tools to help you diagnose issues and to understand what users actually do with your app.

For this article, we are not going to use it. So we’ll keep the default value ‘No’.

Click on Next: Tags to setup the Tags and other configurations.

Microsoft Standard Logic Apps

Tags are name/value pairs that enable you to categorize resources and view consolidated billing by applying the same tag to multiple resources and resource groups.

Based on your need to requirement, you can add the Tags, otherwise leave it as it is.

Click on Next: Review + Create to check the final configurations and validation.

Microsoft Standard Logic Apps

Final step to validate and review the information that you filled in previous steps. If in case have any validation issue or missing/wrong configuration, you can find here.

In case of success validation, you’ll see a button Create.

Here, you’ll see another option to download the template for automation that would help you to create this entire manual process in automated way with single click.

Microsoft Standard Logic Apps

Once you click on Create, deployment will start and you’ll see a new window like below screenshot. It’ll show, Deployment is in progress. And it’ll not take much time to complete the deployment.

Microsoft Standard Logic Apps

After deployment is finished, you’ll see the message ‘Your deployment is complete’. Click on Go to resource.

Microsoft Standard Logic Apps

After that, you’ll see the new window with your Standard LogicApp details, URL and all other configurations.

Microsoft Standard Logic Apps

Create First Stateful workflow

We have successfully created the Standard Logic App, now let’s move ahead create the workflow. There are 2 types of workflows,

  • Stateful workflow
  • Stateless workflow

Let’s see, how to create Stateful workflow and test it using postman tool.

  1. Click on workflows -> it’ll open new window where you’ll see an option ‘+ Add’
  2. Click on ‘+ Add’ -> new panel will open where we have to provide the Workflow Name
  3. Set State type ‘Stateful’ and click on Create.

Microsoft Standard Logic Apps

After Stateful workflow is successfully created, you could see an option to Edit in designer. Click on ‘Edit in designer’ which will open the designer view of workflow.

Microsoft Standard Logic Apps

In designer view of workflow, let’s add some connectors, for this article, we’ll use a very simple request-response flow, where request will come and we’ll send the custom response.

We have added the simple flow under this workflow like below screenshot.

Save the workflow, which will generate the URL which can be used for testing.

Microsoft Standard Logic Apps

We have stateful workflow URL generated, now it’s time to test the flow.

Open postman application and pass the workflow URL. Then in message request body pass any random content like below. And hit the send button.

If your workflow successes then you could see the response code 200 and the custom message that you added for a response. In case of failure also you could see the response that will help to troubleshoot the issue.

Now, let’s check the execution detail in Azure portal.

Microsoft Standard Logic Apps

We are again back to Azure port where we’ll just refresh the workflow. Now here, we’ll see the run history that can help to check the input and output details.

Click on the run-id (identifier) to overview each steps of workflow.

Microsoft Standard Logic Apps

Once we open the run-id, it’ll show each steps execution result along with execution timing. Suppose if any stage we have failure then we can track it here as well.

Microsoft Standard Logic Apps

That’s it about the Standard LogicApp stateful workflow. Let’s understand now the stateless workflow.

Create First Stateless workflow

Now, it’s time to see, how to create Stateless workflow and test it using postman tool.

  1. Click on workflows - it’ll open new window where you’ll see an option ‘+ Add’
  2. Click on ‘+ Add’ - new panel will open where we have to provide the Workflow Name
  3. Set State type ‘Stateless’ and click on Create.

Microsoft Standard Logic Apps

Here again, like the stateful workflow, we’ll have option to open the designer view and create the workflow.

For this article, we have used the same scenario, receive the request and send the custom response back to requester.

Microsoft Standard Logic Apps

Once we save the stateless workflow, it’ll generate the endpoint URL, which we’ll use for testing purpose.

Now, let’s open the postman tool and pass the URL, and request input like below screenshot.

Once we have everything then hit the send button and get the response back.

Let’s review the request and response in Azure portal.

Microsoft Standard Logic Apps

We are back to Azure portal and let’s refresh the workflow. Now you could see the run history details.

If you are unable to see the run history then please check the debug mode. To see the run history in stateless workflow, you have to enable the debug mode, then only you can view it under run history.

Microsoft Standard Logic Apps

Caution: Keep the debug mode disabled if it’s not required.

Conclusion

That concludes this post, which provided an overview of Microsoft Standard Logic Apps and workflows.


Similar Articles