I have tried creating metrics alert based on custom log query by using az command line tool. What I have managed to so far is to;
- saving custom log query
- creating action group for sending alert information
What I have not managed to do is to create alert by using az monitor metrics alert create command so that it is based on number of results the saved loq query returns. Is it possible to create metric alert based on custom log query by using az command line tool?