8

I've got an Azure WebRole poject and I can successfully publish it using Visual Studio's built in wizard, But we want to automate the process.

How can I publish the Azure WebRole using MSbuild or any other command-line tool?

3 Answers 3

2

You might also want to create a console application. I posted sample code there: http://code.msdn.microsoft.com/Automating-a-deployment-ecd7bf3b

Sign up to request clarification or add additional context in comments.

Comments

2

Here're two good articles about it:

Comments

2

This question is pretty old, but I recently cleaned up a simple one-line command tool to do this, which you can download into your solution via NuGet.

Basically:

.\SrirachaTools\Runners\Azure\sriracha.run.exe 
--taskBinary=Sriracha.DeployTask.Azure.dll --taskName=DeployCloudServiceTask 
--configFile=.\MyDeployCloudService.json --outputFormat text

More info here: http://mooneyblog.mmdbsolutions.com/index.php/2015/03/21/windows-azure-6-deploying-via-sriracha-command-line-tools/

NuGet package here: http://www.nuget.org/packages/Sriracha.DeployTask.Azure/

And the code is here: https://github.com/mmooney/Sriracha2/

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.