I\'m trying to configure my own environment to send data to App Insight with Status Monitor and works fine except sql queries.
I have one environment on Azure VM wit
I finally solved this problem.
I grant modify access to IIS_IUSRS group for these paths:
%WINDIR%\Temp%WINDIR%\System32\config\systemprofile\AppData\LocalThen, Application Insights started to record SQL queries.
You also can do this via the command line:
icacls %WINDIR%\Temp /t /c /grant IIS_IUSRS:(OI)(CI)Micacls %WINDIR%\System32\config\systemprofile\AppData\Local /t /c /grant IIS_IUSRS:(OI)(CI)M