Time
7 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
8

Video Transcription

00:00
Welcome back. In this episode, we're going to take a look at our azure app. Service is with the demo.
00:05
My objectives include we're gonna go out and create an APP service plan and then create a Web app inside of it. Let's jump back out to the azure portal
00:13
back here in our azure portal. I've already got APP service plans ferreted on the left, so let's go and select it.
00:20
We'll click on add to create our first plan.
00:25
I already have an existing resource group that I've created called APP Service is Lennox RG.
00:31
You need to give our APP service playing a name
00:37
that's evident by the name. I'm going to select Lennox as my underlying operating system
00:42
and I'm going to select the East US region.
00:46
Finally, we need to select our pricing tier. This is gonna be what we saw in the last episode when we're checking out the azure documentation. Let's click on change size
00:55
and this page really lays out exactly what you get with each pricing tier. Let's go check out the Devon test. We have F one and be one for free and basic, but we can also expand this menu and see some other basic options that we have.
01:08
If you scroll down, we don't see many features available to us here.
01:11
So let's go back to production.
01:14
See additional options.
01:15
I'm gonna select the S one pricing tier. This is in the standard range and pretty much the lowest one we have inside of production.
01:23
Scroll down. We can see some of the features that are available, such as custom domains, the ability to auto scale and set up staging slots. Let's click on apply.
01:32
We'll review and create
01:34
Tango and create our APP service plan.
01:38
Now, with our up service plan deployed, let's go back and take a look at it.
01:45
And here we take a look at some of our configuration options.
01:48
First, in the over you page, you can see the CPU memory data in and out that air being consumed inside the APP service plan.
01:56
We can also see what APS are currently associated with the plan. Right now, we don't have any, but we're gonna create one in a couple of minutes.
02:01
We can also review the file system usage inside the APP service plan. Right now, our plan includes 50 gigabytes.
02:09
We also have the ability to scale up to another plan. If we find this one is not working out for us,
02:15
we can go to a premium orb into an isolated here.
02:20
We can select another standard tear or remove all the way to Premium.
02:23
And since we're in our standard here, we also have the option of scaling out. Right now, it's set to manual scale, which means we set the number of instances we want,
02:34
but kind of like virtual machine scale sets. We can also customize auto scale options in here we can scale based on a metric or scale to a specific instance count.
02:45
And if we click on add a rule
02:47
here, we can see some of the criteria we can set that we want to use to scale out, too.
02:53
Our common hello world example is the CPU percentage,
02:57
but we could also base it on data in or out
02:59
disc http que links memory percentage and other TCP networking options.
03:09
Now we have our APP service plan. Let's go in and go create a Web app. Lets jump back over to APP. Service is
03:17
here. Let's click on add
03:23
gonna select our existing resource group.
03:27
We'll give our Web at the name
03:32
and here I'm gonna establish some additional instance details. Right now I'm gonna publish this using code, but you do have the option of using a doctor container. Something will cover in some upcoming episodes.
03:44
And then we're gonna select our runtime stack.
03:46
I'm going deploy a Web app
03:47
using Know Js
03:50
I'm going to keep it at the east US region.
03:54
Here you can see it. Auto selected the APP service plan we just created. But if we were to select a different operating system or a different resource group or region, we would have to create one here.
04:04
So if you don't want to create an APP service plan beforehand, you can create one. When you go to create the Web app,
04:10
let's go ahead and review and create
04:18
how their resource deployed. Let's go back to APP Service is
04:23
will select our new Web app
04:26
in here. In the old review page, we can see some properties about our Web app. First we have our euro. Let's go ahead and select it.
04:32
And here Microsoft has just created a very basic Web page, just so we can sure that everything is up and running here. In a few minutes, we're gonna deploy our own code to it so we can take a look at it.
04:43
Let's go back to our portal.
04:48
Let's go check out some of our configuration settings that we covered in the slides.
04:54
Here we have our application settings that we can configure, which are just environmental variables that we can access our application at runtime.
05:01
We'll still have the ability to set connection strings.
05:06
We take a look at general settings.
05:08
We can get a little more specific about our stack and some versions with it. We could switch it to one of our other programming languages.
05:15
And if we had a specific major and minor version that we needed, we could set that here.
05:21
We also have a couple of platform settings,
05:25
such as if we want to use secure FTP. Actually, I'm gonna go ahead and set this right now,
05:32
we'll have the ability to set our Web app to be always on, which will prevent it from being shut down when it's idle due to an activity. We also select a our affinity or basically using cookie affinity with our Web app.
05:45
We also have some options around debugging and incoming client certificates.
05:49
Let's go back to the top.
05:50
Let me save this real quick.
05:56
Let's go check out our path map ings,
05:58
and here we can actually configure a mapping to azure files or blob containers to use within the Web app.
06:09
We also have the ability to set custom domains,
06:14
and we can even purchase and manage domains directly inside of Azure. Here,
06:17
and just like we saw inside the APP service plan settings, we can configure the scale up and scale out settings here is well,
06:29
and finally, if we scroll down to the bottom
06:31
under monitoring, we have APP service logs.
06:34
We do have the ability to turn on application logging.
06:38
We can send it to the file system
06:41
like we saw in the slides on the last episode. We can set a quota in our retention period days. Then down here at the bottom, we have a special FTP website that we can use to download zip files of the logs.
06:51
Now that we have our Web app, we have to get code into it somehow, and there's quite a few different ways to do that. for the purposes of the demo here, I tried to pick the easiest one I could find. So let's go back up to the top.
07:03
We're gonna go to deployment center.
07:06
We do have options like azure repose or get have bid bucket or a local get depository.
07:13
But we're gonna do is just a manual deployment. And we're gonna use FTP.
07:16
We're gonna open up its dashboard
07:20
and here we have the F. T. P s en Pointe. Remember, this is why I turned on secure FTP earlier in our settings
07:27
and we have a user name and password we can use in order to access the FTP site.
07:31
So what I've done, I've gone ahead and copied our endpoint user name and password,
07:36
and I have those saved offscreen here. Let's go ahead and close this out.
07:41
Microsoft makes available some very basic Web maps that we can use to practice deployment.
07:46
We jump out here to get hub
07:48
under azure samples. There's a no Js docks hello world, and what she'll want to do is go down here and download the zip file version of this and unzip it onto your system.
08:01
Next, you can use any FTP transfer program here. I'm using when SCP
08:07
and from our dashboard earlier. I'm just copying in our in point user name and password.
08:18
And here we are connected. And as you can see in our route, here is the web app that they have configured forest already.
08:26
I'm gonna go ahead and remove this.
08:31
And here is that no J s application that I've already downloaded.
08:37
I'm gonna take some of these and we're gonna ftp it to our www route.
08:43
If you go back to our overview and click on, browse
08:46
our web out, we'll reload, and we can see our hello world application has been deployed to the same. Your oil that we looked at before
08:54
says the very basics of creating a NAP service plan,
08:58
creating a Web app and deploying an application to it.
09:01
Let's come back to the slides and wrap this up.
09:05
Coming up next, we're going to take a look at another component of our Web Epps by talking about deployment slots. 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