Is it possible to use the Opsgenie integration with Azure to trigger an Azure vm restart when Opsgenie receives an alert from Prometheus. If so, is there any documentation to support the setup process?
Hi Jerald,
I don't think there is be an out of the box action to trigger a VM restart.
But if your alert contains the right data you could extract it and use Azure's REST API to perform the restart.
--> REST API Documentation
You will need the subscriptionID, resourceGroupName and vmName. And of course the authentication details.
That's what I would give a chance but I don't have an environment to try it out myself at the moment.
It looks like you're new here. Sign in or register to get started.