Creating A Logic App In Microsoft Azure

Introduction

In today’s article, we will take a look at creating a logic application in Microsoft Azure. As we know Logic apps are serverless applications that allow us to create workflows without having to worry about the infrastructure in any way. Also, we can do this without any code. So, let us begin.

Creating the Azure Logic App

The application we will create will be a simple one. It will receive an Http request and then create a blob in a storage container. This is only to demonstrate how easy it is to create logic apps. In real-life scenarios, the logic apps would be more complex, but you will get an idea of the workflow and how easy it is to setup logic apps.

First, we will setup the storage account and create a blob container in which the blob will be created.

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

We now have the storage account. Let us add a blob container. Click on “+ Container” and add the container.

Creating A Logic App In Microsoft Azure

We now have the container.

Creating A Logic App In Microsoft Azure

Next, we will create the Logic App. Search for Logic Apps.

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

We are now ready to create the workflow in the logic app. Click on “Go to resource”.

Creating A Logic App In Microsoft Azure

Select “When a HTTP request is received”.

Creating A Logic App In Microsoft Azure

Click on “+ New Step” and select Azure Blob storage.

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Select “Create Block Blob (V2)”.

Creating A Logic App In Microsoft Azure

Fill in the fields from the storage account we created previously.

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

Creating A Logic App In Microsoft Azure

We are now ready to run the logic app. Select “Run Trigger” and click the option “Run with Payload”

Creating A Logic App In Microsoft Azure

Click the “Run” button.

Creating A Logic App In Microsoft Azure

Now, if we go back to our container in the storage account, we will see that the blob has been created.

Creating A Logic App In Microsoft Azure

Summary

In this article, we took a look at creating a logic app in Microsoft Azure. It was a simple example but was a demonstration of how easy it is to create workflows using the Logic App service. Also, it is serverless and we do not need to worry about the infrastructure we run it on. It will scale automatically as required. Happy coding!