The course is part of these learning paths
Azure Logic Apps
Learn Configuring Serverless Computing on Azure with this course. Allowing cloud engineers to leverage serverless technologies to deploy solutions is vital to any enterprise. In this course you will learn to do this without the hassle of maintaining actual servers or virtual machines. In addition, this course provides a true insight into the creation of a 'Function App'. This is an interesting feature because creating a basic Function App is actually deceptively easy. Develop your skills with this course by learning exactly how to create a basic Function App.
We would recommend having an intermediate understanding of MS Azure along with knowledge of its principles and product offerings before starting, ensuring that you yield the maximum potential of the training content. This Azure training content is made up of 11 comprehensive lectures along with an overview and summary.
This course can also be found in the following Learning Paths:
- AZ-100 Exam Preparation: Microsoft Azure Infrastructure and Deployment
- AZ-101 Exam Preparation: Microsoft Azure Integration and Security
- Learn what serverless computing is and what it offers
- You’ll learn how to create an Azure Function in the Azure Portal and how to manage Azure Function App settings
- Learn how to create an automated workflow with Azure Logic Apps
- Learn about Event Grid and how to use it to monitor for changes in an Azure subscription
- Learn what Azure Service Bus is and how to use it
- IT professionals who are interested in earning Azure certification
- IT professionals who need to deploy and configure serverless resources in Azure
- Access to an Azure tenant to follow along with demos
- Moderate understanding of Azure
Related Training Content
In this demonstration, I'm going to show you how to build your first automated workflow using Azure Logic Apps. What we're going to do here is create a Logic App that goes out on a regular basis and checks the RSS feed for my thomasmitchell.net website. When it finds a new item, the Logic App is going to send an email to my thomasmitchell.net email address to let me know that a new item has been published. To create our Logic App, what we're going to do is click on Create A Resource in the left pane here. If we scroll down to Integration we can then find Logic App in the featured list. When we create a Logic App we're going to be asked for a little bit of information including a name, the subscription where it's going to be deployed, along with the resource group and a location. We also have an option here of turning Log Analytics on. We're not going to do that for this particular lab. So what we'll do here is we'll create a Logic App here called My Logic App. And we're going to create it in the Pay-As-You-Go subscription. I have a resource group already set up for this called ServerlessComputing. As is the case with most of my resources, I'm going to deploy in the East US location.
We'll leave Log Analytics off and click create. Once this finishes I'm going to pin it to my dashboard for easy access. So now that my Logic App is deployed, I can click on it in my dashboard and open up the Logic Apps Designer. This Logic Apps Designer is where you're going to do all of your work when you're designing Logic App workflows. To create our workflow here, what we're going to do is start with a blank Logic App template. Now, since our Logic App is going to go out and track our RSS feed on a regular interval, we need to add a trigger that's going to fire when a new RSS feed item shows up. It's important to note that every Logic App must start with a trigger and that trigger's going to fire based on specific events, or when a specific condition is met. What'll happen is each time that triggers fires, the Logic Apps' engine is going to create an instance of the Logic App that we're creating here. And that will kick off the workflow that we're putting together. So from the Logic Apps designer, what we want to do is add an RSS trigger. To do that we can search for RSS in the search box. Down under triggers here, we can see that a trigger for RSS shows up and, essentially, it's a trigger for when a feed item is published. So we can select this trigger, since that was what we're trying to do here, and then what we need to do is fill in the information for this trigger. What feed URL are we going to monitor and how often are we going to monitor it. For this exercise we're going to monitor the RSS feed of thomasmitchell.net. Now with my feed URL selected I have to tell my Logic App how often to check for items. The interval here specifies the number of intervals to wait between checks.
So we're gonna wait one interval between checks. The frequency is the unit of time for each interval between those checks. You can see here we have months, days, weeks, minutes, seconds. We'll select one minute. By setting the interval to one and the frequency to minute, we're telling our Logic App to go out and check every minute. Now what we can do here is we can hide our details so we can work on our canvas here, by simply clicking on the title bar. Now what I'm going to do here is save my work in case I lose it for some reason. So now we have the My Logic App created. Now, although the Logic App is live, all it's doing right now is checking my website's RSS feed for new items. It's not doing anything with that information. What we need to do is add an action to the Logic App that fires when it finds a new item. To add a new action we click new step, and then in the search box since we're going to send an email we'll search for send an email. If we scroll down into our actions box here, we can see a few different actions here. Actually we can see quite a few. Now what I'm going to do is I'm going to send the email using my Office365 account. So I'm essentially sending the email to myself. So what I'm going to do here is select, send an email using Office365 Outlook. When I do this it's going to prompt me to sign in to authenticate to my account. So at this point I'm prompted to pick an account, and so now that I'm authenticated to my Office365 tenant, I can fill in my information. Now what I'm going to do in this send an email box, is specify who the email is going to go to. So I'm going to send it to myself. What I'll do is for the subject here I'll let myself know that there is a new RSS feed item.
So I'll give it, new RSS feed item, and then what I can do is I can add dynamic content here. So in the subject I'm going to receive emails that tell me there's a new RSS feed item and then what I can do is specify the title of the feed item that gets published in the subject line of the email that I received. Now in addition to a subject, my email needs a body. So what I'm going to do is give myself some information. In the body of the email, I'm going to let myself know what the title of the new entry is, when it was published, and a link to it. So what I can do here is type in some information that's useful to me. And again I'll use the dynamic content to specify the feed title in my body. If I hit Shift + Enter I can drop down a line here within the body box. And I'll also tell myself when the publish date is. Again, I can scroll down here and find feed published on, then I can tell myself what the item link is. Then maybe what I'll do also is I'll give myself a summary as well. So now what I've done here is I created a Logic App that monitors my thomasmitchell.net RSS feed, it does so every minute. When it finds a new item in that feed, it's going to send an email to me and in the subject line, it's going to tell me what the feed title is, and in the body it's going to give me the title, the date, the link to it, and a summary of the item. So I'll go ahead and click save here. So at this point my Logic App is ready to go.
Now what I'm going to do here is off screen, I'm going to go into my thomasmitchell.net website and create a new item so it updates my RSS feed. Now what I've just done is create a new article on my website called My New Article. Now what I'm going to do is I'm going to click run to manually launch my new Logic App. Now I could just wait until the first interval but I'll launch it now manually just to get it started. We can see here that it successfully checked the trigger. So, now if I open up my Outlook, I can see that I received a new email that tells me that the new article called My New Article was published today. It provided a link and it provided the summary info that's included in the actual RSS feed itself. Now the summary info's a little messy here because I don't really use RSS feeds that are formatted nicely on my site, but you get the drift of how it works here. So you can see these successful checks have shown up, what it does is it goes out and it checks for new items. If it doesn't find them it just doesn't send me an email. So that said, you can now see how a basic Logic App can be used to perform some simple tasks that include workflows such as this.
About the Author
Tom is a 25+ year veteran of the IT industry, having worked in environments as large as 40k seats and as small as 50 seats. Throughout the course of a long an interesting career, he has built an in-depth skillset that spans numerous IT disciplines. Tom has designed and architected small, large, and global IT solutions.
In addition to the Cloud Platform and Infrastructure MCSE certification, Tom also carries several other Microsoft certifications. His ability to see things from a strategic perspective allows Tom to architect solutions that closely align with business needs.
In his spare time, Tom enjoys camping, fishing, and playing poker.