Publish an Azure project from the command line

I have an Azure WebRole project, and I can successfully publish it using the built-in Visual Studio wizard, but we want to automate this process.

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

+6
source share
3 answers

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

+2
source

Here are two good articles about this:

+2
source

This question is quite old, but I recently cleared a simple one-line command tool that you can download to your solution through NuGet.

Basically:

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

More details 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/

+2
source

Source: https://habr.com/ru/post/904103/


All Articles