How to Troubleshoot High Memory Pressure on an Azure VM Using Performance Diagnostics

Recently, I had to troubleshoot a case of performance degradation on an Azure VM. The key symptom was high memory pressure, which in Azure means the system is under heavy strain to fulfill memory requests — often leading to lag, paging, and slow performance.

To get to the root cause, we used Azure Performance Diagnostics (PerfInsights) — a powerful and easy-to-use troubleshooting tool. Here’s how you can install and use it from the Azure Portal, without needing to log in to the VM.

How to Install Azure Performance Diagnostics

You don’t need RDP or any script — you can install the tool directly from the Azure Portal.

  1. Go to the VM in the Azure Portal

  2. In the left-hand menu, under Settings, click Extensions + applications

  3. Click + Add

  4. Search for and select Azure Performance Diagnostics

  5. Click Next, then configure the storage account and scenario:

    • Storage Account Name & Key: Required for storing diagnostic results

    • Performance Scenario: Choose e.g. Slow VM analysis

    • Trace Duration: 5–10 minutes is usually enough

  6. Click Review + Create to begin the diagnostics

How to View the Results

Once diagnostics complete:

  1. Go back to Extensions + applications

  2. Select AzurePerformanceDiagnostics

  3. Click View detailed status on the right-hand blade

  4. Inside the JSON output, find the SAS URL — it links to the diagnostic ZIP file

  5. Download and extract the ZIP. Open the file:

What You’ll See in the Report

The report is interactive and contains tabs for:

  • CPU, Memory, Disk, Network, CLR, and Windows

  • A Findings section summarising issues with severity

Alternative Way to View the Report

You can also return to Diagnose and solve problems > Performance diagnostics, and download the report directly from there if the extension was run through the portal.

Final Thoughts

PerfInsights is a must-have tool when dealing with VM slowness, unexplained spikes in CPU/memory usage, or high disk I/O. It helps:

  • Pinpoint which processes are consuming memory or CPU

  • Validate if your current VM size is adequate

  • Save hours of guesswork during incident response

If you’re troubleshooting a sluggish VM — start with Azure Performance Diagnostics. You’ll be surprised how much easier root cause analysis becomes.

Unknown's avatar

Author: João Paulo Costa

Microsoft MVP, MCT, MCSA, MCITP, MCTS, MS, Azure Solutions Architect, Azure Administrator, Azure Network Engineer, Azure Fundamentals, Microsoft 365 Enterprise Administrator Expert, Microsft 365 Messaging Administrator, ITIL v3.

Leave a comment