Trigger notification and action when VM goes down

Shanmugam, Prabakar 20 Reputation points
2025-02-20T21:58:50.8433333+00:00

Trigger notification and action (ansible play book or standalone python script) when VM goes down. Our requirement is need to trigger an alert and action once vm shut down. I tried vm-poweroff-alert but I am not getting any alerts (email configured) when I stopped the vm from azure portal. Please let me know how can I achive this.

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
3,480 questions
0 comments No comments
{count} votes

Accepted answer
  1. Marcin Policht 36,440 Reputation points MVP
    2025-02-20T22:05:07.5266667+00:00

    Follow https://learn.microsoft.com/en-us/azure/azure-monitor/vm/tutorial-monitor-vm-alert-recommended


    If the above response helps answer your question, remember to "Accept Answer" so that others in the community facing similar issues can easily find the solution. Your contribution is highly appreciated.

    hth

    Marcin


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.