These Azure Logic Apps examples assist with your admin needs (2022)

Learning how to manage expectations is a skill for handling people -- and when it relates to IT processes.

One of the useful features to automate processes with Azure Logic Apps is the trigger functionality in many of the connectors. A trigger defines an event to automatically kick off a workflow. In the previous article, we looked at tutorials that, while still quite useful, required you to trigger the workflow via a script. The following Azure Logic Apps examples show how to automate processes by responding to events we expect to happen. This tutorial explains how to create a workflow to provision access in Microsoft Teams and SharePoint Online, then how to build another workflow that monitors a group for Azure Active Directory membership changes and sends a notification when a user is added or removed.

How to provision access with Azure Logic Apps

Typically, a team and department is tracked via groups in Azure Active Directory, possibly synced from an on-premises Active Directory. Groups can also be used for a multitude of IT-managed scenarios, such as giving access to file shares, shared mailboxes or resource groups in Azure.

Azure Logic Apps can extend this further to provision access to a team in Microsoft Teams or to a folder in SharePoint.

How to use triggers in Azure Logic Apps

The following Azure Logic Apps examples use a trigger when a user is added to or removed from a group in Azure Active Directory. To start, create a blank Azure Logic App and, for the trigger, search for Office 365 Groups. Select the trigger called When a group member is added or removed.

These Azure Logic Apps examples assist with your admin needs (1)

Next, select the group. Once you have authenticated to Office 365 in the Azure Logic App, you don't need to know the group ID. Just click in the Group ID dropdown to load the groups. If you have many groups in your Office 365 tenant to sort through, you can use a faster method by clicking on the group in the admin center to show the Group ID in the URL.

After you select the group, set the polling period. Each time the Azure Logic App polls the group, you will get charged for a run if you are on a Consumption plan. If there are no changes, then the charge is only for a single action, which is minimal.

(Video) Azure Logic App Hosting Options - Which is right?

These Azure Logic Apps examples assist with your admin needs (2)

How to determine group changes

A trigger happens when members are added or removed. To adjust this setting so it works only when members are added, add a condition statement. Condition statements are part of the Control actions.

These Azure Logic Apps examples assist with your admin needs (3)

To understand how to filter only for member additions, find what the output of When a group member is added or removed looks like. You can check the documentation for that trigger, but it's not clear what the data will look like. Instead, you can execute a test run of the workflow and collect data from the run history. To start, remove a user from that group and then trigger the workflow with the Run Trigger > Run selection.

Go back to the Overview page of the Azure Logic App and open the Runs history.

These Azure Logic Apps examples assist with your admin needs (4)

Click on the top item in the list, which should take you to a new page with indicators for each action's run status. Click on the When a group member is added or removed trigger. Scroll down for the Outputs section and look for an area labeled Body.

These Azure Logic Apps examples assist with your admin needs (5)

Perform the same process again after adding a user to the group to see the difference in the Body section.

These Azure Logic Apps examples assist with your admin needs (6)

This investigative work shows us that if the @removed property exists and is not empty, then the user was removed.

Go back to the Azure Logic App and convert it to a conditional statement.

(Video) Power Automate (Flow) vs Azure Logic Apps | 6 Key Differences

Open the Condition action in the workflow and click on Choose a value, then click on the Expression tab in the pop-up.

These Azure Logic Apps examples assist with your admin needs (7)

In the Expression box, paste the following:

empty(triggerBody()?['@removed'])

This refers to the @removed property found earlier in the trigger body. Use the empty() expression to return true if it is empty or false if it isn't. Next, select Choose a value on the Condition action at the right.

Navigate to the Expression tab again and type true and hit OK. The full condition statement should look like the screenshot in Figure 8.

These Azure Logic Apps examples assist with your admin needs (8)

Now, any time the trigger runs and finds a user was added to the group, the expression will return true and any actions placed in the True section will run.

How to add the user to a team in Microsoft Teams

In the True section of the condition statement, add in the Microsoft Teams Add a member to a team action.

(Video) Azure Logic Apps - Walkthrough

These Azure Logic Apps examples assist with your admin needs (9)

For the team, click in the box and find the team to add the user. In the A user AAD ID for the user to add to the team area, reference the user ID from the trigger.

Now when a user is added to the group, they will be added to that team in Microsoft Teams.

Provisioning access to a folder in SharePoint Online

To add the user to a folder in SharePoint, you need two things: the user's email address and the ID of the folder in SharePoint. Use the SharePoint connector to build the workflow.

