How to Configure a Low Disk Space Alert on virtual machine scale set instance in Azure?

Farzana Mustafa 151 Reputation points
2024-05-03T05:51:53.8133333+00:00

Low Disk space alert can be created easily in Virtual machines > Monitoring > Alerts > Create an alert rule.User's image

However, could not find such option for VMSS instances. Is there a way to create an alert if an OS Disk (for example C drive) gets almost full in Windows server 2019 instance?

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,255 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
395 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,376 Reputation points
    2024-05-07T12:38:08.65+00:00

    @Farzana Mustafa, To monitor Virtual Machine scale set, similar configuration needs to be done as for the VM. The free disk space is a guest level metric which is available only when guest level monitoring is enabled after installing the Monitoring agent.

    The high-level steps are available below:

    1. Follow the steps available in the following link to install Azure Monitor Agent - Install Azure monitor agent or enable VM Insights on the VMSS.
    2. Once the agent is installed, by configuring the DCR, the metric data should be available in the LA workspace and metric explorer.
    3. The alert rule can be created for metrics as mentioned here - Create or edit a metric alert rule

    Hope this helps.

    If the answer did not help, please add more context/follow-up question for it.

    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.