title: Bamboo Deployments using MSDeploy
body: <p>I have created a CI with bamboo for a MVC Project. Build works fine but the problem is with the deployment using msdeploy. Below is the configuration of the deployment in Bamboo
  <a href="https://i.stack.imgur.com/5EQ0K.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/5EQ0K.png" alt="Deployment Configuration"></a></p>
  
  <p>Problem is with the arguments send to msdeploy which looks like this:</p>
  
  <pre><code>-source:package='${bamboo.build.working.directory}\Artifacts\WebDeploy\webdeploy.zip' -dest:auto,computerName="https://my_web_app.cloudapp.net:8172/msdeploy.axd?site=web_app_name",userName="deploy_user_name",password="passowrd",authtype="Basic",includeAcls="False" -verb:sync -disableLink:AppPoolExtension -disableLink:ContentExtension -disableLink:CertificateExtension -allowUntrusted -enableRule:DoNotDeleteRule -setParam:name="IIS Web Application Name",value="web_app_name"
  </code></pre>
  
  <p>When this code is run in bamboo, i am getting the following error:</p>
  
  <pre><code>Error: Unrecognized argument '"-setParam:name="IIS'. All arguments must begin with "-".
  </code></pre>
  
  <p>if  <code>-setParam:name="IIS Web Application Name",value="web_app_name"</code> is removed from the script deployent is done with success but in a wrong website (virtual directory under Default Web Site)</p>
  
  <p>Any ideas on how this can be fixed without using a separate <code>.bat</code> file?
  Thanks</p>