question

DebasishMisra-9478 avatar image
0 Votes"
DebasishMisra-9478 asked bharathn-msft answered

How can I send alerts to an authenticated endpoint?

All,

I am trying to send the azure alerts to an authenticated endpoint. Can anyone please let me know if we can configure some sort of Auth header in webhooks in the action groups of the alerts?

azure-monitor
· 4
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@DebasishMisra-9478 Welcome to Microsoft Q&A. Thanks for reaching out with your query.

Trying to better understand your requirement , you want to invoke a webhook in a secured way, which should in turn invoke an authenticated endpoint outside azure for which you want to pass on the auth headers as part of webhook call ?

0 Votes 0 ·

Hi @bharathn-msft , yes this is what my requirement is. Is there any way where I can add an auth header?

0 Votes 0 ·

@DebasishMisra-9478 My sincere apologies for delay in getting back to this thread.

Currently using Azure Active Directory you can authenticate your webhook connection as per steps documented here.

Using the webhook action requires that the target webhook endpoint either doesn't require details of the alert to function successfully or it's capable of parsing the alert context information that's provided as part of the POST operation. If the webhook endpoint can't handle the alert context information on its own, you can use a solution like a Logic App action for a custom manipulation of the alert context information to match the webhook's expected data format.

Hope the information helps, please revert back if you have any additional queries.

0 Votes 0 ·

@DebasishMisra-9478 Checking in to see if you had a chance to review above comment and have any further queries. Thanks

0 Votes 0 ·

1 Answer

bharathn-msft avatar image
0 Votes"
bharathn-msft answered

<<Resurfacing the information from comments to here for broader community usage>>

Currently using Azure Active Directory you can authenticate your webhook connection as per steps documented here.

Using the webhook action requires that the target webhook endpoint either doesn't require details of the alert to function successfully or it's capable of parsing the alert context information that's provided as part of the POST operation. If the webhook endpoint can't handle the alert context information on its own, you can use a solution like a Logic App action for a custom manipulation of the alert context information to match the webhook's expected data format.

Hope the information helps, please revert back if you have any additional queries.



5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.