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:
- Visual Studio 2013 Community Edition
- Azure SDK 2.9
- Windows 10
- Running Visual Studio as Administrator
- Worker Role definition has elevated privileges
More links:
\nline endings as opposed to\r\nline endings, in my case, caused by checking out the project with git for cygwin. Don't know which files actually cause the issue, but checking out with git for windows fixed it for me. Fiddling with the git autocrlf settings or making a .gitattributes file would probably do the same. - spender