In Azure, Microsoft provides app services. The app services include web apps, logic apps, mobile apps, etc.

All these services are coming under PaaS.

As per Microsoft's definition, a logic app is a cloud service that can be used to schedule, automate, and orchestrate tasks, business processes, and workflows.

Logic apps can be used to integrate applications, data, services, and systems across various enterprises or organizations.

The business process model in software is called Workflow.

We can use the Azure logic app to automate a common business process that can be shared by multiple applications or enterprises.

For example, we can use the logic app to send email notifications to different users when an event happens in various applications, services, and systems, etc.

Similarly, we can use the logic app to transfer/copy a file uploaded to the blob storage to another location based on specific conditions.

Another example might be to create a thumbnail image when a new image is uploaded to the blob storage.

In the logic app, we can create a business process graphically using the workflow engine and visual designer and connect them through connectors.

Microsoft already developed connectors to interact with different applications.

We have a connector to connect to MS SQL, a connector for MySQL, a connector for Facebook, a connector for Twitter, etc.

The beauty of the Azure logic app is we can do this all without writing a single line of code

In short, we can say the Azure logic app helps us to automate business processes.

Let's create an Azure logic app in the Azure portal.

Create an Azure Logic App

In this article, we are going to create a logic app to read Azure database records and send mail to the users by checking the value of the email sent column value.

I have already published an article about Azure database creation and use.

You can find the article here >>Create And Use SQL Database In Microsoft Azure

I am using the same database and table for our logic app.

In our Azure database, we have a table called tbl_problemTickets.

This table has 4 columns - ID, prblm_description, user mail, and mailSent.

Let's discuss our requirements next.

Just assume we have an application to create client issues as problem tickets. The client can create different problem tickets for support.

And, we need to send an email to the client when they create a new ticket like an acknowledgment mail.

Once the email is sent, we should update the email sent column as 1 (initially it will be 0)

Let's discuss how we can accomplish this task using the Azure logic app.

To create a logic app please follow the below steps.

That's All !!

All Completed.

Save our logic app and trigger it again. We will receive the same mail as earlier.

Check the table in the database. mailSent column will be updated to 1. During the next run, these rows will not be considered.

Once tested the logic app, disable it by clicking the Disable button in the Logic app home screen. Otherwise, it will trigger every 5 minutes.

Happy Learning!