/ Insights / Azure VM Performance Diagnostics Insights Azure VM Performance Diagnostics August 19, 2019 ConcurrencyPerformance Diagnostics is an Azure tool to help diagnose performance-related problems with VMs. The tool installs the PerfInsights extension into your VM which is then used to collect configuration and performance-related data on-demand. This data is automatically compiled into an easy-to-read report with potential issues highlighted.When to UsePerformance Diagnostics should be used if you suspect a VM is having a performance-related issue. Even if a VM is having an issue that doesn’t appear to be caused by poor performance, Performance Diagnostics can be used to rule it out quickly. The tool can detect the following things:Known issues and best practice adherenceDiagnostic dataHigh resource consumptionMore complex issuesAzure Files performance analysisPerformance Diagnostics is supported on Windows Server 2008 R2 and later with .NET 4.5 installed. It is also supported on CentOS, RedHat, Ubuntu, Debian, and SLES, but there are some limitations when run on Linux.Report TypesThere are 4 different types of scans to choose from so make sure you pick the right one for your scenario:Quick performance analysisCollects basic information and light performance countersChecks for best practices, known issues, and configuration problemsPerformance analysisCollects basic information and moderate performance countersChecks for best practices, known issues, configuration problems, and high resource usageAdvanced performance analysisCollects basic information and advanced performance dataChecks for best practices, known issues, configuration problems, and high resource usageThis test can negatively affect system performance and should only be run during a maintenance windowAzure Files analysisCollects basic information, moderate performance traces, and Azure Files-related informationChecks for best practices, known issues, configuration problems, and performance problems related to Azure FilesGetting StartedThe easiest way to get started is by visiting the Performance Diagnostics blade for the VM in the Azure Portal:On this page, click the “Run Diagnostics” button in the action bar:Select an analysis type and any additional options. Here, I’m running the Performance Analysis test for 60 seconds:Here, you can review the key details directly in the portal. In my example, I started a process that was CPU heavy to show a high CPU alert:For more detailed information, use the download report button at the top of the screen:This will download a zip file to your computer. Within the zip is a file named “PerfInsights Report.html” that contains more detailed information. Here are some example screenshots:Nothing can totally replace doing a manual in-depth review of the performance a server. However, Performance Diagnostics is a great way to do a quick review and discover common performance issues in Azure VMs, as well as collect more advanced data that can be reviewed.