The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

Post a new question

0 votes
Charlie Misonne
Community Champion
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.

TAGS
AUG Leaders

Atlassian Community Events