title: Disable/Turn Off URL Rewrite Module in Windows Azure Web Role
body: <p>We are using Windows Azure Web Roles to host our MVC 3 application.  From many of the performance related questions here on SO, I have seen that the URL Rewrite module can have a performance impact on an MVC 3 application, even when not being used.  </p>
  
  <p>With that said, is there a way in either the web.config or ServiceDefinition files to disable or remove the URL Rewrite module on Azure?  One way that I have thought about is using a .cmd file on startup, similar to what we use to extend the App Pool timeout and recycle periods on the application, but cannot find a command line method of disabling the module.</p>
  
  <p><a href="http://msdn.microsoft.com/en-us/library/dd573358.aspx" rel="nofollow">URL Rewrite on by default on Azure Web Roles</a></p>
  
  <p><a href="http://bartwullems.blogspot.com/2011/09/aspnet-mvc-performance-tips.html" rel="nofollow">Impact of URL Rewrite on Server</a></p>
  
  <p><a href="http://blog.smarx.com/posts/controlling-application-pool-idle-timeouts-in-windows-azure" rel="nofollow">Method of increasing App Pool timeout on Azure</a></p>