Azure VM not generating alerts for DISK . Not getting data in Log analytics

coolqwerty 21 Reputation points
2022-08-20T08:47:52.41+00:00

Azure VM not generating alerts for DISK . Not getting data in Log analytics

Checked - Extension health - It is healthy
Checked - MMA inside the VM with no error .Running fine.

But still i don't see heartbeat recieve in log analytics.

I see test cloud connection failure but same failure i see on other VM but there it is reporting the heartbeat and alerts fine without any issue

Please help

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,320 questions
Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,257 questions
Azure Update Manager
Azure Update Manager
An Azure service to centrally manages updates and compliance at scale.
315 questions
{count} votes

3 answers

Sort by: Most helpful
  1. Manu Philip 18,681 Reputation points MVP
    2022-08-20T11:26:02.977+00:00

    I suggest you to try the following query and if it works well, create a custom alert rule with the query

    Go to Log Analytics Workspace > Logs > Run the following query
    The following query shows the azure virtual machine with less than 100GB disk

    InsightsMetrics  
    | where Name == "FreeSpacePercentage"  
    | summarize arg_max(TimeGenerated, *) by Tags  
    // arg_max over TimeGenerated returns the latest record  
    | project TimeGenerated, Computer, Val, Tags  
    | where Val < 100  
    

    ----------

    --please don't forget to upvote and Accept as answer if the reply is helpful--


  2. David Broggy 5,906 Reputation points MVP
    2022-08-21T04:04:05.727+00:00

    Hi Coolprash,

    Do you have any logs showing up in the disk's Activity Log? If not, then you shouldn't expect to see anything in log analytics.

    Maybe take a step back and please verify this is how you configured logging?

    Azure VM > [your disk] > Activity Log > Export Activity Logs > + Add Diagnostic Setting

    233155-image.png


  3. Maxim Sergeev 6,571 Reputation points Microsoft Employee
    2022-08-22T23:44:47.793+00:00

    Hi there,

    Are you sure that you MMA is configured correctly and it's reporting to a right Log Analytics workspace? Can you compare workspace ids on both Virtual Machines?
    You can check it in Control Panel

    233804-image.png

    0 comments No comments

Your answer

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