no data in App Insights

Owin Gruters 6 Reputation points
2021-09-07T12:09:35.913+00:00

I have been waiting 6 days now for MS to answer my support ticket in this.

My webapp with .net (framework) code deployed on it and Agent-based application monitoring is turned on as described here (https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-web-apps?tabs=net#enable-application-insights) . But AI is not giving any data. I checked all the settings and they seem correct, but there is nothing. Also on live telemetry I get this error "Not available: your app is offline or using an older SDK".

These are the appsettings:

[
{
"name": "APPINSIGHTS_INSTRUMENTATIONKEY",
"value": "xxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxx",
"slotSetting": true
},
{
"name": "APPINSIGHTS_PROFILERFEATURE_VERSION",
"value": "1.0.0",
"slotSetting": true
},
{
"name": "APPINSIGHTS_SNAPSHOTFEATURE_VERSION",
"value": "1.0.0",
"slotSetting": true
},
{
"name": "APPLICATIONINSIGHTS_CONNECTION_STRING",
"value": "InstrumentationKey=<secret>",
"slotSetting": false
},
{
"name": "ApplicationInsightsAgent_EXTENSION_VERSION",
"value": "~2",
"slotSetting": true
},
{
"name": "DiagnosticServices_EXTENSION_VERSION",
"value": "~3",
"slotSetting": true
},
{
"name": "InstrumentationEngine_EXTENSION_VERSION",
"value": "~1",
"slotSetting": true
},
{
"name": "SnapshotDebugger_EXTENSION_VERSION",
"value": "~1",
"slotSetting": true
},
{
"name": "UmbracoServerRegister",
"value": "slave",
"slotSetting": false
},
{
"name": "WEBSITE_ENABLE_SYNC_UPDATE_SITE",
"value": "true",
"slotSetting": false
},
{
"name": "XDT_MicrosoftApplicationInsights_BaseExtensions",
"value": "disabled",
"slotSetting": true
},
{
"name": "XDT_MicrosoftApplicationInsights_Java",
"value": "1",
"slotSetting": false
},
{
"name": "XDT_MicrosoftApplicationInsights_Mode",
"value": "recommended",
"slotSetting": true
},
{
"name": "XDT_MicrosoftApplicationInsights_NodeJS",
"value": "1",
"slotSetting": true
},
{
"name": "XDT_MicrosoftApplicationInsights_PreemptSdk",
"value": "disabled",
"slotSetting": true
}
]

Azure Monitor
Azure Monitor
An Azure service that is used to collect, analyze, and act on telemetry data from Azure and on-premises environments.
2,825 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Monalla-MSFT 11,961 Reputation points
    2021-09-15T16:44:22.437+00:00

    @Owin Gruters - Thanks for reaching out.

    Based on the information provided, please check the below things to ensure you are getting the data in AI.

    • The applicationinsights.config is configured with your instrumentation key.
    • The applicationinsights.config is being deployed to WebApps.
    • All the necessary telemetry modules are in your web.config

    Also there might be chance that this config has set to a value "MOBILESERVICESDOTNET_EXTENSION_VERSION" = 1.0.111" , try deleting that config and see if that helps resolve your issue.

    Meanwhile until its fixed, as a workaround, you can use Logs feature or Search feature in application insights in azure portal. From there, you can also see these logs.

    Also take a look at this document for more reference of troubleshooting : asp-net-troubleshoot-no-data

    0 comments No comments