Hoping someone can help out.
I have multiple websites running on a VM in Azure. They all access an Azure SQL database.
I have recently configured Application Insight and all things are working apart from capturing the SQL statements.
My websites are a combination of ASP.NET Core and ASP.NET.
I have followed the documents
and
The instrumentation seems to be installed properly and seems to be working but while I get the dependency event I don't get the SQL statement which is being run.
If I query the log using this
dependencies | where success != "True" and type == "SQL" | take 10
I can see failed events but there no reason for the failure.
Looking for any help is trying to find out why the SQL statements aren't being captured or some way of fixing it.
Thanks
Greg



