Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
menu search
person
Welcome To Ask or Share your Answers For Others

Categories

Is it possible to create a logicapp that monitors a specific vm and sends an e-mail notification on poweroff/poweron or CPU usage % for example?
I've read into Event Grid, but it seems to cater more towards resource creation/deletion notifications rather than specific vm signals.
I also understand it would be possible to just add an alert on the vm, however these alerts don't seem to be customizable and we need to be able to customize the e-mail to send, something I know is possible to do with logicapps.
Thanks in advance!


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
236 views
Welcome To Ask or Share your Answers For Others

1 Answer

For this requirement, you can do it just by alert. But when you create action group in alert rule, do not chooose send email under "Notification" tab as below screenshot. enter image description here

Instead, choose "Logic App" under "Actions" tab as below screenshot shown and choose a logic app which you already created(with "When a HTTP request is received" trigger). enter image description here

The logic app with "When a HTTP request is received" trigger should be like: enter image description here Then you can customize the email in logic app "Send an email(V2)" action


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
thumb_up_alt 0 like thumb_down_alt 0 dislike
Welcome to ShenZhenJia Knowledge Sharing Community for programmer and developer-Open, Learning and Share
...