Time
7 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
9

Video Transcription

00:00
Welcome back In this episode, we're gonna take a look at our first serve Earless option with a logic app demo.
00:06
My objectives include just creating a lodge, a cap, and we're gonna create a pretty simple one based on tweets found on Twitter and sending an e mail. But we'll take a look at some further examples And what else is possible using built in work flows that are already available to you
00:23
back in the portal Already have our logic APS resource ferreted on the left. So let's go ahead and go into it.
00:30
We'll click on add to create our first logic app
00:36
and as a mission from the slide, we're gonna use a real basic example. Just a show, how the designer works and what functionality is available to us. So what we're gonna do is take certain tweets from Twitter and send them to an email address.
00:49
We're gonna select our existing resource group, leave the location at East us. Then we have another option down here to sin logic app events to the lock analytics workspace.
01:00
If you remember, Log analytics can be used to hold metrics and events that are occurring to our resource is this means we can use it to filter and search on events coming out of our logic. App
01:11
for a demo. I'm gonna leave this off, So let's go ahead and click on Create
01:18
Will refresh
01:19
See our new logic cap. So let's go configure it
01:25
in our overview page, we're gonna have some examples of some common triggers,
01:30
such as when we get a message on our service bus.
01:33
When they've incurred resource event occurs,
01:36
http request has received. Or when a new tweet is posted, we can also scroll down and take a look at some templates that are already available to us that have several steps in them.
01:46
Let's go find the one I'm looking for here.
01:52
Email yourself new tweets about a certain key word via outlook.
02:00
Since this is using connectors to access, other service is outside of Microsoft. We do need to sign into them so we can use the data from them.
02:10
I have a test Twitter account that I'm going to use
02:19
next. We're gonna sign into outlook dot com Since we're already signed in using the M s account created earlier in this course, it auto signs us into that outlook dot com account. Let's go and click on Continue
02:31
Here. We have the first action and our workflow for when a new tweet appears that we could enter in specific search texts that were looking for.
02:40
In our case, I'm going to look for the hashtag Azur,
02:45
and we're going to search every five minutes.
02:50
Next, it's going to get the user info of who tweeted the tweet. And finally, the next action is going to send an email here. We need to specify what email address we want to send it to.
03:00
I'm just gonna send it to ourselves,
03:07
and then we can define the subject of the E mail as well as the body
03:10
in all these little text boxes. Here are information from the tweet that we can use to create our message body.
03:20
If I select in the message body and scroll over to the right, you can see some other options we have for creating content based on the connectors we currently have and other options inside the logic app.
03:32
For example, from get user, we can get the user description or location of the user,
03:38
and from the tweet itself, we can get a creation time description if it was in reply to somebody else.
03:46
We can also create dynamic expressions such as contaminating text or doing simple replace functions on text.
03:55
So let me clean this up a little bit,
04:00
and we can see our three actions here that we have going on. Let me go ahead and save this.
04:06
I'll go ahead and select on run.
04:12
Now let's switch over to our alec dot com inbox
04:16
and we can see we already have a tweet that came in that had a hashtag Azure, innit?
04:25
If we select that email, we can see all the information from our email body that we defined inside the logic app flow. Let's go back to our logic, app, designer
04:38
and real quick. I just want to click on New Step
04:44
so you can see some of the other actions that we have available to us. For example, we can set variables do language detection.
04:53
We can also connect to azure functions as your app service's or logic APS or take a look at http triggers
05:00
all this to say there are lots of options for triggers and actions inside of your logic cap and you'll be able to create some very impressive work flows here.
05:09
If you click on connectors up here,
05:15
it'll take you to a great page describing connectors for azure logic gaps,
05:21
including some of the built in triggers and actions that we have,
05:27
as well as advanced options for controlling your workload, such as evaluating specific conditions, running for each loops, switch commands or do until loops
05:36
that does it for a logic app. Demo. Let's step back to the slides to wrap this up.
05:43
Coming up next, we're gonna jump into our next serverless demo by taking a look at your functions. See you in the next episode.

Up Next

AZ-300: Microsoft Azure Architect Technologies

Azure Solution Architects are responsible for taking business requirements and turning them into solutions. This course provides an introduction into Azure, Microsoft’s cloud platform.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor