The documentation doesn't specify what file is used when the app is taken offline using the flag.
Is it a default file? Is the file sourced from a specific path? Can we customise the file?
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
This is based on webdeploy (MSDeploy) tool. It drops a blank app_offline.htm to the root of application folder. It is not customizable. More here
It should be customizable: -dest:iisApp=destApp,appOfflineTemplate="offlineTemplate.htm"
Unfortunately there is no way to specify this in the Azure DevOps task, meaning the "Take App Offline" option is useless, who want to see a blank page on a website?
The only solution is to manually add an app_offline.html file in artifacts and then copy it to the root before deployment before the WebDeploy task, and after the MsDeploy task deleting it.
Please reopen.
Most helpful comment
It should be customizable:
-dest:iisApp=destApp,appOfflineTemplate="offlineTemplate.htm"Unfortunately there is no way to specify this in the Azure DevOps task, meaning the "Take App Offline" option is useless, who want to see a blank page on a website?
The only solution is to manually add an app_offline.html file in artifacts and then copy it to the root before deployment before the WebDeploy task, and after the MsDeploy task deleting it.
IIS blog post
Please reopen.