Currently, we Web Deploy to Windows Azure Web Sites (WAWS) via MSBuild for our test environment using the following command
MSBuild.exe /p:Configuration=Test /p:DeployOnBuild=true /p:PublishProfile=Test
/p:AllowUntrustedCertificate=true /p:UserName=AzureDeploymentUser
/p:Password=AzureDeploymentPassword Solution.sln
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)
I suspect that the best way to do this is to create a Web Deploy Package at Test build time. And then later, deploy that Web Deploy Package.
I already know how to create a Web Deploy Package that creates the following files
ProjectName.zip
ProjectName.deploy-readme.txt
ProjectName.deploy.cmd
ProjectName.SetParameters.xml
ProjectName.SourceManifest.xml
I just don't know how to deploy that package to Windows Azure Web Sites
Have you checked the web app deploy page? Azure commandlets in powershell are popular.
We ended up using this batch file to deploy the package to azure. I named the variables the same as the variables you get when you download the azure deployment credentials from the azure control panel.
SET cmdPath=MSBuildGeneratedDeploymentPackage/yoursitename.deploy.cmd
SET publishUrl=yoursitename.scm.azurewebsites.net:443
SET userName=$yoursitename
SET userPWD=passwordFromAzureDeploymentCredential
%cmdPath% /y "/m:https://%publishUrl%/MsDeploy.axd" -allowUntrusted /u:"%userName%" /p:"%userPWD%" /a:Basic
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With