Sharing of thoughts and information is what blogging is all about. This way we can learn from each other. Post A Comment!These postings are provided "AS IS" with no warranties, and confers no rights. You assume all risk for your use.
Resident Bloggers
Damir BersinicSenior Technology Advisor E-mail | Facebook | LinkedIn Chris Di LulloSr. IT Pro Marketing Manager Ruth MortonIT Pro Advisor E-mail | Twitter | LinkedIn
If you’ve started reading from this post, you’ll need to go through the previous parts of this series before starting this one: Introduction Part 1: Provisioning and Configuring SQL Azure Part 2: Provisioning a Storage Account Part 3: Configuring the Service Package
Good new - updating the Service Configuration file with the storage account and database information was probably the most challenging part of the deployment. Now, it’s back to wizard-based tasks.
The Hosted Service is the container of your application in Windows Azure. It breaks down into a deployment and one or more instances of roles required to run your application. In order to run the application, a hosted service is created and the application is deployed into it.
Let’s get started.
Creating a Hosted Service
This subdomain name must be unique among all the services, yours or anyone else's, running on Windows Azure.
It is recommended that you always deploy to the staging environment first. This will allow you to perform any kind of testing you need on the application prior to it being available for everyone to use.
It is also recommended that you give each deployment a name that describes the package you are deploying, such as a version.
The CSPKG file is an encrypted file that contains all of the files that are required for deploying the application as well as the configuration information required to describe the infrastructure requirements your application needs in order to run.
As discussed previously, the CSCFG file contains additional configuration parameters that require easy access in order to be able to modify as necessary, such as the storage account and database information previously configured or the instance counter.
Windows Azure will now provision the instances. You can follow the provisioning status from the portal.
A service deployed to the staging environment is assigned a URL with the following format: {deploymentid}.cloudapp.net. A service deployed to the production environment is assigned a URL with the following format: {hostedservicename}.cloudapp.net.
You have now successfully deployed the application to the staging environment in Windows Azure. Before going to production, it’s always important to make sure that everything is working as it should.
Testing the Solution in the Staging Environment
Let’s go back to our to do list and see what we have to do next.