Sep 07 2020
- last edited on
Apr 08 2022
I have got a custom query alert setup for disk space warning at the moment, which alerts if it is below 15%.
Is there any way my alert can be more automated.
For instance, if the space of the server has grown over two days. I should get both values what the value was before, and what is now.
For example say it was 12 % for four days and it was grown by 3% next day.
Sep 11 2020 06:29 AMSolution
This is not possible out of the box as alerts has time window of maximum 24 hours. You can potentially make your own automation by using one of these:
- Azure Automation
- Logic App
- Azure Function
In any of these services you can write runbook/script/workflow that performs the following actions
- Logins to Azure
- Executes a query that gets the free disk space for the day before
- Executes a query that gets the free disk space for the current day
- Make comparison of the results and based on them configure some other automation like e-mail or something else.