I'm trying to execute the following command at the start of an Azure web role to set a specific time in which the app pool will be recycled:
%windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.recycling.periodicRestart.schedule.[value='00:08:00']
But when I to do this I get the error:
ERROR ( messsage:Cannot find requested collection element. )
Anyone know how to use appcmd to set default application pool settings to make it recycle at 8:00 AM UTC? Note that the collection of specific times the app pool recycles is empty initially.