Time
19 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 application gateways with an application. Gateway Demo.
00:07
Our objectives include creating an application gateway, and our second objective is to configure some of the features that we learned about in last episode. Let's jump back to our azure portal
00:18
here in our azure portal. Let's go ahead and create a resource
00:21
search for application Gateway
00:26
Select Create
00:29
the screen should look pretty familiar.
00:32
First, let's select a resource group.
00:36
Let's give our application gateway and name.
00:42
Select our region.
00:47
Let's go take a look at what our options are for our tears.
00:51
We have the standard and standard V two and the Waf Waf version to remember the version to supports auto scaling. Whereas if we select the standard or waf version one, we have to specify a number of instances we want for the application. Gateway. Let's take a look at what that looks like real quick
01:12
when we choose the standard. We just have an instance count and then a skew size that we need to choose.
01:19
Remember, from our slides, we have small, medium and large.
01:23
Let's go back and select a standard V two
01:27
And if we want to enable auto scaling, we have to select the minimum number of instances we want to start with and then our maximum instances.
01:36
If we select zero as our minimum, that means it's always gonna be auto scaling based on demand for a demo. Let's go ahead and select one,
01:46
and we'll just go with a max of two.
01:49
And then we also have the option. If we want to put our application gateway into an availability zone for hire redundancy for a demo, I'm just gonna leave the options as they are right now.
02:00
Next, we need to configure the virtual network that the application Gateway is gonna reside in. Let's select our virtual network.
02:07
I'm gonna choose the one from our load balancer demo
02:10
and I have a sub net specific for our application gateways.
02:15
Next, let's configure our front end
02:19
here. We can choose who we want a public I p address or a private I P address, or if we need both.
02:23
Since this is gonna be fronting our Web servers, let's go ahead and choose public,
02:28
and we need to create a new public i p address resource
02:35
when creating this public I p address. You can see our skit was gonna be standard, and it's going to give us a static i p address for application Gateway.
02:43
This means it doesn't matter if we stop or start the application Gateway. We're going to retain the same public i p address for it.
02:52
Next, we need to select the back in pool, and I'm gonna choose our Web servers that we have configured
03:04
now we could create, are back in pool and not put any resource is and it just yet. But since we're here and we have the Web service available, let's go ahead and add them.
03:23
Let's continue with our configuration
03:25
now for a configuration through this wizard. We already created our front end I p address and are back and pulls. Let's go ahead and create a routing rule
03:37
much like our load balancing rules were creating a rule for the incoming traffic and determining how we're gonna route it to our back in target. Let's give our ruler name.
03:47
Let's go find the listener, and this is where we're going to specify. A port in an I P address for the incoming traffic
04:00
will specify our public front and I p address.
04:03
We'll stick with http and Port 80.
04:08
And for right now, on our listener type, we're just gonna choose basic for a single site. But do remember, application gateways can be configured to host multiple sites and we can create different writing rules for each site.
04:20
Let's go double check our back in targets.
04:23
We'll choose our back in pool that we created.
04:26
And we need to configure the http settings that we're gonna use one sending traffic to the back end.
04:30
We don't have any created right now, so let's click on, create new.
04:35
We'll continue to leave this at http for the protocol and port 80.
04:42
Instead of using the hash mechanism from our load bouncer, we have the option of using cookie based affinity and this will keep clients on the same servers throughout the session. We also have the option of connection draining where we can stop new connections from happening on the backend server,
04:57
wait until existing connections are gone, and then take down a back end server for maintenance.
05:01
And we can also configure our request time out
05:06
Application gateways also have the option of overriding the host name as it passes through to the back end surface.
05:14
We don't need this for a demo, but let's go and click on Add and create our settings here.
05:19
We can also configure path based routing. Remember this from our slides, where we had our domain name slash picks and we could write that to the server that hosted our pictures
05:30
and then a slash documents or docks, and we could host that to the and then we could redirect that traffic to the servers hosting our documents.
05:38
Let's go and click on add to finish creating our ratting rule.
05:46
I don't have any tags that I'm gonna apply. So let's review and create.
05:56
Now that our deployment is completed, let's go take a look at a new application Gateway.
06:08
And over here we have the front end public I P address. Let's go copy it
06:12
and real quick. Let's go take a look at our I P addresses for two virtual machines inside the back in pool,
06:19
we have Web 02 with 1 10 that 1 73 at the end
06:26
and then Webb 03 with 94.2 52 at the end.
06:30
And if we hit the public i p. Address of our Web application. Gateway.
06:36
You can see that we hit Web. 03 Let's go back to our application Gateway.
06:44
Let's go under settings and are back in pools to remove V M 03 from our back and pool
06:58
with their back and pull updated. Let's refresh
07:01
Our target's changed a one.
07:03
If we go back to our tab over here and refresh,
07:10
we can now see it redirects us to Webo, too. So I did that just to show that Web 02 and Web 03 were both answering from the back end pool. But as soon as we take one out, Webo, too will start accepting the rest of the connections.
07:23
Let's take a look at the other settings we have for our application Gateway.
07:29
Here we can switch between the standard V two
07:32
or the W F. VE to to get our Web application firewall.
07:36
We can also configure our auto scale settings. We can configure the app gateway to auto scale or set manual minimum and maximum instances, just like when we created it
07:49
under http settings. This is where we configured how we wanted the incoming network requests to be sent to our back in pool
08:00
here we can configure our front in I p configurations. Right now we have a public set, but we can also configure a private I p address.
08:09
Next we have our listeners. Listeners are on the front end of the server accepting the incoming traffic. And we remember from when we created it we did have the option of creating a multi site listener. Let's go check that out
08:24
here. We can give the list surname. Let's say we're adding one for a Z Tech 300 website.
08:31
We can choose the existing front and I P address that we already have configured.
08:37
We can also use the same port.
08:39
Then we just need to enter the host name for our website.
08:50
We also have options for configuring the cipher sweets that we want to use for SSL inside of our Web app listeners,
09:01
we also have our routing rules which make the connection between our listener and are back in the pool as well. A czar http Settings
09:11
remember former slides. We also have the ability to rewrite http ur Els
09:18
and we can configure our custom health probes
09:22
we would choose a name for the health probe,
09:26
the host that we're looking for
09:28
a path to test. And then we configure our custom interval and time out, as well as the unhealthy threshold for how many times the protest to fill before the backend server is marked as unavailable and unhealthy.
09:45
We can also monitor back and health.
09:50
Right now, our Web 02 is listed as healthy.
09:54
What I did is I went ahead and stopped
09:58
eyes on our web. Oh, to server, which is the only server left in our back in the pool right now.
10:03
And those health probes have failed. So it is marked that particular virtual machine as unhealthy.
10:09
That does it for a demo. Let's jump back to the slides so we can wrap this up.
10:13
Coming up next, we're going to jump into another more advanced networking topic with how do we integrate with our own premises networks. 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 AZ-300 training provides an introduction into Azure, Microsoft’s cloud platform whilst preparing students to take the Microsoft Azure Architect Technologies certification.

Instructed By

Instructor Profile Image
Jeff Brown
Instructor