Deploying an application into a hosted service
An application is deployed into a Windows Azure hosted service to provide its features and functionality. The deployment comprises the package containing the code to be deployed into the instances of the roles in the application, as well as the service configuration file specifying the configuration for the application. Each deployment is into either the production or staging slot of the hosted service. The result of a deployment is the creation of all the roles and instances specified in the service configuration file. By default, these instances are initially in the stopped state.
The Windows Azure Service Management REST API exposes a create deployment operation. The REST endpoint for the create deployment operation specifies the subscription ID, the name of the hosted service, and the deployment slot into which the application is to be deployed. The operation requires a payload comprising an XML document specifying the Windows Azure blob...