I need a log analytics query that will tell me whether a particular SQL database is available or not. In some instances, database was down. We would like to create an alert using a query in case database is not available. Can anyone help with this?
I used Azure functions to query a SQL database and then send the result to Azure Log Analytics
This is the website I used as a reference