Capture Network Trace on Azure Virtual Machine | Exam AZ-303 Microsoft Azure Architect Technologies

Capture Network Trace on Azure Virtual Machine

Question

You create an Azure virtual machine named VM1 in a resource group named RG1.

You discover that VM1 performs slower than expected.

You need to capture a network trace on VM1.

What should you do?

Answers

Explanations

Click on the arrows to vote for the correct answer

A. B. C. D.

C

The performance diagnostics tool helps you troubleshoot performance issues that can affect a Windows or Linux virtual machine (VM). Supported troubleshooting scenarios include quick checks on known issues and best practices, and complex problems that involve slow VM performance or high usage of CPU, disk space, or memory.

Advanced performance analysis, included in the performance diagnostics tool, includes all checks in the performance analysis, and collects one or more of the traces, as listed in the following sections. Use this scenario to troubleshoot complex issues that require additional traces. Running this scenario for longer periods will increase the overall size of diagnostics output, depending on the size of the VM and the trace options that are selected.

https://docs.microsoft.com/en-us/azure/virtual-machines/troubleshooting/performance-diagnostics

To capture a network trace on an Azure virtual machine, you can use the Connection troubleshoot feature available on the VM blade. Therefore, the correct answer is option B.

Here is a detailed explanation of why this option is the correct answer and why the other options are incorrect:

Option A: From Diagnostic settings for VM1, configure the performance counters to include network counters. This option is not the correct answer because configuring performance counters to include network counters would not capture a network trace. Performance counters are used to monitor performance metrics such as CPU usage, memory usage, and network usage. While they can provide information on network usage, they would not provide a network trace.

Option C: From the VM1 blade, install performance diagnostics and run advanced performance analysis. This option is also not the correct answer because installing performance diagnostics and running advanced performance analysis would not capture a network trace. These tools are used to analyze performance data collected by Azure Monitor, which includes performance counters and other metrics. They would not capture a network trace.

Option D: From Diagnostic settings for VM1, configure the log level of the diagnostic agent. This option is also not the correct answer because configuring the log level of the diagnostic agent would not capture a network trace. The diagnostic agent is used to collect diagnostic data from the VM, such as performance counters and event logs. It would not capture a network trace.

Therefore, the correct answer is option B: From the VM1 blade, configure Connection troubleshoot. This feature allows you to capture a network trace on the virtual machine by selecting the appropriate network adapter and starting the trace. Once the trace is complete, you can download the trace file for analysis.