title: Azure Diagnostic is not saving logs in azure tables
body: <p>Just checking the new features introduced in windows azure sdk 2.0 - Enable Diagnostics.</p>
  
  <p>Just created a new azure cloud project with MVC 4 Web Role and enabled diagnostics from the configuration section but the none of the logs are saved on the azure tables - WADLogsTable, WADDiagnosticInfrastructureLogsTable.</p>
  
  <p>diagnostics.wadcfg</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;DiagnosticMonitorConfiguration configurationChangePollInterval="PT1M" overallQuotaInMB="4096" xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"&gt;
    &lt;DiagnosticInfrastructureLogs /&gt;
    &lt;Directories&gt;
      &lt;IISLogs container="wad-iis-logfiles" /&gt;
      &lt;CrashDumps container="wad-crash-dumps" /&gt;
    &lt;/Directories&gt;
    &lt;Logs bufferQuotaInMB="1024" scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose" /&gt;
    &lt;WindowsEventLog bufferQuotaInMB="1024" scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Verbose"&gt;
      &lt;DataSource name="Application!*" /&gt;
    &lt;/WindowsEventLog&gt;
  &lt;/DiagnosticMonitorConfiguration&gt;
  </code></pre>
  
  <p>ServiceDefinition.csdef</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ServiceDefinition name="AzureWebApp" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceDefinition" schemaVersion="2013-03.2.0"&gt;
    &lt;WebRole name="MvcWebApp" vmsize="Small"&gt;
      &lt;Sites&gt;
        &lt;Site name="Web"&gt;
          &lt;Bindings&gt;
            &lt;Binding name="Endpoint1" endpointName="Endpoint1" /&gt;
          &lt;/Bindings&gt;
        &lt;/Site&gt;
      &lt;/Sites&gt;
      &lt;Endpoints&gt;
        &lt;InputEndpoint name="Endpoint1" protocol="http" port="80" /&gt;
      &lt;/Endpoints&gt;
      &lt;Imports&gt;
        &lt;Import moduleName="Diagnostics" /&gt;
      &lt;/Imports&gt;
    &lt;/WebRole&gt;
  &lt;/ServiceDefinition&gt;
  </code></pre>
  
  <p>ServiceConfiguration.Cloud.cscfg</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
  &lt;ServiceConfiguration serviceName="AzureWebApp" xmlns="http://schemas.microsoft.com/ServiceHosting/2008/10/ServiceConfiguration" osFamily="3" osVersion="*" schemaVersion="2013-03.2.0"&gt;
    &lt;Role name="MvcWebApp"&gt;
      &lt;Instances count="1" /&gt;
      &lt;ConfigurationSettings&gt;
        &lt;Setting name="Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString" value="UseDevelopmentStorage=true" /&gt;
      &lt;/ConfigurationSettings&gt;
    &lt;/Role&gt;
  &lt;/ServiceConfiguration&gt;
  </code></pre>
  
  <p>WebRole.cs -- From MVC Application </p>
  
  <pre><code>using System;
  using System.Collections.Generic;
  using System.Diagnostics;
  using System.Linq;
  using System.Threading;
  using Microsoft.WindowsAzure;
  using Microsoft.WindowsAzure.Diagnostics;
  using Microsoft.WindowsAzure.ServiceRuntime;
  
  namespace MvcWebApp
  {
      public class WebRole : RoleEntryPoint
      {
          public override void Run()
          {
              // This is a sample webrole implementation. Replace with your logic.
  
              while (true)
              {
                  Thread.Sleep(10000);
                  Trace.WriteLine("Working", "Information");
              }
          }
  
          public override bool OnStart()
          {
              // For information on handling configuration changes
              // see the MSDN topic at http://go.microsoft.com/fwlink/?LinkId=166357.
  
              Trace.WriteLine("Starting Web Role ...", "Information");
  
              return base.OnStart();
          }
      }
  }
  </code></pre>
  
  <p>I was expecting the Trace.WriteLine error i.e. "Starting Web Role ..." and "Working" to the saved in the azure table - WADLogsTable.</p>
  
  <p>Any Help will be appreciated.</p>
  
  <p>Thanks</p>
  
  <p>Bhavesh </p>