azureazure-logic-apps

Azure Logic Apps - Condition Notify issue


I actually wish to get notified on my VM Stop logic app but I am stuck with getting a status when a VM is successfully stopped or failed. I always get only Failed message so I guess I put wrong condition in the flow.

Setup:
Condition
enter image description here

parameter

enter image description here

I tried various setups none working.


Solution

  • Below design worked for me:

    Firstly, just add outlook action and then a parallel path after Deallocating action :

    enter image description here

    Then again add send an email option:

    enter image description here

    In code view in second email action change the run after to failed:

    enter image description here

    Now the design changes to dotted line:

    enter image description here

    Leave the first one as Succeeded only.

    Output:

    enter image description here

    enter image description here