Application Insights alerts no longer have a custom JSON payload option

JB 21 Reputation points
2022-04-05T07:44:24.857+00:00

When creating a new alert for Application Insights I no longer see the option to add a custom JSON payload for a webhook action.
This used to work, and we use this to customize the messages sent to a Slack channel including information about what is going wrong, how to fix it, and links to relevant AI queries/dashboards.

Old alerts still have this data, but for new ones this option isn't anywhere in the creation wizard.

Is there another way to set up a custom JSON payload somehow for newly created alerts?

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,858 questions
0 comments No comments
{count} votes

Accepted answer
  1. SwathiDhanwada-MSFT 17,881 Reputation points
    2022-04-07T09:12:46.163+00:00

    @JB Welcome to Microsoft Q & A Community Forum. In regard to your request for an example on how to set a custom webhook payload within the UI, unfortunately this is not available as custom JSON-based webhooks are not supported within the latest API version, 2021-08-01, and this is the version that is used when creating new log alerts via the UI.

    However, as you are already aware, you can still create the previous version of log alerts outside of the UI utilizing API version 2018-04-16 and configuring your custom JSON payload as shown in this document.

    As a workaround, you can have an action group trigger a Logic app where you get the alert details through payload and then send an email notification as per your requirement. Refer here more details.

    I also would recommend you navigate here and share your feedback or suggestions directly with the responsible Azure feature team and clicking the vote button of your suggestion to raise visibility and priority on it.


0 additional answers

Sort by: Most helpful