I created a blank solution with a single Azure Worker Role. I enabled performance monitoring and diagnostics using the default settings.
When I run the app (which runs successfully) I try to look in the local development Azure Storage tables for the WADPerformanceCountersTable but cannot find it.
I see the following event in the event log:
Microsoft.Cis.Monitoring.Query.QueryException: ErrorFail
at Microsoft.Cis.Monitoring.Query.QueryLocalTable..ctor(String TableName, String TablePath)
at ApplicationInsightsExtension.MATableReader.ReadTableRecords(String tableName, String tablePath, DateTime startTime, DateTime endTime)
at Microsoft.Azure.Plugins.Diagnostics.dll.MAStatusWriter.UpdateStatusReport(Object sender, ElapsedEventArgs e)
Local machine setup:
More links:
I have removed every nuget related with ApplicationInsights in my WebRole, every table with old data and now I have IIS Logs and Performance Logs.
Give it a try and see if it works for you
I found that simply removing the <system.diagnostics>
element entirely from the web role's configuration file, meant that instead of getting the diagnostics initialisation error in the event log you get the actual error that Azure diagnostics was trying to log. Which is what I was looking for.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.