3

i've two applications (frontend and backend) in same Azure Web APP (Windows Plan).

The backend application is under wwwroot\back folder

The frontend application is under wwwroot folder

When i deploy the frontend using azure web app deploy task under Azure DevOps, the backend folder will be overwritting. Also , the same thing when deploy backend

Any idea , to do a exclude of same folder before deploy the front ?

Quentin Merlin
  • 664
  • 1
  • 6
  • 31
  • The best and easiest way is to put both the back directory and the wwwroot directory in the site directory. – Jason Pan Mar 03 '21 at 07:57
  • In this way, the time spent locating error messages or modifying scripts will be greatly reduced. When the program is updated in the future, it will not appear, because of forgotten or lack of steps, which program does not work on the front end or the back end. – Jason Pan Mar 03 '21 at 07:59
  • Please remember that in path mappings, modify the file directory of virtual applications and add folders in the scm website. – Jason Pan Mar 03 '21 at 08:01
  • Hi @Quentin Merlin. Is there any update about this ticket? Feel free to let me know if the answer could give you some help. Just a remind of [this](https://meta.stackexchange.com/questions/5234/how-does-accepting-an-answer-work). – Kevin Lu-MSFT Mar 05 '21 at 07:03
  • Hello Sir @KevinLu-MSFT , I have been operated, I will test as soon as possible – Quentin Merlin Mar 06 '21 at 08:35

1 Answers1

3

Any idea , to do a exclude of same folder before deploy the front ?

In Azure Web APP deploy task, there is no such option could meet your requirements.

You could try to use Azure App Service deploy task.

In Azure App Service deploy task, you could enable the Select deployment method option and input the -skip argument

enter image description here

For example:

-skip:Directory=\\back 

OR

-skip:skipAction=Delete,objectName=dirPath,absolutePath=wwwroot\\back

-skip:skipAction=Update,objectName=dirPath,absolutePath=wwwroot\\back 

Then the target folder will skip the option to modify the content.

For more detailed information, you could refer to this ticket:Azure Pipelines: Exclude folders using Azure App Service Deploy and this blog: Demystifying MSDeploy skip rules.

Kevin Lu-MSFT
  • 20,786
  • 3
  • 19
  • 28