如何为 Azure Application Insight 创建或查找 API 键?

How to create or find the API key for Azure Application Insight?

我已经在 Azure 上创建了一个免费帐户并为 Application Insight 创建了一个新实例。我的想法是记录我的 asp.net web API 项目中的错误。我打算手动配置我的网站 API 以使用此应用程序洞察实例。为此,我需要一个 API 密钥来连接到 App Insight。我按照这个文档 https://dev.applicationinsights.io/documentation/Authorization/API-key-and-App-ID 找到了它。但是,当我单击设置时,我没有看到“创建 API 密钥”的任何 link。我创建了几个新实例,但在任何地方都找不到 API 键。我唯一能找到的就是订阅 ID。

您不必创建新密钥,如果您已经创建了应用程序洞察,则只需导航到实例

Open -> Goto Overview Blade -> Copy the Instrumentation key

Application Insights 实例 -> API 访问 -> 创建 API 密钥