Azure-devops-docs: Take App Offline flag - Which app_offline.htm file will be used?

Created on 31 Jan 2020  Â·  2Comments  Â·  Source: MicrosoftDocs/azure-devops-docs

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?


Document Details

⚠ Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.

Pri2 devops-cictech devopprod doc-bug

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.

All 2 comments

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.

IIS blog post

Please reopen.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

EM1L picture EM1L  Â·  3Comments

KacperMucha picture KacperMucha  Â·  3Comments

atrauzzi picture atrauzzi  Â·  3Comments

adnanebrahimi picture adnanebrahimi  Â·  3Comments

robinmanuelthiel picture robinmanuelthiel  Â·  3Comments