如何在 Azure Monitor Alert 上配置操作组以使用可编译(C# 或 F#)Azure 函数

How to configure Action Group on Azure Monitor Alert to use compilable (C# or F#) Azure Function

我正试图弄清楚如何配置 Action Group to use Azure Function。文档说:

Calls an existing HTTP trigger endpoint in Azure Functions.

You may have a limited number of Function actions in an Action Group.

所以我已经尝试过:

我的偏好实际上是在这里使用 F#,这就是我试图弄清楚的原因(我知道我可以使用 fsx 然后它可能会很好,但是我想使用编译的应用程序,如果它不可能知道为什么)

我测试了来自邮递员的每个应用程序的调用和端点,每次都很好。我还尝试了函数和匿名授权级别。

并且说该操作不起作用我的意思是:

我还尝试通过放置 Azure Function 端点来配置 Webhook 操作,但它也不起作用。你明白为什么会这样吗?

我明白了,问题是在可编译版本中我没有处理 post 动词。添加后一切正常