How to start with Azure Logic App and Azure AI

Azure Logic App is a great workflow design tool in Azure. It’s similar to the Office365 flow but it is hosted in Azure.

You can use Azure Logic App to design a Business workflow. For my point of view, it’s a great alternative solution to System Center Orchestrator (On-Prem).

There are so many connectors available who makes it really easy to design a Workflow (Link)

But let’s start with the basics.

Do you manage the server behind?

The answer is NO, Azure Logic App is a PaaS service, where you manage only the data layer.

How can I manage an Azure Logic App solution?

There are different ways to manage. The most common and the easiest way is to design the workflow in the Azure Portal, but this isn’t really the best and most efficient way!

The better one is to manage the Logic App solutions over Visual Studio or VSCode, because you can design a continues delivery and also store the code in a central code repository. I will show only the Visual Studio possibilities in that blog post.

What are the requirements for Visual Studio.

To design a Logic App in Visual Studio you have to install (min.) standard, or you can also use the community version. You also have to install the Azure tools during installation

and the Logic App extension after the installation is finished.

When everything is done we can start with the first project.

I will start with a very simple project, there are no limitations, it only depends on your imitation.

Solution requirements:

  • Analyze E-Mail attachments and save the file into the right SharePoint location
  • Use Log Analytics for reporting and monitoring

The following components are required in LogicApp

  • Office365 Connection
  • Azure Logic App Variables
  • Some Conditions
  • Azure Vision API Connector
  • Azure Log Analytics Connector
  • Azure Onedrive for Business Connector

You also need the following Azure Services:

  • Azure Cognitive Service
  • Azure LogicApp
  • Azure Log Analytics

My ResourceGroup looks like this:

image

So let’s start, create a LogicApp solution in Visual Studio and then start with the following steps:

First Step: The entry point is an Office365 connector to my mailbox

image

I check the inbox for new mails with the subject “TestAzureAI” and attachments included every 5 minutes.

Second Step: I analyze each attachment with Azure Vision API

 image

Third Step: Check the Vision API result and categorize the attachment.

image

Last Step: Log the result into Azure Log Analytics

image image

image

It was an awesome experience and not really difficult to implement.

Give me a short ping to get more information or I can maybe help to implement the solution in your environment.

Cheers and always keep in mind “the future is always here”