为什么无法将 Application Insights 与 Azure Function 一起使用?

Why unable to use Application Insights with Azure Function?

我正在另一个资源组中重新创建 Azure 函数。

规格:

问题:

错误:

Application Insights code-less monitoring isn't supported with your selections of subscription, runtime stack, operating system, publish type, region, or resource group. If you want to keep these selections, you can use the Application Insights SDK to monitor your app.

这是为什么?我实际上是在复制我已经在另一个 RG 中创建的资源,它确实启用了 App Insights。

正如您在评论中提到的,这是一个暂时性问题。有时azure portal会出现一些奇怪的问题,你可以新建一个资源或者隔天再试。

对于您的问题,即使在创建函数应用时由于某些问题无法创建应用洞察,您也可以在创建函数应用后link创建应用洞察。