Bot Builder - Application Insights 在 Azure 上更改资源组后中断
Bot Builder - Application Insights broken after changed Resource group on Azure
我正在使用托管在 Azure 上的 .NET SDK 构建一个机器人。我最近按照本指南将 Application Insights 添加到我的应用程序中 -
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-asp-net
这很简单,但是我使用我没有足够权限的资源组启动了 App Insights。我更改了资源组,之后一切都崩溃了。我尝试将 'ApplicationInsights.config' 中的更改为新密钥(因为应用洞察现在位于新资源组中)
我试图通过卸载相关的 NuGet 包和依赖项来删除 Application insights,但这也不起作用,所以我将我的项目回滚到早期的副本,其中包含我的应用程序的原始 application insights 文件。
基本上,我需要帮助重新配置我的 Application Insight 设置以连接到新的资源组
最简单的答案是使用该菜单中的 "Configure application insights" 菜单项?
这将调出配置 window 并让您通过 UI 选择新资源。
不过,如果您删除了内容并删除了程序包,该项目可能会消失。
那行不通,它试图访问的资源在您的 .csproj
文件中,例如
<ApplicationInsightsResourceId>/subscriptions/[subscriptionid]/resourcegroups/[resourcegroupname]/providers/microsoft.insights/components/[appname]</ApplicationInsightsResourceId>
您可以手动将其编辑为新的资源 ID,并手动更新检测密钥。配置 window 为您完成 两者。
我正在使用托管在 Azure 上的 .NET SDK 构建一个机器人。我最近按照本指南将 Application Insights 添加到我的应用程序中 -
https://docs.microsoft.com/en-us/azure/application-insights/app-insights-asp-net
这很简单,但是我使用我没有足够权限的资源组启动了 App Insights。我更改了资源组,之后一切都崩溃了。我尝试将 'ApplicationInsights.config' 中的更改为新密钥(因为应用洞察现在位于新资源组中)
我试图通过卸载相关的 NuGet 包和依赖项来删除 Application insights,但这也不起作用,所以我将我的项目回滚到早期的副本,其中包含我的应用程序的原始 application insights 文件。
基本上,我需要帮助重新配置我的 Application Insight 设置以连接到新的资源组
最简单的答案是使用该菜单中的 "Configure application insights" 菜单项?
这将调出配置 window 并让您通过 UI 选择新资源。
不过,如果您删除了内容并删除了程序包,该项目可能会消失。
那行不通,它试图访问的资源在您的 .csproj
文件中,例如
<ApplicationInsightsResourceId>/subscriptions/[subscriptionid]/resourcegroups/[resourcegroupname]/providers/microsoft.insights/components/[appname]</ApplicationInsightsResourceId>
您可以手动将其编辑为新的资源 ID,并手动更新检测密钥。配置 window 为您完成 两者。