title: unhealthy instances in Azure
body: <p>I have a working deployment.
  I've added to the configuration file of a Cloud Service Role:</p>
  
  <pre><code>&lt;Startup&gt;
        Task commandLine="EnableCompression.cmd" executionContext="elevated" taskType="simple"&gt;&lt;/Task&gt;
      &lt;/Startup&gt;
  </code></pre>
  
  <p>Then in the cmd file:</p>
  
  <pre><code>%windir%\system32\inetsrv\appcmd set config /section:urlCompression /doDynamicCompression:True /commit:apphost
  %windir%\system32\inetsrv\appcmd set config  -section:system.webServer/httpCompression /+"dynamicTypes.[mimeType='application/json; charset=utf-8',enabled='True']" /commit:apphost
  </code></pre>
  
  <p>When publishing this to Azure I am getting:</p>
  
  <pre><code>Your role instances have recycled a number of times during an update or upgrade operation. This indicates that the new version of your service or the configuration settings you provided when configuring the service prevent the role instances from running. Verify your code does not throw unhandled exceptions and that your configuration settings are correct and then start another update or upgrade operation.
  </code></pre>
  
  <p>the Cmd file has COPY ALWAYS attribute. so this should be fine.
  When removing the <code>&lt;Startup&gt;</code> tag from the configuration it is successful.</p>
  
  <p>the above seems to fail the deployment</p>
  
  <p>what can be the reason for this?
  Thanks!</p>