Exercise 3: Deploying a Windows Azure Application
In this exercise, you deploy the application created in the previous exercise to Windows Azure using the Management Portal. First, you provision the required service components, upload the application package to the staging area and configure it. You then execute the application in the staging area to verify its operation. Finally, you promote the application to production.
In order to complete this exercise, you need to sign up for a Windows Azure account and purchase a subscription. For a description of the provisioning process, see Provisioning Windows Azure.
Task 1 – Creating a Storage Account and a Hosted Service Component
The application you deploy in this exercise requires both compute and storage services. In this task, you create a new Windows Azure storage account to allow the application to persist its data. In addition, you define a hosted service component to execute application code.
Task 2 – Deploying the Application to the Windows Azure Platform Management Portal
There are several alternatives for deploying applications to Windows Azure. The Windows Azure Tools for Visual Studio allow you to both create and deploy the service package to the Windows Azure environment directly from Visual Studio. Another deployment option is the Windows Azure Service Management PowerShell Cmdlets that enable a scripted deployment of your application. Lastly, the Windows Azure Platform Management Portal provides the means to deploy and manage your service using only your browser. For more information about deployment, see the Windows Azure Deployment lab in this training kit.
In this task, you deploy the application to the staging environment using the Management Portal but first, you generate the service package using Visual Studio.
Task 3 – Configuring the Application to Increase the Number of Instances
Before you can test the deployed application, you need to configure it. In this task, you define the storage account settings for the application.
Task 4 – Testing the Application in the Staging Environment
In this task, you run the application in the staging environment and access its public endpoint to test that it operates correctly.
Task 5 – Promoting the Application to Production
Now that you have verified that the service is working correctly in the staging environment, you are ready to promote it to final production. When you deploy the application to production, Windows Azure reconfigures its load balancers so that the application is available at its production URL.