Perf command not executing

Vijay Paul 21 Reputation points

Hi Team,

Im running this command to get the performance of a disk to add an alert for a VM, the command is below :

Perf | where ObjectName == "LogicalDisk" and CounterName == "Current Disk Queue Length" and Computer == "MyComputerName" | summarize AggregatedValue = avg(CounterValue) by InstanceName**

and no results are returned, I have executed perf for all related performance data but still not results.

Please could you advise what may be the issue?

Kind Regards,

Vijay Paul

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,782 questions
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,065 questions
0 comments No comments
{count} votes

Accepted answer
  1. tbgangav-MSFT 10,381 Reputation points

    Hi @Vijay Paul ,

    I would recommend to check if there are any Azure Virtual Machines successfully connected to your log analytics workspace or not. To do that, please go to "Virtual machines" tile under your log analytics workspace as shown in below screenshot and validate if the connection shows "This workspace" or not.


    If the connection shows as "This workspace" then I would recommend to check if you have successfully configured performance counters under "Agents configuration" tile of your log analytics workspace or not. For more details with regards to it, please refer this Azure document. Also, please check below screenshot for illustration.


    If your virtual machine is successfully connected to your log analytics workspace and if you have already configured required performance counters and still see no results then next step would be to troubleshoot using instructions provided in this and this Azure documents.

    If you still see the issue then the recommendation is to reach Azure support for quick resolution. In that regards, here are the steps to raise a support ticket with Azure technical support team if you already have a support plan. But if you don't have a support plan, then please send mail to with your subscription ID and a link of this question for context and we will assist you with engaging Azure technical support.

    0 comments No comments

2 additional answers

Sort by: Most helpful
  1. suvasara-MSFT 9,996 Reputation points

    @Vijay Paul , By default Perf command works while implementing Kusto queries in Azure log analytics workspace. There should be some issue in the query call mentioned above. I would recommend you to just try "Perf" alone to make sure command is working fine. Then try extending the grep commands accordingly.

  2. Vijay Paul 21 Reputation points

    Hi Guys,

    Thank you I was able to get the pref command to work.

    Kind Regard

    Vijay Paul