title: Azure startup task Appcmd to config my site
body: <p>I have a azure site running, and I want to solve the notorious application pool restart warm up issue. It seems that MS has release for Application Initialization IIS.</p>
  
  <p>So I have to do the following 
  1. Install Application Initialization
  2. Make some configuration changes mentioned in here <a href="http://learn.iis.net/page.aspx/1089/iis-80-application-initialization/" rel="nofollow">http://learn.iis.net/page.aspx/1089/iis-80-application-initialization/</a></p>
  
  <p>a) In Application pool section of %WINDIR%\system32\inetsrv\config\applicationhost.config file</p>
  
  <p></p>
  
  <p>b) In site section of %WINDIR%\system32\inetsrv\config\applicationhost.config file
   
      ...
      
      ....</p>
  
  <p>My question is, how to write the Appcmd script to solve 2. b) to add <strong>preloadEnabled="true"</strong> to the right place, because i need to do 1) find the root site, given that I dont know the sitename, nor the site id. 2) add the <strong>preloadEnabled="true"</strong>  property to the root site I found in step 2).</p>