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.
So I have to do the following 1. Install Application Initialization 2. Make some configuration changes mentioned in here http://learn.iis.net/page.aspx/1089/iis-80-application-initialization/
a) In Application pool section of %WINDIR%\system32\inetsrv\config\applicationhost.config file
b) In site section of %WINDIR%\system32\inetsrv\config\applicationhost.config file ... ....
My question is, how to write the Appcmd script to solve 2. b) to add preloadEnabled="true" 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 preloadEnabled="true" property to the root site I found in step 2).
As far as avoiding restart, add this command to your startup script:
Not sure about your preload question.