How to create an alerte over a long period of time in Azure

Quentin Levasseur 0 Reputation points
2025-02-03T15:50:21.1366667+00:00

I am trying to create an alert that triggers if a backup process has not happen over the last 3 days (backup period). I have sett my service to create a custom event when the backup starts and created a query that looks for this event in the last 3 days. when i run it manually it works flawlessly but when the alert runs it, the Time range defined by the query get overridden and the alert has false triggers continuously. Any idea how i could make it work ?

Here is my query:

customEvents
| where name == "MyEventName"
| where timestamp >= ago(3d)
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,457 questions
{count} votes

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.