I am developing a web application using asp.net core RC2. I am hosting this application on Azure WebApp. I am using application insights in the application. Now I would like that the Instrumentation key is read from the webapp App Settings, so that my dev-ops can change it without redeploying the application(or I can add this to the azure web app without having to edit config files during automated deployment).
The only dynamic way I have seen is using
builder.AddApplicationInsightsSettings(instrumentationKey: iKey);
the problem with this is that the configuration is still not loaded so how can I read the value from web app to populate iKey.