title: How do I deploy a web deploy package to Azure Web Sites via command line?
body: <h2><strong>What we do today</strong></h2>
  
  <p>Currently, we Web Deploy to Windows Azure Web Sites (WAWS) via MSBuild for our test environment using the following command</p>
  
  <pre><code>MSBuild.exe /p:Configuration=Test /p:DeployOnBuild=true /p:PublishProfile=Test 
              /p:AllowUntrustedCertificate=true /p:UserName=AzureDeploymentUser 
              /p:Password=AzureDeploymentPassword Solution.sln
  </code></pre>
  
  <h2><strong>What I want to accomplish</strong></h2>
  
  <p>I want to create a prod build / deployment at the same time as our test build (not in the same call to MSBuild, unless its possible), and later, at some time that the build passes testing, deploy the prod build to prod via the command line. (preferably with Web Deploy)</p>
  
  <h2><strong>How I think I can accomplish this</strong></h2>
  
  <p>I suspect that the best way to do this is to <strong>create a Web Deploy Package at Test build time</strong>.  And then later, <strong>deploy that Web Deploy Package</strong>.</p>
  
  <h2><strong>What I need to know</strong></h2>
  
  <ol>
  <li>Is a Web Deploy Package / subsequent deployment of that package, the best way to do this?</li>
  <li>How do you deploy a web deploy package from the command line?  Right now its painfully easy to deploy via MSBuild with the right parameter set, I'd like to keep it that simple.</li>
  </ol>
  
  <p>I already know how to create a Web Deploy Package that creates the following files</p>
  
  <pre><code>ProjectName.zip
  ProjectName.deploy-readme.txt
  ProjectName.deploy.cmd
  ProjectName.SetParameters.xml
  ProjectName.SourceManifest.xml
  </code></pre>
  
  <p>I just don't know how to deploy that package to Windows Azure Web Sites</p>