Set up alerts so that they either call the Application Rest API or send a message to the Service Bus

Ramesh Reddy Seelam 0 Reputation points

Team, I need to set up alerts for one of the Azure Services i.e Postgres Flexible Server when the services Start, Stop and Restart. In the action either i need to Invoke my application end point with data or Publish a message through Service Bus. For both option I could not find a way. Could you please help me with the issue.

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

1 answer

Sort by: Most helpful
  1. Sedat SALMAN 5,170 Reputation points

    Azure Monitor allows you to set up alerts for various Azure resources and send the alert data to various destinations. While Azure Monitor does not directly support sending alerts to an application endpoint or a Service Bus, there are ways to achieve this

    Option 1: Logic App

    You can use Azure Logic Apps as an intermediary to receive the alert and then either invoke your application endpoint (via an HTTP action) or send a message to the Service Bus. Here are the steps to set it up:

    Option 2: Azure Function

    Similarly, you can create an Azure Function that is triggered by an HTTP request. The function could then call your application endpoint or send a message to the Service Bus.

    0 comments No comments