tRuEsAtM
tRuEsAtM

Reputation: 3678

IIS Web App Deploy - Azure DevOps Release task deploying all the files present in wwwroot

I am trying out a release via Azure DevOps. Below is how my screenshot of IIS WebApp Manage task. enter image description here

Below is my IIS Web App Deploy task:

enter image description here

My artifacts, i.e., the zip file contains only the folder named package.

But, still, everything present under wwwroot folder gets deployed to the new web app.

Below is the screenshot of my wwwroot directory:enter image description here

and thus below are the contents shown under IIS for my newly created website:

enter image description here

I don't expect Verify2WebServiceSSL to be present here as it is not part of the .zip artifacts.

Upvotes: 2

Views: 3538

Answers (1)

Dejulia489
Dejulia489

Reputation: 1305

This is setting the root of the website to .\wwwroot, so all other files in .\wwwroot are showing in IIS as part of the website.

Try Updating the following to give your VerifyAPI its own folder and clean it during a deployment.

IIS Web App Manage:

IISWebsite

Physical path: %SystemDrive%\inetpub\wwwroot\VerifyAPI

IIS Web App Deploy

Advance Deployment Options

Check 'Remove Addition Files at Destination'

Upvotes: 1

Related Questions