title: Azure Role - Application startup task failed with exit code 1
body: <p>I tried to include a Task as per MSDN article below: 
  <a href="http://msdn.microsoft.com/en-us/library/windowsazure/jj154098.aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/windowsazure/jj154098.aspx</a></p>
  
  <p>However I'm getting the error below on one of the instance;</p>
  
  <p><em>Recycling (Waiting for role to start... Application startup task failed with exit code 1. [2013-04-13T11:03:22Z])</em></p>
  
  <p>Could someone please suggest what's really happening and what's the fix if any?</p>
  
  <p>Below is my cmd:</p>
  
  <pre><code>@echo off
  
  @echo Installing "IPv4 Address and Domain Restrictions" feature 
  %windir%\System32\ServerManagerCmd.exe -install Web-IP-Security
  
  @echo Unlocking configuration for "IPv4 Address and Domain Restrictions" feature 
  %windir%\system32\inetsrv\AppCmd.exe unlock config -section:system.webServer/security
  </code></pre>
  
  <p>And CSDF:</p>
  
  <pre><code>&lt;Startup&gt;
    &lt;Task commandLine="Startup.cmd" executionContext="elevated"/&gt;      
    &lt;Task commandLine="startup\startup.cmd" executionContext="elevated"/&gt;
  &lt;/Startup&gt;
  </code></pre>
  
  <p>Thank you</p>