Startup tasks and Internet Information Services (IIS) configuration
Shows the definition and configuration in the service model for using a startup task to configure IIS.
As David pointed out in the comments, you can refer to the following sample for startup tasks for IIS:
For more information, see http://msdn.microsoft.com/en-us/library/hh180155.aspx.
David Murray [Windows Azure iX] commented
The following sample might be helpful:
Windows Azure startup task demo