To get the user's email address, use the Get user profile (V2) action and look up the user based on the user ID from the trigger. Add mail to the Select fields parameter.

These Azure Logic Apps examples assist with your admin needs (10)

Next, use the SharePoint>Get folder metadata option to look up the ID of the folder; you need two items: the site address for the SharePoint site in the format https://domain.sharepoint.com/sites/sitename and the path to the folder in the format /Folder/Folder. The example shown in Figure 11 uses the Onboarding Docs folder in the Shared Documents library.

These Azure Logic Apps examples assist with your admin needs (11)

If you don't know the path to the folder, click on the folder icon and browse for the folder to find it.

Next, use the SharePoint>Grant access to an item or a folder action with the same site address. With that information in the action, you can then look up the List or Library Name by clicking on the dropdown.

(Video) Azure Logic Apps Vs Power Automate - What to use When - Cloud Integration

Next, we need the ID of the folder. Select ItemId from the Get folder metadata action.

These Azure Logic Apps examples assist with your admin needs (12)

Then for the Recipients, select Mail from Get user profile (V2).

Click Save to complete the workflow building process.

How to test the SharePoint Online automated workflow

To test the workflow, add a user to the group and either wait for the time set in the trigger or start the workflow with the Run Trigger button. You can either wait on the same page for a few seconds or check the run history to see the status of the workflow. If successful, the run should have green checkmarks by each step in the Azure Logic App.

These Azure Logic Apps examples assist with your admin needs (13)

How to set up automated notifications with Azure Logic Apps

In addition to provisioning access with a group change, you can also send out a notification in email whenever a group change occurs. This is useful to track membership changes to important groups, such as a group used to assign the Global Administrator role.

Using the same trigger and condition created earlier, add one action to each side of the condition and move the Get user profile (V2) above the condition. For this tutorial, use Office 365 Outlook>Send an Email (V2).

In the True and False blocks, add the notification action and fill in the parameters. This example sends an email to [emailprotected] with information about whether the user was added or removed.

(Video) Azure Logic Apps Capabilities and Practices to consider

These Azure Logic Apps examples assist with your admin needs (14)

The completed Azure Logic Apps workflow now automatically audits group changes.

Azure Logic Apps open the way to further automation possibilities

These Azure Logic Apps examples should get you started with how to fill out the steps and triggers to build an automated workflow tailored to your organization. For further inspiration, it's helpful to see the full list of connectors from Microsoft's site to look through the triggers and actions for each platform.

FAQs

What is Azure logic apps examples? ›

Azure Logic Apps helps you orchestrate and integrate different services by providing hundreds of ready-to-use connectors, ranging from SQL Server or SAP to Azure Cognitive Services. The Logic Apps service is "serverless", so you don't have to worry about scale or instances.

What are the 3 types of connectors available in Azure logic app? ›

Built-in connectors for specific services and systems
  • Azure API Management. (Consumption workflow only) Call your own triggers and actions in APIs that you define, manage, and publish using Azure API Management. ...
  • Azure Blob. (Standard workflow only) ...
  • Azure Cosmos DB. (Standard workflow only)
28 Oct 2022

When would you use Azure logic apps to solve a problem? ›

Robust Applications: Azure Logic Apps play an important role in providing support integration with enterprise-level applications such as Office 365, Dropbox, etc. Debugging: Azure Logic Apps allow easy debugging through triggers, workflow, and processes running history.

Which of the following needs to be used to secure the logic app? ›

Secure inputs and outputs in the designer

In the Azure portal, open your logic app in the workflow designer. On the trigger or action where you want to secure sensitive data, select the ellipses (...) button, and then select Settings. Turn on either Secure Inputs, Secure Outputs, or both.

What is the primary use for Azure logic apps? ›

Azure Logic Apps is a cloud platform where you can create and run automated workflows with little to no code. By using the visual designer and selecting from prebuilt operations, you can quickly build a workflow that integrates and manages your apps, data, services, and systems.

What are the types Azure logic apps triggers? ›

Triggers are generally of two types: Polling Trigger – It checks a service's endpoint at regular intervals. Push Trigger – It creates a subscription to an endpoint and provides a call-back URL so the endpoint can notify the trigger when the specified event happens, or data is available.

What are the 3 connectors? ›

Electrical connectors are classified into three types based on their termination ends: board-to-board connectors, cable/wire-to-cable/wire connectors, and cable/wire-to-board connectors.

Which feature of Azure would you use to help logically? ›

