Reader small image

You're reading from  Robust Cloud Integration with Azure

Product typeBook
Published inMar 2017
Reading LevelIntermediate
PublisherPackt
ISBN-139781786465573
Edition1st Edition
Languages
Tools
Right arrow
Authors (6):
Ashish Bhambhani
Ashish Bhambhani
author image
Ashish Bhambhani

Ashish Bhambhani is an Integration Sr. Premier Field Engineer working for Microsoft. He lives in the Seattle region. He has been working in the integration space for more than a decade. In his current role he helps Microsofts enterprise customers by architecting, designing, building, and maintaining their integration solutions. Recently, he has been able to roll out Azure technologies enterprise-wide for his clients and replace their legacy solutions. He is a content creator and master trainer for some of a Microsofts training that is delivered to clients worldwide. Additionally, he was part of the team that wrote the BizTalk performance whitepaper for msdn.com
Read more about Ashish Bhambhani

Abhishek Kumar
Abhishek Kumar
author image
Abhishek Kumar

Abhishek Kumar works with New Zealand Trade and Enterprise as an integration and data specialist. He is a Microsoft Azure MVP with deep expertise in software development and design. He is a co-author of Robust Cloud Integration and a seasoned contributor to Microsoft blogs, forums, and events. As a technological evangelist, he is specialized in cloud-based technologies such as Azure Functions, Microsoft Graph, Logic Apps, Web API, and Cosmos DB, along with various Software-as-a-Service (SaaS) such as Salesforce, Office 365, and ServiceNow. As a technology advocate, he promotes loosely coupled solution design along with event-based programming.
Read more about Abhishek Kumar

James Corbould
James Corbould
author image
James Corbould

James Corbould has been working in the IT sector since 2003, developing and supporting applications in New Zealand and the United Kingdom. Since 2010, James has been working in the software integration field, designing and building integration solutions using Microsoft technologies such as BizTalk, SQL Server, WCF, .NET, and now Azure, for a wide range of different customers. Recently, he has been working in the health insurance sector and in the building supplies sector.James currently works for Datacom Systems as a consultant and team lead.
Read more about James Corbould

Mahindra Morar
Mahindra Morar
author image
Mahindra Morar

Mahindra Morar has been working in the IT sector from 1997, developing Windows and website enterprise applications. In 2009, he has been focusing primarily on integrating systems as a principle integration consultant. Having come from an electronics engineering background, he is able to use this knowledge to design solutions that integrate between wetware, software and hardware.
Read more about Mahindra Morar

Martin Abbott
Martin Abbott
author image
Martin Abbott

Martin Abbott is a Microsoft Azure MVP living in Perth, Western Australia. He started his career developing subroutines for commercial computational fluid dynamics software, eventually moving on to more mainstream development and systems integration. He has been working with BizTalk Server since the early days of the product, has spent a lot of time with WCF, but more recently has moved in to providing his customers with integration solutions spanning both on-premises and cloud workloads.
Read more about Martin Abbott

View More author details
Right arrow

Chapter 5. Trigger Your First Logic App in Azure

 

Logic is the beginning of wisdom; not the end

 
 --Mr. Spock, Star Trek

Logic Apps are Platform as a Service (PaaS) offering from Microsoft that allows any technical user or developer to automate business process execution and workflow. With Logic Apps, you can connect devices, applications, and data residing on cloud or on premises.

This chapter introduces the following topics:

  • Logic Apps help us understand why and when to use them

  • We will be going over the key components and concepts of building a Logic App

  • We will also understand the Logic App templates and how they help us quickly get started building our integration applications

An introduction to Logic App


Logic Apps are PaaS, which comes under Azure App Services, that provides the framework for developers to design simple or a complex business workflows without writing any code. The introduction of this service by Microsoft fills the void in Microsoft's enterprise cloud integration roadmap. As with the other App Services, it can dynamically scale up to meet your demand or scaled back when the demand eases off.

