azureazure-logic-appsazure-billing-apiazure-logic-app-standard

How to trigger a single logic app for send different emails as per Azure Budget Action Group conditions


I have created an Azure Budget which is mapped to an Action group. I have created a Logic App to send different emails with different email structures on different budget threshold example 50% , 75% etc. Not able to understand, How to trigger a single logic app for sending different emails as per Azure Budget Action Group conditions.


Solution

  • I followed the Microsoft article mentioned by Vijaya. What it lacks is you need to convert the NotificationThresholdAmount object from the incoming JSON data to integer as the conditions are going to want it as such for comparison with your defined threshold numbers.

    For the same you can use Compose Action for converting the incoming NotificationThresholdAmount to integer which would come as string.

    The condition i used was something like this int(body('Parse_JSON')['?']['NotificationThresholdAmount'])

    enter image description here