Skip to content

Instantly share code, notes, and snippets.

@biggyspender
Last active August 29, 2015 14:16
Show Gist options
  • Save biggyspender/3a534cffafef37f8231e to your computer and use it in GitHub Desktop.
Save biggyspender/3a534cffafef37f8231e to your computer and use it in GitHub Desktop.
Set apppool recycle defaults in for Azure IIS web worker role
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.processModel.idleTimeout:00:00:00
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:applicationPools -applicationPoolDefaults.recycling.periodicRestart.time:00:00:00
if exist %windir%\system32\inetsrv\appcmd.exe %windir%\system32\inetsrv\appcmd set config -section:system.applicationHost/applicationPools /+applicationPoolDefaults.recycling.periodicRestart.schedule.[value='04:00:00'] /commit:apphost
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment