Share via

Virtual machine is slow

Justine Yamane 0 Reputation points
2026-06-16T20:45:39.5433333+00:00

how do we trouble shoot why our virtual machine is running so slow?

Azure Virtual Machines
Azure Virtual Machines

An Azure service that is used to provision Windows and Linux virtual machines.


2 answers

Sort by: Most helpful
  1. Jose Benjamin Solis Nolasco 8,241 Reputation points Volunteer Moderator
    2026-06-16T21:35:25.2333333+00:00

    Welcome to Microsoft Q&A

    Hello @Justine Yamane

    Microsoft has a built-in tool that will figure it out for you,

    Here is the easiest way to troubleshoot:

    Open your Virtual Machine in the Azure Portal.

    Scroll down the left menu until you find Performance diagnostics (under the Help/Troubleshooting section).

    Click the button to Install and Run a diagnostic test.

    1. Choose the "Performance Analysis" option and let it run for a few minutes while the machine is acting slow.
    2. Once it finishes, it will generate a very easy-to-read report. It will tell you exactly what is slowing the machine down. For example, it might tell you "Your disk is maxed out" or "An antivirus program is using 99% of your CPU."

    If the report shows you are simply maxing out the machine's limits, you will just need to click "Size" on the left menu and upgrade the VM to a slightly larger size!

    😊 If my answer helped you resolve your issue, please consider marking it as the correct answer. This helps others in the community find solutions more easily. Thanks!

    Was this answer helpful?

    0 comments No comments

  2. AI answer

    2026-06-16T20:46:02.3233333+00:00

    Use Azure’s built-in monitoring and diagnostics to identify which resource is the bottleneck (CPU, memory, disk, or network), then remediate based on what’s high.

    1. Enable and review VM diagnostics
    • In the Azure portal, open the VM.
    • Under Monitoring, select Diagnostics settings.
    • Select a storage account and enable guest-level monitoring.
    • This lets Azure collect performance counters from inside the VM for deeper analysis.
    1. Check CPU utilization
    • In the VM’s Monitoring section, open Metrics.
    • Set the time range to cover when the VM feels slow.
    • In Metric, select CPU Percentage.
    • Interpret trends:
      • Spiking: May be scheduled tasks or periodic jobs. Confirm if this is expected.
      • Spike up and constant: Often a new or changed workload. Identify which process is consuming CPU.
      • Constant high: Check if the VM has always run at this level; if not, find the process causing it.
      • Steadily increasing: May indicate inefficient code or growing workload.
    1. Remediate high CPU
    • If CPU stays above ~95%:
      • For immediate relief, resize the VM to a SKU with more vCPUs.
      • In the OS, identify and troubleshoot the high-CPU process (optimize code, adjust workload, or move part of the load elsewhere).
    • If CPU is still ~95% after resizing, verify whether throughput or performance actually improved; if not, focus on application-level troubleshooting.
    1. Check storage and disk performance
    • For unmanaged disks:
      • In the VM blade, go to Settings → Disk and note the storage account.
      • Open that storage account → Metrics to review I/O-related metrics.
    • Look for signs of I/O bottlenecks (high latency, low throughput relative to expectations) and consider:
      • Moving to higher-performance disks.
      • Distributing I/O across more disks.
      • Optimizing application I/O patterns.
    1. Validate VM size vs. workload (CPU, memory, network)
    • Ensure the VM size provides enough RAM and network bandwidth for the workload:
      • Memory: Choose a VM size with sufficient RAM for what’s configured and in use.
      • Network: VM size determines network bandwidth; if migrated from on-premises (often 10 Gbps), pick a size that meets throughput needs. In many cases, VM or disk throughput limits, not the network, are the bottleneck.
    1. Use PerfInsights for deeper analysis
    • PerfInsights is recommended for Azure VM performance issues.
    • It analyzes CPU, memory, and I/O and provides best-practice recommendations.
    • From the Azure portal:
      • Go to the VM blade and select Performance diagnostics, then install and run PerfInsights (installs as an extension).
      • Or go to Diagnose and Solve Problems → VM Performance Issues → Troubleshoot to launch the same tool.
    • After it runs, download and review the report for identified bottlenecks and remediation guidance.

    By following these steps—enabling diagnostics, checking CPU and storage metrics, validating VM size, and running PerfInsights—it’s possible to systematically identify why an Azure VM is slow and apply targeted fixes.


    References:

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.