Application Insights Codelens Configuration

In my talk today at the Global Azure Bootcamp in Linz #gab #gab2019 I received a question regarding the source of Application Insights (AI) metrics that show up in Codelens.

How does Visual Studio know to which AI-Instance it should relate to?
CodeLens01

This setting can be easily find by the Visual Studio 2019 „Search“-Functionality which can be accessed with the shortcut CTRL + Q and by entering „Configure Application Insights„. You can also find the settings under the menu „Project-Application Insights-Configure Application Insights…„.

I think these settings are quite self explanatory 🙂

CodeLensConfig

Thanks Anton for asking this question!

Enjoy and have a great day

yours AndiP