Inspecting Network Traffic from VM1 to VM2 in Azure: A Step-by-Step Guide

Inspecting Network Traffic from VM1 to VM2

Question

Note: This question is part of a series of questions that present the same scenario. Each question in the series contains a unique solution that might meet the stated goals. Some question sets might have more than one correct solution, while others might not have a correct solution.

After you answer a question in this section, you will NOT be able to return to it. As a result, these questions will not appear in the review screen.

You manage a virtual network named VNet1 that is hosted in the West US Azure region.

VNet1 hosts two virtual machines named VM1 and VM2 that run Windows Server.

You need to inspect all the network traffic from VM1 to VM2 for a period of three hours.

Solution: From Performance Monitor, you create a Data Collector Set (DCS).

Does this meet the goal?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B.

B

You should use Azure Network Watcher.

https://docs.microsoft.com/en-us/azure/network-watcher/network-watcher-monitoring-overview

The solution provided does not meet the goal of inspecting all the network traffic from VM1 to VM2 for a period of three hours.

Creating a Data Collector Set (DCS) using Performance Monitor can collect various types of performance-related data, but it is not designed for capturing network traffic. Performance Monitor can only capture performance counters related to CPU, memory, disk, and network utilization. Therefore, this solution is not suitable for capturing network traffic between virtual machines.

To inspect all network traffic between VM1 and VM2 for a period of three hours, you can use Azure Network Watcher. Azure Network Watcher is a network monitoring and diagnostic service that provides tools to monitor, diagnose, and gain insights into your network performance and health.

To capture network traffic between VM1 and VM2 for three hours using Azure Network Watcher, you can follow these steps:

  1. Enable Network Watcher on VNet1 if it is not already enabled.

  2. Create a Network Watcher connection monitor between VM1 and VM2. This will allow you to monitor the network connection between the two virtual machines.

  3. Start a packet capture session using the Azure Network Watcher packet capture feature. Specify the source and destination IP addresses for VM1 and VM2 and the duration of the capture, which is three hours in this case.

  4. Save the captured packet data to Azure Storage or download it to your local machine for analysis.

By following these steps, you will be able to inspect all the network traffic between VM1 and VM2 for a period of three hours.