monitor and alert low disk on azure VM

Amato, Andy 0 Reputation points
2025-03-18T14:31:30.2633333+00:00

I'm looking to set up an alert when disk space gets low on my Azure Virtual machine. What's the best way to do this?

Windows for business | Windows Server | User experience | Other
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Sumit 1,241 Reputation points Volunteer Moderator
    2025-03-18T14:37:46.3533333+00:00

    To set up an alert for low disk space on an Azure Virtual Machine, follow these steps:

    Navigate to the Azure Portal: Log in to the Azure portal and select the virtual machine you want to monitor.

    Go to Monitoring: In the VM's resource page, locate the Monitoring section.

    Create Alert Rule:

    Click on "Create alert rule."

      Under the *Condition* tab, select "Metrics" as the signal type.
      
         Choose a metric related to disk space, such as "% Free Space" or "Free Megabytes."
         
         **Set Threshold**: Define the threshold value for triggering the alert (e.g., below 10% free space).
         
         **Configure Actions**:
         
            In the *Actions* tab, specify what should happen when the alert is triggered, such as sending notifications via email or SMS.
            
    
    1. Finalize and Create: Provide a name and description for your alert rule, then click "Create" to finalize it1

    For more granular monitoring (e.g., per disk), you can use KQL (Kusto Query Language) queries in Log Analytics Workspace. Configure diagnostic settings on your VM to collect performance data and write a custom query targeting specific disks.

    Citations:

    1. https://turbo360.com/blog/avoid-downtime-with-azure-vm-disk-space-alerts-best-practices
    0 comments No comments

  2. Amato, Andy 0 Reputation points
    2025-03-25T19:22:44.2533333+00:00

    i got to the step where i select a signal but the options you are suggesting do not exist...

    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.