My application have multiple VMs where the frontend code(Angular) is deployed. Like 4 production server and 3 Staggig server. It is very difficult to pass the instrumentation Key in each environment while deploying the changes. Can anyone suggest what should be the best process to pass the key so that the details is fetched as per the deployment server.
Dynamic instrumentation key for Azure Application Insight
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Rupesh KahaneRank #136 · 16.4K reputationPosted Jun 6, 2022, 4:59 AM EDT
refer below, may be it will helpfull
1) https://stackoverflow.com/questions/58568960/how-to-configure-application-insights-for-different-environments
2) https://devblogs.microsoft.com/devops/application-insights-support-for-multiple-environments-stamps-and-app-versions/