I am trying to deploy a site (basically a zip file) from my machine to a remote machine. I was testing the same before I implement the actual remote deployment and I was working to the msdeploy command line code using powershell.
Later I will configure this code in C# language and execute it that will automate the deployment.
Right now , I am facing the error called
$msdeploy = "C:\\Program Files\\IIS\\Microsoft Web Deploy V3\\msdeploy.exe"
$package = "C:\Deploy\Test\Test.zip"
$compname = "test_vm02"
$appname = "Default Web Site/Test"
$appvalue = "Test\"
$md = $("`"{0}`" -verb:sync -source:package=`"{1}`" -dest=auto,ComputerName=`"{2}`" -setParam=name=`"{3}`",value=`"{4}`" -allowUntrusted" -f $msdeploy, $package, $compname, $appname, $appvalue)
cmd.exe /C $md
This gives error saying that source does not support the parameter 'Default Web Site/Test'
.Must be one of ()
I also replaced the default web site to IIS Web Application Name
which in this case also did not work and threw the same error.
Any help is much appreciated!!