Enable Application insights in AppService

juan maximiliano aguilar abanto 521 Reputation points
2020-01-02T04:02:24.993+00:00

I would like to enable Application insights in appservices..

I have a web api and my configuration is:

alt text

alt text


In the appservice of the SPA app. I have the configuration:

alt text

I don't know if my settings are correct.

Azure App Services
Azure App Services
A feature of Azure App Service used to create and deploy scalable, mission-critical web apps.
4,325 questions
No comments
{count} votes

2 answers

Sort by: Most helpful
  1. Joffrey NURIT 196 Reputation points
    2020-01-02T08:36:02.257+00:00

    Hi @juan maximiliano aguilar abanto ,

    You have to create a App Insight service in Azure first. When you go on your app service, you have an instrumentation key.
    you need to set this instrumentation key in you app service config (actually, is empty in your screen. The first line) and / or set this key in your code (in appsettings file if you have a standard app, directly in your telemetry service if you use workers).
    alt text

    No comments

  2. xequence 6 Reputation points
    2020-01-02T05:42:06.497+00:00

    Did you set it up from your IDE (Visual Studio?) It is simple to setup using the GUI IDE (Right click project --> Application Insights -->Configure Application Insights) You will know it is working when you go into Azure Cloud Shell and use this command to check --> Get-AzureRmApplicationInsights, this will show you what app is connected and help. See https://learn.microsoft.com/en-us/powershell/module/azurerm.applicationinsights/get-azurermapplicationinsights?view=azurermps-6.13.0 for further reference.

    No comments