rschiefer / MSDeployAllTheThings

MSDeploy Task for VSTS
17 stars 14 forks source link

Doesn't recognise site name parameter #16

Open AndAShape opened 5 years ago

AndAShape commented 5 years ago

I have this...

C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -verb:sync -source:package='D:\a\1\a\package.zip' -dest:auto,computerName='https://myserver:8172/msdeploy.axd',userName='***',password='***',authType='ntlm',includeAcls='False' -allowUntrusted -verbose -setParam:name='IIS Web Application Name',value='sitename'

And it says...

##[error]System.Management.Automation.RemoteException: Error: Source does not support parameter called 'IIS Web Application Name'. Must be one of ().

AndAShape commented 5 years ago

I removed -setParam:name='IIS Web Application Name',value='sitename' and set the "Destination Provider" field to contentPath='sitename'

siburny commented 5 years ago

FYI you can specify site name in the Destination Computer field:

https://<siteaddress>:8172/MSDeploy.axd?site=<sitename>
gerneio commented 1 year ago

The fix @AndAShape shared (Dest provder w/ content path) worked for me.