Search code examples
asp.netiistfsreleasewebdeploy

TFS 2017- Release deploy app to IIS under a website


I am using TFS 2017 build and realease to deploy a website, In my IIS i have the following Structure

 - WebsiteHost
   - ApplicationToDeploy

I am using Deploy IIS App step on TFS realease definition

Question: how can I tell the realease build to update ApplicationToDeploy under WebsiteHost? Right now it creates a new Website on WebsiteHost level which i don't want. I tried WebsiteHost\ApplicationToDeploy in Host name field in the task but that just created a website with Host name WebsiteHost\ApplicationToDeploy. Any Ideas?

Hope I made my issue clear


Solution

  • Based on my test, you just need to specify the Website name in Deploy IIS App step, then it will automatically update the website once any changes are checked in with the CI/CD definitions set.

    Assuming the Website name is ApplicationToDeploy, just specify the name under Deployment > Website name

    enter image description here

    UPDATE:

    Make sure the website is existing there, you check in IIS manager.

    enter image description here