Hi there, Bruno Gabrielli here again to talk about how to get alert notification using a Teams channel.
I apologize because this is going to be a long post with all the steps to achieve the...
Essentially I've copied the given example payload (which is for a VM) and replaced the alertContext block with that of the Availability tests so now my payload looks like this:
I guess at the time of writing this tutorial, there was a "Post a message (V3) (Preview)" Teams task but as I can't find that, I'm using the "Post message in a chat or channel" with (for a test) just a couple of Dynamic Content fields, severity and description:
However, with the above test example I'm not getting any data in the Teams channel:
This drives me nuts and also the idea of having to create multiple payloads for different alert types is a little bit discouraging.
Also, when using conditions with that Switch and the monitoringService Platform, well in my case I use all three types of metric alerts (Static threshold, Dynamic threshold and Availability tests) so I wonder how that can be handled.
I know I'm jumping ahead a little, at the moment I can't even get the Availability tests right... 😄😞