Tue, 25 Oct 2011

Packaging an Executable as a Windows Azure Application From the Command Line

I just published https://github.com/smarx/packanddeploy, a simple scaffold for deploying an executable as a Windows Azure application. That code runs, as an example, mongoose (a web server). It uses the new ProgramEntryPoint in a worker role to launch a batch file, which then launches the executable. I did it this way because I wanted to pass the address and port as command line parameters (so environment variable expansion via a batch file was a good option).

The project does not use Visual Studio. It simply uses the cspack and csrun commands from the Windows Azure SDK to package the app for local or cloud deployment and to run it locally.

This should be a good starting point for people who just have an executable they want to get running in the cloud. Enjoy!

[UPDATE 10:19pm PDT] Added that the code uses mongoose as an example.