Tagging is a feature that has been introduced into the Azure Resource Manager model (ARM). They can be used to Logically group and track resources. The old (Classic) version of Azure was Azure Service Manager. You apply tags to your Azure resources giving metadata to logically organize them into a taxonomy.

What are the different types of applications provided by app Services in Azure? ›

Multiple languages and frameworks - App Service has first-class support for ASP.NET, ASP.NET Core, Java, Ruby, Node. js, PHP, or Python. You can also run PowerShell and other scripts or executables as background services.

How do you handle error in Azure logic apps? ›

To catch exceptions in a Failed scope and run actions that handle those errors, you can use the "run after" setting that Failed scope. That way, if any actions in the scope fail, and you use the "run after" setting for that scope, you can create a single action to catch failures.

When should I use logic apps vs Azure functions? ›

Azure Functions is a serverless compute service, whereas Azure Logic Apps is a serverless workflow integration platform. Both can create complex orchestrations. An orchestration is a collection of functions, or actions in Azure Logic Apps, that you can run to complete a complex task.

When should I use logic and Azure functions? ›

Azure Functions uses code to perform an action whereas Azure Logic Apps use workflow triggered by an event. This is because Azure Functions is employed through the use of codes whereas Azure Logic Apps are built using a visual designer with a simpler definition language.

What are three steps you should take to ensure your security when using apps? ›

How to Secure Mobile Apps – A Mobile App Security Checklist
  • Enforce Strong Authentication. ...
  • Encrypt Mobile Communications. ...
  • Patch App and Operating System Vulnerabilities. ...
  • Protect Against Device Theft. ...
  • Scan Mobile Apps for Malware. ...
  • Protect app data on your device. ...
  • Secure the Platform. ...
  • Prevent Data Leaks.
2 Jul 2020

What are the main components of logic app designer? ›

There are three major components, which form the blocks of Logic Apps and they are connectors, triggers, and actions.

Which of the following do logic apps contain? ›

A logic app can also have multiple triggers accommodated as a logic app workflow. These triggers are of two types i.e, Built-in triggers and managed API triggers.

Which is the most important application of Microsoft Azure? ›

Running virtual machines or containers in the cloud is one of the most popular uses for Microsoft Azure.

How do I use the Azure function in Logic app? ›

Add existing functions to logic app workflows
  1. In the Azure portal, open your Consumption logic app workflow in the designer.
  2. Under the step where you want to add the function, select New step.
  3. Under Choose an action, in the search box, enter azure functions . ...
  4. From the function apps list, select your function app.
3 Oct 2022

What are the 3 types of data that can be stored in Azure? ›

The Azure Storage platform includes the following data services:
  • Azure Blobs: A massively scalable object store for text and binary data. ...
  • Azure Files: Managed file shares for cloud or on-premises deployments.
  • Azure Queues: A messaging store for reliable messaging between application components.
6 days ago

Which of the following is a logical unit of Azure services? ›

Azure Subscriptions are a logical unit of Azure services that are linked to an Azure account. In order to take advantage of Azure's cloud-based services, you must have a subscription as it serves as a single billing unit for Azure resources used in that account.

Which Azure tools are designed to help with common operational and automation tasks in Azure choose 3? ›

Which Azure tools are designed to help with common operational and automation tasks in Azure? 👨‍ 💬 Azure CLI and PowerShell are designed to help with common operational and automation tasks. With the use of Cloud Shell, administrators and developers can perform their tasks directly in the cloud.

What are the two types of connector? ›

FAQs on Types of Connectors
  • Plug and Socket: There are two different formats for connectors, the male, and the female. ...
  • The Number of Pins: When choosing a connector, it is crucial to consider the number of pins that will be required you're your application.

What are the different types of logical connectors? ›

Commonly used connectives include “but,” “and,” “or,” “if . . . then,” and “if and only if.” The various types of logical connectives include conjunction (“and”), disjunction (“or”), negation (“not”), conditional (“if . . . then”), and biconditional (“if and only if”).

What are connectors and API? ›

The connector is the piece that is going to connect to the API and pass that data to the next message processor as a data stream. In this example, the connector is the piece that you hold when you plug the cable into the Mac. Likewise, there is a connector on the other end which plugs into the HDMI slot in my TV.

Which tool within the Azure portal will make specific recommendations based on your actual usage for how you can improve your use of Azure? ›

Azure Advisor analyzes your configurations and usage telemetry and offers personalized, actionable recommendations to help you optimize your Azure resources for reliability, security, operational excellence, performance, and cost.

