How can I view the number of pooled ADO.NET database connections in an Azure App Service? How can I view the number of pooled ADO.NET database connections in an Azure App Service? azure azure

How can I view the number of pooled ADO.NET database connections in an Azure App Service?


Unfortunately, performance counters are not supported on Azure App Services due its multitenant nature of it.

See: Access performance counter programmatically in Microsoft Azure web app

Three things that you may want to try however is:

  1. Enable Application Insights (https://docs.microsoft.com/en-us/azure/application-insights/app-insights-performance-counters) or New Relic.

  2. If your application is for test purpose, I can also suggest to deploy to cloudservice where you will have access to the full VM and traditional Perf counter

  3. Try deploying to App Service Environments & I believe you will get access thru programmatically at least. This does get expensive.