Time
19 hours 58 minutes
Difficulty
Intermediate
CEU/CPE
9

Video Transcription

00:00
Welcome back In our last episode on advanced networking topics, we're going to talk about some network troubleshooting.
00:07
Our objectives include understanding what the network watcher is reviewing network watcher tools and then jumping out to the azure portal to take a look at a demo.
00:16
So, first, what is the network watcher? Network watcher is an all in one tool used to troubleshoot network connectivity to Resource is Inside of Azure
00:26
Network Watcher can be used to monitor in point communication such as a virtual machine
00:31
or even diagnose traffic flows, such as routing issues in capturing network packets to and from a virtual machine
00:37
network watcher can also be used to analyze traffic from a network security group. If you remember, the network security group is going to allow or deny traffic to network interface on a virtual machine so we can take a look at the traffic being allowed and denied.
00:51
Finally, network watcher is automatically deployed when you create or update a virtual network inside of azure
00:57
Network watcher Resource is will be created for each virtual network region,
01:00
and the best part is network Watcher is free of charge.
01:04
Now let's take a look at some of the tools we have available inside of Network Watcher first is I P flow. Verify
01:11
this is gonna check to see if traffic is a louder blocked to a virtual machine. You can choose a direction either inbound or outbound, and then select a local I p in port and then a remote. I pee in port.
01:23
Then you'll select a local I P address in port and then a remote I P address in port.
01:27
If traffic is blocked, it will tell you the name of the network security rule blocking the traffic.
01:34
Our next tool is called Next Top, and this provides the next hop from the target virtual machine to the specified destination I p. Address.
01:42
This is useful if you have custom routes and want to verify where the next top for a virtual machine would be for a particular i p address destination. Next, we have effective security rules. This allows you to view all the rules for a virtual machine network interface.
01:57
Remember, network security groups can be applied in multiple places such as honest, sub net or on a network interface, so this tool will summarize and let you view all the security rules for the virtual machine. Next, we have packet capture, which you can use for capturing network packets, inbound and outbound from a virtual machine.
02:15
And then you can save these network capture fouls for further analysis, either to the virtual machine or a storage account.
02:21
Next, we have connection troubleshoot, which will check and verify a direct TCP connection between virtual machines to an F Q D in your eye or I p v for a dress.
02:30
And finally, we can enable locking of ingress and egress ivy traffic against our network security groups so we can see what kind of traffic is being allowed in denied.
02:39
Let's jump out to the azure portal and take a look at each of these network washer tools.
02:46
Harry are back in our azure portal, and during the slides I mentioned that network watcher re sources are deployed automatically if you deploy or change a virtual network and I want to show you what that looks like, so when you see it, you don't inadvertently delete it or not know what it is. Let's go take a look at our resource groups.
03:05
Here we have a resource group name, network watcher RG.
03:09
And if we go and take a look at its resource is you'll notice that there's currently not anything in here. But if we check the box to show hidden types,
03:17
we'll see the instance for East us, where I currently have a virtual network deployed.
03:23
Now let's say you accidentally deleted this resource or the entire network watcher RG Resource Group. Not to worry, you can re enable it very easily. Let's go check out our network watcher Resource
03:37
and here in the overview page, you can see for our Microsoft Azure standard subscription. It lists 30 regions and our status is partially enabled.
03:46
If we expand out regions,
03:50
we can see the various regions available inside of Azure,
03:53
and if we scroll to the right, we can see where some are enabled and disabled.
03:58
So, for instance, if you deleted that resource or the entire resource group,
04:02
you can just as easily come back in here. Select the ellipsis and enabled network watcher.
04:13
Now let's go take a look at our diagnostic tools.
04:18
The first is I P flow. Verify where we can see if we can get packets from one virtual machine to another first select the subscription resource group Virtual Machine in the network interface that you want to use as the source.
04:31
Select the packet details in the direction.
04:35
I'm gonna change this to Outbound.
04:39
We'll set our port to 80
04:41
and I'm gonna checked a remote I p address of another virtue machine. And it's another sub net,
04:46
and we're gonna check port 80 as well.
04:49
And here we can see access is allowed, and it's based off the security role of allowing V net outbound.
04:57
You don't have to use the i. P address of another virtual machine. You could easily use a resource outside of Azure as well.
05:02
Let's go check out next. Hop
05:08
Very similar. We're going to select the subscription Resource group,
05:12
Virtual Machine and Network interface and the source I P address.
05:15
And then we're gonna enter a destination I P address
05:18
here. I'm gonna check against the i p address of a website,
05:28
and here we can see the Virtue Machines. Next top is gonna be straight out to the Internet, and this was determined by our default system routes in our route tables.
05:38
Next, let's check out effective security rules.
05:41
Let me collapse this blade over here
05:43
and here. We're gonna select a virtual machine where we want to see all the available security rules that are associated to it.
05:50
I'm gonna select Web 03
05:55
After that, if it had more than one network interface, we could select the network interface
06:00
and we see the Associated Network Security two groups for it.
06:03
After that, we see a summary of all the inbound and outbound network security rules that are being applied to it.
06:10
This will be useful if you're troubleshooting an issue with a virtual machine, and you want to verify all the network security rules that are placed against it. Remember, network security groups can be placed on sub nets and virtual machine network interfaces.
06:29
Next, let's look at packet capture.
06:33
This is gonna enable us to do a packet capture directly on the verse machine, much like you might be able to do with the network monitor or wire shark.
06:42
If we click on, add
06:45
will select our target virtual machine and give the packet capture name.
06:54
And then we have to define where we're going to store the packet capture. When it's been completed. We have the option of putting it into a storage account.
07:01
We can also select, file and enter a foul path on the local machine to store the file
07:08
next week. It also select the maximum bytes per packet and procession and then give it a time limit of how long we want the packet captured. A. Lest we also have the option of selecting protocols the local I P address in port or the remote I p address import.
07:23
So if you want to just try to narrow down the packet, capture to a specific system port or I p address, you can definitely do that
07:30
and filter out all the other traffic that you may not be concerned about.
07:36
Next, we have connection Troubleshoot.
07:40
This is going to try to make a direct TCP connection from one virtual machine to another, or to other Resource is like an f k d N r I p v for a dress
07:49
already got webo one selected, and we're gonna check our connection to Web 03 where I have a basic website running and I s over Port 80.
08:01
Now, this connective D check does take a minute or so because it goes through 30 iterations of the test.
08:09
After a pause in the video and we're back, we'll take a look here at our results. And it does say that this is unreachable over Port 80.
08:16
We can see why it took so long. There were 30 probe sent, and all 30 of them failed. In addition to the grid view, we have the option for a topology view.
08:28
Just give us a very simple diagram of the network path that tried to take
08:33
obviously a name or complicated scenario. This graph would probably be a lot more interesting.
08:39
Finally, let's go take a look at our NSG flow logs.
08:43
Here, you can configure your virtual machines to save these log files to a configured storage account.
08:48
Let's go check out how to configure this.
08:52
You change your status to on.
08:54
You'll select a flow long version one or two. Version two is going to give you a little bit more information other than just the I P address. And if it was loud or denied.
09:03
Next, you select a storage account to save the data, too,
09:11
and if you want to enable Traffic Analytics
09:18
that does it for a demo on the network watcher and the diagnostic tools we have available inside of it. Let's jump back to the slides and wrap this up.
09:26
That does it for this episode. Coming up next, we're going to take a look at some additional identity and security topics with an introduction to roll based access Control. 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