Issue with using Application Insights with load tests

If you use Application Insights to collect app side metrics during load tests, you will find that it currently doesn’t work as expected.

  1. When configuring applications to collect app side metrics in the load test editor in Visual Studio, you will see an error similar to the below:
  2. aiIf you have already configured Application Insights earlier for your load tests, then when running such load tests, you will not see any app metrics being collected and the ‘Status Messages’ in your load test will show a message that ‘Application counter collection failed due to an internal error and will be disabled for this run’.

This is due to an infrastructure issue. We are working with the Application Insights (AI) team to understand and resolve the issue. At this time, we don’t have an ETA for a resolution. In the meantime to workaround this issue, you can view the application metrics using the Azure portal or use the APIs documented at https://dev.applicationinsights.io/quickstart/

If you have any questions related to load testing, please reach out to us at vsoloadtest@microsoft.com