Troubleshooting Slow Performance on Azure Virtual Machine | Exam AZ-303 Solution

Capture Network Trace on Azure Virtual Machine (VM) to Improve Performance

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

The correct answer is A. From the VM1 blade, configure Connection troubleshoot.

Explanation: If you discover that a virtual machine in Azure is performing slower than expected, you may need to capture a network trace to diagnose the root cause. In Azure, you can capture a network trace on a virtual machine using the Connection troubleshoot feature.

To capture a network trace on a virtual machine in Azure, follow these steps:

  1. Open the Azure portal and navigate to the virtual machine blade for the virtual machine you want to capture a network trace on.
  2. On the virtual machine blade, select the Connection troubleshoot option.
  3. In the Connection troubleshoot pane, select the Start button under the Network capture section.
  4. The network capture will start and run for a specified period of time, after which you can stop the capture and download the capture file for analysis.

Option B, configuring performance counters, can be useful for monitoring the performance of a virtual machine, but it will not capture a network trace.

Option C, installing performance diagnostics and running advanced performance analysis, is not necessary to capture a network trace and will not help diagnose network-related issues.

Option D, configuring the log level of the diagnostic agent, is not directly related to capturing a network trace and will not help diagnose network-related issues.