How do I trigger a function (secured at Authorization.Admin level) from Application Insights?

Suzanne K 6 Reputation points
2020-11-18T14:52:43.677+00:00

Hi!

I've written a function that is triggered as part of an alert/action group in Application Insights. I've secured this function at Admin level with a Host key. How do I pass the Host key to Application Insights so that it is allowed to trigger the secured function?

Thanks!
Suzanne

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

1 answer

Sort by: Most helpful
  1. Krish G 2,331 Reputation points
    2020-11-20T11:36:05.627+00:00

    When you configure Function in the Action Group, Azure would take care of calling the Function with required key automatically when the action group is triggered from an alert. For example, below is my sample alert execution which triggered an action group calling a Function protected at Admin level. But do let me know if you are facing any issue in your case.

    41466-image.png

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.