I spent entire day trying to set up Windows Azure Diagnostic module. I set up WAD using diagnostics.wadcfg for both worker and web role. This wadcfg file properly copying to bin folders. This is my wadcfg files for WorkerRole and WebRole (links for more clear question). For diagnostic configuration initialization I use very simple and generic call: just
DiagnosticMonitor.Start("Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString");
in WorkerRole's and WebRole's (both classes - descendants of RoleEntryPoint) OnStart()
Connection string set up properly, both role sections in Service configuration contains LocalResource section
<LocalResources>
<LocalStorage name="DiagnosticStore" sizeInMB="5000" cleanOnRoleRecycle="false"/>
</LocalResources>
Unfortunatey this not working as I expecting: no IIS logs shipped, no Custom directory content shipped to blobs, perfomance counters and WindowsEventLogs once shipped properly, but then halted (no more rows added since few initial shippings)
Also wad-control-container have pretty strange xml configuration for both roles: WorkerRole and WebRole.
What I'm missing and what the proper way to initialize Diagnostic via diagnostics.wadcfg ?
Why stored configuration so different from diagnostics.wadcfg format?
Should I run DiagnosticMonitor.SetCurrentConfiguration()
after monitor initialization to store current configuration in Blob?