I'm trying to create Azure deployment of three applications (App Service with Virtual Applications). The structure should be as follows:
/app-1
/app-2
/
Where the 3-rd application is contained in the root, containing some static files (index.html, Web.config).
For the goal I've created 2 release pipelines:
- Deploying app-1 and static files to root
- Deploying app-2
When I run the app-2 pipeline and then the app-1 & tatic files pipeline, everything works as expected. However, when the app-2 pipeline is ran last, the root (3-rd application) is purged, even that it's configured to deploy only to the corresponding virtual application.
Any ideas?
EDIT: Found a workaround. All of the Deploy Azure App Service tasks were added Additional Deployment Options - Web Deploy, Preserve files.
The same command was executed as before, however it seems to have effect.