More Info:

Ensure that Performance Diagnostics feature is enabled for your Microsoft Azure virtual machine instances in order to help mitigate VM performance issues. Performance Diagnostics installs a VM extension that runs a self-help diagnostics tool named PerfInsights, available for both Windows and Linux operating systems. PerfInsights can collect and analyze diagnostic information such as virtual machine hardware and storage configuration, various log files, OS information, PCI device information, guest OS log files, configuration files, information about running processes, virtual machine instance disk, memory, CPU usage, and networking information.

Risk Level

Medium

Address

Security

Compliance Standards

CBP

Triage and Remediation

Remediation

To enable Performance Diagnostics for Azure Virtual Machines, you can follow the below steps:

  1. Log in to the Azure portal (https://portal.azure.com/).

  2. In the left-hand menu, click on “Virtual machines”.

  3. Select the virtual machine that you want to enable Performance Diagnostics for.

  4. In the virtual machine menu, click on “Diagnostic settings” under the Monitoring section.

  5. Click on the “Add diagnostic setting” button.

  6. In the “Add diagnostic setting” blade, give a name to the setting.

  7. Under “Metrics”, select the “Performance counters” option.

  8. Click on the “Add +” button to add a new performance counter.

  9. In the “Add performance counter” blade, select the desired counter from the list.

  10. Click on the “Add” button to add the performance counter.

  11. Under “Logs”, select the “Performance counters” option.

  12. Click on the “Add +” button to add a new performance counter.

  13. In the “Add performance counter” blade, select the desired counter from the list.

  14. Click on the “Add” button to add the performance counter.

  15. Click on the “Save” button to save the diagnostic setting.

Once you have completed the above steps, Performance Diagnostics will be enabled for the selected Azure virtual machine. You can view the collected metrics and logs in the Azure portal by navigating to the “Metrics” and “Logs” sections respectively.