What are the 3 main identity types used in Azure AD? ›

Azure AD manages different types of identities:
  • User. User identity is a representation of something that's Azure AD manages. ...
  • Service principal. A service principal is a secure identity that enables an application or service to access Azure resources. ...
  • Managed identity. ...
  • Device.

What are the three main features of Azure DevOps? ›

What Are the Features of Azure DevOps?
  • Dashboard Control. ...
  • Improved Source Control. ...
  • Plan and Track Your Work. ...
  • Continuous Integration and Deployment (CI/CD) ...
  • Support for Manual and Exploratory Testing. ...
  • Integrated Collaboration Services. ...
  • Azure Cloud-hosted Services.
6 Oct 2021

What are the 4 types of apps? ›

The 6 Main Types of Mobile Apps
  • Lifestyle Mobile Apps. Lifestyle apps have come on strong in recent years. ...
  • Social Media Mobile Apps. ...
  • Utility Mobile Apps. ...
  • Games/Entertainment Mobile Apps. ...
  • Productivity Mobile Apps. ...
  • 6. News/Information Outlets Mobile Apps.

What are the 3 types of applications program? ›

Understanding the different types of application software will help you save cost, time, and resources, enhance productivity, and improve decision-making. Application software can be broadly classified into General Applications, Business Applications, and Custom Developed Applications.

How do you troubleshoot application errors? ›

Eleven Tips for Troubleshooting Software
  1. Free up RAM by closing other open programs. ...
  2. Restart the software. ...
  3. Shut down and restart your computer. ...
  4. Use the Internet to find help. ...
  5. Undo any recent hardware or software changes. ...
  6. Uninstall the software, then reinstall it. ...
  7. Look for software patches. ...
  8. Scan for viruses and malware.

What are examples of logic errors? ›

A logical error in a program is an error were the instructions given in the program do not accomplish the intended goal. "Get me a cup of coffee." is a logical error when the person intended to ask for a cup of tea.

How do I authenticate logic apps? ›

What's Next
  1. Step 1 – Create Azure Logic App (Consumption)
  2. Step 2 – Test logic app using Postman.
  3. Step 3 – Create 2 Azure App Registrations.
  4. Step 4 – Update Service App's Manifest.
  5. Step 5 – Add Azure AD Authorization to Logic App.
  6. Step 6 – (Optional) Enable Authorization Headers in Run History Outputs.
  7. Step 7 – Test Logic App.
17 May 2022

How long can a logic app run for? ›

How long can a logic app run? The default run limit for synchronous actions in a multi-tenant Logic App is 120 seconds that is 2 minutes.

Do professionals use logic? ›

It has more than enough for producing full-length albums, which is why it should come as no surprise that over 800 artists are known to use it. Some of the most popular musicians that can be seen using Logic Pro include: Calvin Harris. Ed Sheeran.

Can logic apps run on a schedule? ›

Azure Logic Apps helps you create and run automated recurring workflows on a schedule. By creating a logic app workflow that starts with a built-in Recurrence trigger or Sliding Window trigger, which are Schedule-type triggers, you can run tasks immediately, at a later time, or on a recurring interval.

Can we call logic app from Azure function? ›

When you need to deploy a long-running listener or task, you can create a logic app workflow that uses the Request trigger and Azure Functions to call that trigger and run the workflow.

What are the top 3 security measures a company needs to take in order to ensure network security? ›

The top 10 network security best practices to implement today
  • Audit the network and check security controls. ...
  • Revisit and communicate security policies. ...
  • Back up data and institute a recovery plan. ...
  • Encrypt critical data. ...
  • Update antimalware software. ...
  • Set appropriate access controls and employ multifactor authentication.

What are the three 3 types of security to use as a methodical approach to protect a network infrastructure? ›

There are three components of network security: hardware, software, and cloud services.

What are the 3 basic security requirements? ›

Regardless of security policy goals, one cannot completely ignore any of the three major requirements—confidentiality, integrity, and availability—which support one another. For example, confidentiality is needed to protect passwords.

What are the 5 main components of the logic model? ›

While a basic logic model should include the five basic components of participants, inputs, activities, outputs, and outcomes, similarities end there. You may choose from many different formats, some complex and some simple.

What are the four components of logic? ›

Included in most logic models are four components: resources, activities, outputs, and outcomes. Resources are the raw materials needed to create the program, implement its activities, and attain the desired outputs and outcomes.

What are apps give examples? ›

