title: upgade from azure 2.4 to 2.5 now diagnostics aren't working
body: <p>I upgraded from azure tools 2.4 to 2.5 and now am getting a null reference thrown when I try to reference the DiagnosticMonitorConfiguration returned by <code>DiagnosticMonitor.GetDefaultInitialConfiguration()</code> For example </p>
  
  <pre><code>DiagnosticMonitorConfiguration diagnosticConfig = DiagnosticMonitor.GetDefaultInitialConfiguration();
  diagnosticConfig.Directories.ScheduledTransferPeriod = TimeSpan.FromMinutes(1);
  </code></pre>
  
  <p>will throw an exception because Directories is null. From what I've googled, the default initial config is stored in the new diagnostics.wadcfgx file, which is there and looks like</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="utf-8"?&gt;
    &lt;DiagnosticsConfiguration xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"&gt;
      &lt;PublicConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"&gt;
  &lt;WadCfg&gt;
    &lt;DiagnosticMonitorConfiguration overallQuotaInMB="4096"&gt;
      &lt;DiagnosticInfrastructureLogs /&gt;
      &lt;Directories&gt;
        &lt;IISLogs containerName="wad-iis-logfiles" /&gt;
      &lt;/Directories&gt;
      &lt;PerformanceCounters&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\Memory\Available MBytes" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\ISAPI Extension Requests/sec" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Bytes Total/Sec" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Requests/Sec" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\ASP.NET Applications(__Total__)\Errors Total/Sec" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Queued" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Requests Rejected" sampleRate="PT3M" /&gt;
        &lt;PerformanceCounterConfiguration counterSpecifier="\ASP.NET\Applications Running" sampleRate="PT0S" /&gt;
      &lt;/PerformanceCounters&gt;
      &lt;WindowsEventLog scheduledTransferPeriod="PT1M"&gt;
        &lt;DataSource name="Application!*" /&gt;
      &lt;/WindowsEventLog&gt;
      &lt;Logs scheduledTransferPeriod="PT1M" scheduledTransferLogLevelFilter="Error" /&gt;
    &lt;/DiagnosticMonitorConfiguration&gt;
  &lt;/WadCfg&gt;
  &lt;StorageAccount&gt;mystorageaccount&lt;/StorageAccount&gt;
  &lt;/PublicConfig&gt;
  &lt;PrivateConfig xmlns="http://schemas.microsoft.com/ServiceHosting/2010/10/DiagnosticsConfiguration"&gt;
  &lt;StorageAccount name="assetmanagerwms" endpoint="https://core.windows.net/" /&gt;
  &lt;/PrivateConfig&gt;
  &lt;IsEnabled&gt;true&lt;/IsEnabled&gt;
  &lt;/DiagnosticsConfiguration&gt;
  </code></pre>
  
  <p>Does anybody know what I'm missing? All properties are either null or 0 on the returned DiagnosticMonitorConfiguration.</p>