The main benefits of using this service is the simplicity of designing complex workflows using easy-to-understand design templates and implementing business process scenarios that would be difficult to develop using code and are time consuming. Connecting to disparate systems is more easily accomplished using the rich set of enterprise connectors and APIs. If you have constructed a generic Logic App connector, you also have the ability to monetize your Logic App in the Azure Marketplace.

Note

Here is the URL:  https://github.com/logicappsio for the community...

The comparison between BizTalk server and Logic Apps


BizTalk Server has been around since 2000, and there has been a number of new product releases since then. It is a very mature platform with excellent enterprise integration capabilities. On the other hand, Logic Apps is a fairly recent edition to the Azure PaaS list.

Logic apps can be likened to a BizTalk orchestration but has a much easier learning curve, and you don't have the deployment hassle of a full BizTalk solution. Although Logic Apps and BizTalk Server are not functionally equivalent, they do have some similarities.

Most of the enterprise features available in BizTalk are now available in Logic Apps using the Logic Apps Enterprise Integration Pack. This provides the following features and capabilities:

  • XSLT-based maps

  • XML schemas

  • Trading Partners

  • Trading Partner Agreements

  • Certificates

The Enterprise Integration Pack is covered in more detail in Chapter 12, EAI / B2B Integration using Logic Apps.

Below is a comparison matrix between...

Why and when to use


Many enterprises now use a multitude of cloud-based SaaS services, and being able to integrate these services and resources can become complex. This is where the native capability of Logic Apps can help by providing connectors for most enterprise and social services and to orchestrate the business process flows graphically.

If your resources are all based in the cloud, then Logic Apps is a definite candidate to use as an integration engine.

When you have resources scattered in the cloud and on premise, then you may want to consider BizTalk as a choice for this type of hybrid integration along with Logic Apps. BizTalk 2016 include an adapter for Logic Apps. This Logic App adapter will be used to integrate Logic Apps and BizTalk sitting on premise. Using the BizTalk 2016 Logic App adapter on-premise, resources can directly talk to a multitude of SaaS platforms available on cloud. We will explain this in more details in the following chapters.

You can think of Logic Apps as...

Diagnosing Logic Apps


Logic App Diagnostics provides the capability to export the logs to either Event Hubs and to storage. Using Event Hubs, you can set up Streaming Analytics to gather any trends.

Another feature to help tracking messages through a workflow is the Client Tracking ID. This will allow you to correlate messages between actions and any nested workflows. The client can set the header property x-ms-client-tracking-id to a unique value that can be tracked. If no ID is provided by the client, the value is autopopulated.

Also, under the Logic app action blade as shown later, you have access to the input and output message links. From this, you can view the contents of the messages.

The two tools that should be part of your tool belt when performing end-to-end testing:

Building your first Logic App


As this chapter is an introduction to Logic Apps, the sample solution will consist of a very basic workflow to get you familiar with creating a Logic App. Sunny Electricals wishes to store messages whenever one of their customers tweet about a product they have purchased from a store. The tweet message inserted into Azure SQL Database table will be used for organization internal product and service analysis purposes.

The First step is to create Azure SQL server and database and a table to hold tweet messages.

Create Azure SQL server, database, and table

Open the browser and log in to Azure portal:  https://portal.azure.com .

On Azure portal dashboard, click on the SQL databases option and click on Add to create new SQL database instance.

If the SQL databases option is not present on the Azure portal dashboard, you can find it by clicking to New , then click on Databases, and click on SQL Database.

Enter name in the Database name field followed by selecting valid...

Logic Apps using Visual Studio


In the earlier section, you have built a Logic App using the Azure portal. Now we will walk through developing Logic Apps using Visual Studio 2015. Logic Apps support a rich visual designer, and you can leverage the Visual Studio capability to build Logic App workflows. You can use Azure resource PowerShell scripts that ship with Logic Apps for automated deployment.

Visual Studio 2015 configuration steps for Logic App

To start working with Logic App using Visual Studio 2015, there are certain prerequisites that need to be installed and configured properly:

  • Visual Studio 2015

  • Latest Azure SDK (2.9.1 or greater)

  • Access to Internet and valid Azure subscription

Once you have Visual Studio 2015 and Azure SDK 2.9.1 or higher, you can follow the steps later to configure your Logic App template within Visual Studio.

Run Visual Studio 2015 as administrator

On the Visual Studio designer surface, navigate to Tools | Extensions and Updates | Azure Logic Apps Tools for Visual...

Summary


In this chapter, we discussed how Logic Apps came about and their intentional uses in the world of integration. You learnt about the three main concepts of triggers, actions, and connectors when using Logic Apps. We compared development and integration features between Logic Apps and BizTalk server and discussed different integration scenarios. We looked at some tools to help test and diagnose Logic Apps and built our very first Logic App using both the Azure portal and Visual Studio 2015.

In the next chapter, we will take a deep dive into Logic App connectors and develop our very own adaptor.

lock icon
The rest of the chapter is locked
You have been reading a chapter from
Robust Cloud Integration with Azure
Published in: Mar 2017Publisher: PacktISBN-13: 9781786465573
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
undefined
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $15.99/month. Cancel anytime

Authors (6)

author image
Ashish Bhambhani

Ashish Bhambhani is an Integration Sr. Premier Field Engineer working for Microsoft. He lives in the Seattle region. He has been working in the integration space for more than a decade. In his current role he helps Microsofts enterprise customers by architecting, designing, building, and maintaining their integration solutions. Recently, he has been able to roll out Azure technologies enterprise-wide for his clients and replace their legacy solutions. He is a content creator and master trainer for some of a Microsofts training that is delivered to clients worldwide. Additionally, he was part of the team that wrote the BizTalk performance whitepaper for msdn.com
Read more about Ashish Bhambhani

author image
Abhishek Kumar

Abhishek Kumar works with New Zealand Trade and Enterprise as an integration and data specialist. He is a Microsoft Azure MVP with deep expertise in software development and design. He is a co-author of Robust Cloud Integration and a seasoned contributor to Microsoft blogs, forums, and events. As a technological evangelist, he is specialized in cloud-based technologies such as Azure Functions, Microsoft Graph, Logic Apps, Web API, and Cosmos DB, along with various Software-as-a-Service (SaaS) such as Salesforce, Office 365, and ServiceNow. As a technology advocate, he promotes loosely coupled solution design along with event-based programming.
Read more about Abhishek Kumar

author image
James Corbould

James Corbould has been working in the IT sector since 2003, developing and supporting applications in New Zealand and the United Kingdom. Since 2010, James has been working in the software integration field, designing and building integration solutions using Microsoft technologies such as BizTalk, SQL Server, WCF, .NET, and now Azure, for a wide range of different customers. Recently, he has been working in the health insurance sector and in the building supplies sector.James currently works for Datacom Systems as a consultant and team lead.
Read more about James Corbould

author image
Mahindra Morar

Mahindra Morar has been working in the IT sector from 1997, developing Windows and website enterprise applications. In 2009, he has been focusing primarily on integrating systems as a principle integration consultant. Having come from an electronics engineering background, he is able to use this knowledge to design solutions that integrate between wetware, software and hardware.
Read more about Mahindra Morar

author image
Martin Abbott

Martin Abbott is a Microsoft Azure MVP living in Perth, Western Australia. He started his career developing subroutines for commercial computational fluid dynamics software, eventually moving on to more mainstream development and systems integration. He has been working with BizTalk Server since the early days of the product, has spent a lot of time with WCF, but more recently has moved in to providing his customers with integration solutions spanning both on-premises and cloud workloads.
Read more about Martin Abbott