如何将 Azure Webapp start/stop 事件获取到 Azure Functions

How to get Azure Webapp start/stop events to Azure Functions

我有一个要求,当 webapp 启动或停止时,我的 azure 函数应该被调用。我已经通过 Azure Grid Events,使用订阅作为资源组,但它没有捕获 WebApp 上的任何事件。所以不会调用 Azure Function。 是否可以使用事件网格实现此目的?我不想创建使用自定义事件。

Is it possible to achieve this using Event Grid? I dont want to create use Custom Events.

简而言之,目前无法做到这一点。我们可以从此 tutorial.

获得更多关于事件网格的信息

Currently, the following Azure services support sending events to Event Grid:

  • Azure Subscriptions (management operations)
  • Custom Topics
  • Event Hubs
  • IoT Hub
  • Resource Groups (management operations)
  • Service Bus
  • Storage Blob
  • Storage General-purpose v2 (GPv2)

注意:目前支持部分地区

正如 Thomas 提到的,您可以尝试将应用程序洞察与可用性监控警报相结合。