IIS Website - Maintenance mode (VSTS task)VSTS/TFS Task for putting an IIS website in maintenance mode and back online again. Are these VSTS extensions helping you? DetailsIf you put an app_offline.htm file in the root of your web application, IIS will shut down the application and only serve this webpage as an result with a HTTP 503 code. After you rename/delete the file the site will be back online. This can be usefull when you deploy websites without high availability environments and still the visitors a nice message instead of errors. In the case you do have a high availability environment with a load balancer, you can configure the load balancer in such a way that it will switch when it notices a 503 code. How it worksAdd a html file with the maintenance message to your artificat for the website and give it the same filename as specified under Online filename. When this task is executed in offline mode it will find that particular file and change it to the Offline filename which will take the site offline. In online mode it will do the exact opposite. Available options
|