Time
19 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
9

Video Transcription

00:00
Welcome back on this episode, we're gonna take a look at Azure functions with the demo
00:04
again. My objective is just to go out to the Azure portal and create an azure function. The one in our demo is gonna be based on a simple http trigger that is available through a template
00:16
here in our portal under Azure service is we would have function app showing up for us. So let's go and select it.
00:25
Click on add to create our first function up.
00:31
First, we need to give our function APPA name. And if you noticed, it's gonna be a sub domain of dot As your websites dot net a function APP has a publicly accessible euro. So the app name we give it has to be globally unique all across azure
00:50
going to use our existing resource group
00:54
if we go down into the options for the function. At first we have our operating system selection will select windows first.
01:00
Then we have a hosting plan option. For right now, I'm gonna use my consumption plan, which is just pay as you go. But you can also assign this function app into an APP service plan. Now We haven't discussed APP service plans yet, but it is a topic will go over in later episodes.
01:17
Next, we'll leave our location as central us.
01:19
And then we have our run times stack, which is the programming language that we're gonna be using them. The function app for Windows. We have gotten that core
01:27
no. J s Java and Power Shell Corps, which is currently in preview.
01:34
If we go back and select Lennox,
01:38
our options will change to Python know Js or dot net core.
01:46
Next, we need a storage account to use. And since we're using a consumption plan and not the APP service plan, we have to define a storage account that has filed Service is in it. I don't have an existing ones right now, so I'm just gonna select the create new storage account option and let it use the name it gave me. Then, finally, we can plug this into application insights.
02:05
Let's go and click on Create.
02:09
Let's go ahead and refresh.
02:14
And our new function app is now available. Let's go configure it settings
02:22
and next to functions here on the left was go ahead and click on the plus sign
02:28
and we have a couple of different options for developing and creating our function app.
02:36
Just for this demo, I'm gonna select in portal,
02:39
then select Web Hook or a P I.
02:46
This will create an http trigger inside of our function app. And if you notice our coat is C sharp, which is a dot net language, let's minimize this to get us a little more space.
02:59
Now, we don't necessarily need to understand what this code is doing, but if you take a look at it here,
03:04
it's gonna be looking for a name being passed to it.
03:07
And then it's going to output to the window. Hello and that name that it has passed.
03:15
If it doesn't, it's just going to give us a bad request results saying Please pass the name. Let's go and get our function you Earl.
03:23
We'll copy this.
03:25
We'll open up a new tab,
03:30
and we'll get that message saying we need to pass a name and the query string.
03:37
So let's change our u R l just a little bit.
03:44
And the response we get back now is Hello, Jeff.
03:49
Looking back in our azure function, there are a couple other options we can take a look at
03:53
under integrate. We can add new inputs and define additional outputs for when we call the azure function
04:00
Under manage, we can disable the function as well. Azad Additional keys for authentication against the azure function.
04:09
Finally, we have the option to monitor the function to see previous runs as well as any success and errors that are currently going on with it. That does it for our demo. Let's jump back to the slides and wrap this up.
04:20
Coming up next, We're gonna take a look at how to configure service bus in our service bus Demo. 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 whilst preparing students to take the AZ-300 Microsoft Azure Architect Technologies certification.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor