Lab: Logic App in Azure Portal

 There are four ways of creating a Logic App.

Azure Portal

You have a visual designer available here where you can visually see the workflow and all the connectors, conditions, flow paths and available actions. Easy to create design the app and understand what is going on.

You can not use source control or DevOps for this LA.

Visual Studio 2019

You can design your app in Visual Studio using the building logic app Designer. Also you can also check in the logic app to the source control. Hence you can take the advantage of the DevOps features

 

Visual Studio Code

You can manipulate the Code of Logic app rather than visual design but you can use source control features and Devops

No visual Designer supported

Azure CLI

You can create a Logic app using specified type of files called workflow definition files. Support for source control is provided

Workflow definition file is used instead of Visual designer


Create Logic App in Portal

  1. Login to the Azure Portal by following link https://portal.azure.com using your portal login credential and select your subscription. You can also associate a free 12 month  azure subscription if you don't have one.
  2. create a resource group in Portal or from Azure CLI 
  3. Go to Logic Apps Blade under Integration and select +New on Create Logic App page.
  4. Select Resource Group you created above (Step2) or Create New from Link (Resource Group will be created first in any case)
  5. Specify login app name, location (the location is important as you would like to create a logic app near your customer considering the network performance etc)
  6. Leave ISE or Integrated service Environment unchecked. This is required when you want to have an isolated and secure logic app which is running in its own dedicated environment and it comes for its own high cost. Remember from Logic apps page that logic apps are serverless apps and run in consumption mode hence they run in shared mode with other apps (from some other clients etc) running in the same VM of the Azure. This sharing and pay as you execute mode comes out as cheap comparing to ISE option where a dedicated environment is created for your Logic app in case your app requires that level of security. I will post about it later in detail)
  7. Add tags if you prefer. Tags allow you to sort your resources and check their cost and group them into the categories. More on Tags later.
  8. Review and Create app.


Click to enlarge the picture


Implement a workflow using Logic Apps

This workflow will be triggered using HTTP request.

Task 1: Create a trigger for the workflow
1. Access the [Appname] logic app that you created earlier in this lab.
2. On the Logic Apps Designer blade, select the Blank Logic App template. (There are lots of built in templates available for you to select. But to make your own from scratch, you can select Blank template)
3. In the Designer area, add a new When a HTTP request is received (Request) trigger with the following details:
○ Method: GET
Task 2: Create an action to query Azure Storage file shares
1. In the Designer area, add a new List files (Azure File Storage) action with the following details:
○ Connection Name: filesConnection
○ Storage Account: [Storagename]
○ Folder: /metadata
Task 3: Create an action to project list item properties
1. In the Designer area, add a new Select (Data Operations) action with the following details:
○ From: value (List files)
○ Map mode: Text
○ Map: Name (List files)
Task 4: Build an HTTP response action
1. In the Designer area, add a new Response (Request) action with the following details:
○ Status Code: 200
○ Body: Output (Select)
Save the workflow.


Helpful Resources:
Microsoft learn : 



Comments

Popular posts from this blog

How to prepare for AZ-204 Developing for Microsoft Azure Certification Exam

Data Annotations in ASP.NET Core