ARTICLE

How to deploy application in Windows Azure

Posted by Reeta Singh Lodhi Articles | Windows Azure March 09, 2011
In the previous article we have seen how to create a Hello World application in azure. In this article we will see how to deploy it in Windows azure.
Reader Level:

In the previous article we have seen how to create a Hello World application in azure. In this article we will see how to deploy it in Windows azure. To deploy an application in azure, two files are needed- a package file and a configuration file. Configuration file is already in CloudService1 named ServiceConfiguration.cscfg. Now for the package file just right click on the CloudService project and click Publish.

DeploymentInAzure1.gif
 
Then it asks to create just a package file or to deploy it in azure. 

DeploymentInAzure2.gif
 
If first option is selected then it creates the package file and opens the explorer.

DeploymentInAzure3.gif
 
Once we have a package file (.cspkg) and configuration file (.cscfg) then we can deploy it through management portal, or azure service management cmdlets, or Cerebrata's CloudStorageStudio, or Cerebrata's Azure management cmdlets. We can directly upload it through visual studio also, if we select second option from publish dialog. It needs a subscriptionId and a X509 v3 certificate as shown below:

DeploymentInAzure4.gif
 
Then we have to provide deployment environment and storage account.

Whichever option we had selected, we need:
  1. A Windows Azure Subscription - when we sign up for azure, a subscription is associated with our live Id.
  2. A Windows Azure Hosted Service - we need to create a hosted service for deployment. It provides two deployment environment- production and staging.
  3. A Windows Azure storage account - When we deploy through visual studio then package file is first uploaded in blob storage of the storage account, and then deployed from the blob service.
So summarizing deployment through management portal in some simple steps:
  1. We need a package file and a configuration file to deploy.
  2. To create a package file click publish and create package only option from project.
  3. Sign In the management portal.
  4. Create a new hosted Service if you want to deploy in a new service.
  5. Then in deployment environment either deploy in production or staging.
  6. Then start the deployment.
  7. You can see the progress of the deployment on the portal
  8. To delete a deployment first click on stop, and when it is stopped delete it.

Login to add your contents and source code to this article
post comment
     

Thanks, I'll look those sites

Posted by Rahul K Aug 03, 2011

You can get help from these articles- http://www.c-sharpcorner.com/UploadFile/ae35ca/7773/ and http://www.c-sharpcorner.com/UploadFile/suthish_nair/4802/

Posted by Reeta Singh Lodhi Aug 03, 2011

Hi Reeta, Thanks for sharing this detail. We are working on an application and we are building that application on Azure. Currently we are about to finish the dev process and soon we need to push the site on live server. Could you please share the detail with me, that how we can puch the dev environment site into live server on Azure. Thanks, Rahul K

Posted by Rahul K Aug 02, 2011
COMMENT USING
PREMIUM SPONSORS
DynamicPDF™ product line allows you to dynamically generate PDF documents, merge PDF documents and add new content to existing PDF documents from within your applications.
Join a Chapter
SPONSORED BY
  • PDF reports have never been easier to create. With our included WYSIWYG Designer, you can layout your reports, set up your data source and let DynamicPDF ReportWriter do the rest.
Join a Chapter