question

juanmaximilianoaguilarabanto-6444 avatar image
0 Votes"
juanmaximilianoaguilarabanto-6444 asked ·

Enable Application insights in AppService

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-webapps
10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

xequence avatar image
0 Votes"
xequence answered ·

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://docs.microsoft.com/en-us/powershell/module/azurerm.applicationinsights/get-azurermapplicationinsights?view=azurermps-6.13.0 for further reference.

10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

JoffreyNURIT-4769 avatar image
2 Votes"
JoffreyNURIT-4769 answered ·

Hi @juanmaximilianoaguilarabanto-6444,

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



10 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.