An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
Hi salilsingh,
Thanks for reaching out to Microsoft Q&A.
In the below query I have added 'alert run interval' parameter and i believe this would work for your requirement, but make sure to tweak it accordingly when running this. Test this and let me know.
let storage_percentage_threshold = 90;
let alert_run_interval = 5m;
AzureDiagnostics
| where Category =="ResourceUsageStats"
| where TimeGenerated > ago(alert_run_interval)
| summarize (TimeGenerated, calculated_storage_percentage) = arg_max(TimeGenerated, todouble(storage_space_used_mb_s) *100 / todouble (reserved_storage_mb_s))
by ResourceId
| where calculated_storage_percentage > storage_percentage_threshold
Please Upvote and Accept as answer if the reply was helpful.