Package a Windows Azure Application
Updated: June 7, 2012
To run an application as a cloud service in Windows Azure, you must package the application files into a package file (.cspkg) and then upload the package file and the service configuration file to Windows Azure.
An application package, which is used to run the application as a cloud service, includes the application files and the service model files. The CSPack Command-Line Tool uses the contents of the service definition file and the service configuration file to define the contents of the application package. You can modify the service definition file and service configuration file by using a text editor or by using Visual Studio. For more information, see CSPack Command-Line Tool.
You can prepare an application package to run as a cloud service in Windows Azure by using the MSBuild command from the Microsoft Visual Studio command prompt. MSBuild provides a basic XML schema that is used to control how the build platform builds software. You do not need to modify the XML to use MSBuild to create an application package for Windows Azure. For more information, see MSBuild.
You can create an application package by using the user interface in Visual Studio. From the menu in Visual Studio, you can choose to create an application package that can be uploaded to Windows Azure, or you can publish the application directly to Windows Azure.