Types of apps
  • Web-based app. A web-based app is an application that requires internet access for complete use. ...
  • Native app. Apps that are created for a certain mobile platform are known as native applications. ...
  • Hybrid app. ...
  • Microsoft Word. ...
  • Adobe Photoshop. ...
  • Facebook Pages Manager. ...
  • Duolingo.

What is Azure function and logic app? ›

Azure Functions is a serverless compute service, whereas Azure Logic Apps is a serverless workflow integration platform. Both can create complex orchestrations. An orchestration is a collection of functions, or actions in Azure Logic Apps, that you can run to complete a complex task.

What is azure and examples? ›

What is Azure? At its core, Azure is a public cloud computing platform—with solutions including Infrastructure as a Service (IaaS), Platform as a Service (PaaS), and Software as a Service (SaaS) that can be used for services such as analytics, virtual computing, storage, networking, and much more.

What is the difference between Azure Functions and logic apps? ›

Azure Functions is a serverless compute service, whereas Azure Logic Apps is a serverless workflow integration platform. Both can create complex orchestrations. An orchestration is a collection of functions, or actions in Azure Logic Apps, that you can run to complete a complex task.

What is the difference between PowerApps and logic apps? ›

Azure Logic Apps is a service used for application integration, building workflows etc. PowerApps are for building GUI applications. Almost everything can be called an application, or an app, therefore it's not reasonable to assume that all things called apps are similar in some way.

What kind of platform as a service is provided by Azure give examples of these services? ›

Azure offers five main PaaS service elements: Web apps, Mobile apps, Logic apps, Functions, and Web jobs.

Which of the following service in Azure is used to manage resources in Azure? ›

Azure Resource Manager (ARM) is an Azure service you can use to manage and deploy resources using an infrastructure as code paradigm.

How many types of Azure are there? ›

There are five storage types available in Microsoft Azure divided into two groups. The first group, which includes Queue Storage, Table Storage, and Blob Storage is designed with file storage, scalability, and communication in mind and is accessible via REST API.

Which of the following is a logical unit of Azure? ›

A subscription is a logical grouping of Azure services that is linked to an Azure account. A single Azure account can contain multiple subscriptions.

What are the three main components of Azure cloud? ›

The Windows Azure platform consists of which three main components?
  • Fabric, storage and APIs/SDKs.
  • Storage, security and APIs.
  • Allen, Gates and Ballmer.
  • Active Directory, virtual machines and Windows OS.
20 May 2012

What are main components of logic app designer? ›

There are three major components, which form the blocks of Logic Apps and they are connectors, triggers, and actions.

When should I use logic apps vs function apps? ›

Function Apps require coding whereas Logic Apps require visual designing (and then automatically convert into a source code JSON template). Comparatively, Function apps do not present a visual workflow to the designer; It all comes down to the developer building the workflow.

What are the two types of apps that we can create using PowerApps? ›

In Power Apps, you have two options when creating apps: model-driven apps and canvas apps. The following is a basic, high-level comparison. For much more detail about these two types of apps, see Overview of creating apps in Power Apps. Model-driven apps require a Microsoft Dataverse database.

Videos

1. Integrating Azure Logic Apps and SAP Part 1
(Kent Weare)
2. Quickstart: Create your first automated integration workflow by using Azure Logic Apps- Azure portal
(Cloud Security Training & Consulting)
3. Identity Governance Automation with Azure Logic Apps
(The Microsoft 425Show)
4. Webinar : Understanding Azure Logic Apps
(GTech Learn)
5. Access DevCon 2020 - Access & Azure Logic Apps
(Karl Donaubauer)
6. 10. Logic App | Azure Logic App Integration | Read Secrets from Keyvault in Logic App
(Bee a Learner 🐝🌨️)

Top Articles

Latest Posts

Article information

Author: Otha Schamberger

Last Updated: 11/06/2022

Views: 5629

Rating: 4.4 / 5 (55 voted)

Reviews: 86% of readers found this page helpful

Author information

Name: Otha Schamberger

Birthday: 1999-08-15

Address: Suite 490 606 Hammes Ferry, Carterhaven, IL 62290

Phone: +8557035444877

Job: Forward IT Agent

Hobby: Fishing, Flying, Jewelry making, Digital arts, Sand art, Parkour, tabletop games

Introduction: My name is Otha Schamberger, I am a vast, good, healthy, cheerful, energetic, gorgeous, magnificent person who loves writing and wants to share my knowledge and understanding with you.