Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Use Opsgenie alert from prometheus to trigger Azure vm restart

Jerald Sirmans
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
March 11, 2024

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?

1 answer

0 votes
Charlie Misonne
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
March 11, 2024

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events