2
votes

I am able to deploy a website to a VM in AWS using VSTS. My code is hosted in git on VSTS. When I deploy using IIS Website. In the IIS Web App Deploy

In Additional Arguments I specified -setParam:name='IIS Web Application Name',value='Default Web Site\TestVSTS. But it still gets deploy to 'Default Web Site'

And on the log file on VSTS i can see the command not getting overwriten with my command. Any body having the same issue ?

Log File Command being executed by vsts : C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='C:\vstsagent\A2_work\r3\a\temp_web_package_2238626544802922.zip' -dest:auto -setParam:name='IIS Web Application Name',value='Default Web Site' -enableRule:AppOffline -enableRule:DoNotDeleteRule

VSTS Configuration

Update : Set WebSite to "Default Web Site " and Virtual Application to "TestVSTS" Still did not work. Look Below to see what I did and it did work

enter image description here

Update this Work

enter image description here

1

1 Answers

3
votes

The IIS Web App Deploy task has already included –setParam parameter.

Based on the parameter, you want to specify web application name, you just need to specify Website Name (Default Web Site) and Virtual Application (TestVSTS) in IIS Web App Deploy task.