Moving your ASP.NET Application to Windows Azure – Part II

In the previous post I had described the steps to secure your Windows Azure tokens and get the necessary Visual Studio templates as well as making your web application Azure ready by adding the cloud project and building against it.

Once you have tested the Development Fabric, the instances as well as the application, the next step would be to publish it to the Windows Azure platform.  Select the “CloudService1” project that you added to the solution, right click and select “Publish”

image

Once you click on “Publish”, if you are connected to the internet, it would try and open up Azure login screen and once you sign in, https://windows.azure.com/Cloud/Provisioning/Default.aspx

If you had received the Windows Azure Tokens, and claimed them (as per my previous posts), you would hit the screen as below upon clicking on your project. 

image

in the above, once you click on “New Service” it opens up the page to choose the type of service you would want to create. 

image 

As mentioned earlier, in the CTP you would get to create 2 storage accounts and one hosted service.  In our case, we would require a hosted service, so select the same and proceed to the next screen.  It would provide you the option to specify the Service name and description (note both are mandatory)  I have provided a name as well as description as per the screen below.

image

Clicking on next would take you to the screen where you can choose the sub-domain name.  Provide the name and “Check Availability” and then leave the default and click on “Create”. 

image

The next screen opens up with details of the stuff entered so far, as below:-

image

Click on “Deploy” and it would open up the next screen to upload your configuration files.  When you selected “Publish” in the first step, it would have also opened up your solution’s “Publish” folder automatically.  You can take that path to browse to the CloudService1.cspkg file for the first file upload control and the ServiceConfiguration.cscfg for the second and also provide a label for the deployment.  After that Click “Deploy”

image 

This process would take some time and then get to the following screen.  (If you get an error here, mentioning the role instances are out of range, make sure you changed back the number of roles in your configuration file as mentioned in my previous post to “1” which is default.  The current CTP limits it to 1 instance and although you can change it locally to any number to see the instance simulation in development fabric, when you publish and go to production in the CTP, it doesn't permit more than 1.  So, change the configuration, rebuild and then publish to get the updated configuration files which you can replace)

image

Note that at this stage the application is “Stopped”.  You need to explicitly click on “Run” to start the application.  This would start enabling the Deployment and takes a few minutes based on the server availability and then gets to the “Initializing” stage where the icon (blue) changes to Yellow as well as status to “Initializing”

At this point the custom URL with our sub-domain (in this sample, http://harishweb.cloudapp.net) would not be available since its is still initializing.  Once that is done and it indicates “Ready” as below, you can access the URL to see your app running on the cloud.  You can also “Suspend” and do other things from this screen later.

image

So, with that we have deployed our ASP.NET application to cloud.  If you had followed the Part I and Part II of the SQL Azure migration as well, your application is now running UI Layer on Windows Azure and SQL Layer on SQL Azure.  That makes it a truly cloud based solution.  Here below in a screen shot of my application running on Windows Azure with my custom sub domain i.e. http://harishweb.cloudapp.net (note, I would delete the service shortly and hence this URL wouldnt be available.  since the CTP offers only one hosted service, i would keep it available for me all the time by removing the apps as and when i am done with demo )

image

I hope you found these posts beneficial and do point out if there are errors / omissions in the steps.

Cheers !!!

posted @ Saturday, December 19, 2009 8:47 AM

Print

Comments on this entry:

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by hamed at 12/19/2009 6:37 PM
Gravatar
It is very nice

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by waqas at 12/20/2009 6:39 PM
Gravatar
great,thanks for sharing

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Samik at 12/21/2009 3:16 AM
Gravatar
Interesting article

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Musy at 12/22/2009 5:00 AM
Gravatar
Greate Post for the people who want to get start with cloud service.
Keep it up

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by DefaultDotAspx.com at 12/23/2009 12:14 AM
Gravatar
This post has been added to the Articles section in Default.aspx website (www.defaultdotaspx.com) as a following of your Part 1 post.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by dfff at 12/23/2009 12:30 PM
Gravatar
dafksdlfds
fdsf
sdf
sdfsdf

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Prasanna at 12/28/2009 12:00 PM
Gravatar
Will the code be compiled (for error check) before it gets deployed?

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by trade show displays at 12/31/2009 6:12 PM
Gravatar
very interesting! when will you be done with demo?
Keep up the good work.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by San Diego Plumber at 1/3/2010 1:23 PM
Gravatar
It's like creating a wordpress blog post and you have a detailed and step-by-step guide. Yes, I am waiting too for the release of video demo.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by nithin mohan at 1/8/2010 12:38 AM
Gravatar
Good work. really informative..

# Nice

Left by Como ganar mas dinero at 1/9/2010 11:23 PM
Gravatar
just want to thanl you for these great tutorial, they trully provide great information,

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Tiens at 1/14/2010 8:35 PM
Gravatar
The post sounds really interesting but very scientific

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Nigi at 1/14/2010 8:39 PM
Gravatar
When i read the post, i feel like i understand everything, but i get completely lost in practise.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Matt Gold at 1/15/2010 5:19 AM
Gravatar
When are you going to release the video demo? You outlined the steps really well but I still feel lost.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Weight Loss at 1/17/2010 4:27 AM
Gravatar
I agree with your conclusions and will eagerly look forward to your next updates. Saying thanks will not just be sufficient, for the wonderful clarity in your writing

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Shikha at 2/2/2010 2:23 AM
Gravatar
Hi
great post..it helps me alot thanks.
I m facing an issue:

i have follow all these steps given by you.
But when i build cloud service it opens the window with ip http://127.1..... start.aspx.
But it does not show any content that i have wrote on start.aspx.Like i wrote "Hello World" start.aspx.. but it is not showing .. it just shwoing a blank page.
Plz help
Thanks

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Valentine Gifts & Freebies at 2/4/2010 5:45 PM
Gravatar
As far as Windows Azure is concerned it is upcoming operating system from Microsoft. This operating system helps the developers to compute, store and manage web application through Microsoft data centers. Windows Azure provides high virtual hosting environment where we can develop and deploy .NET application. Your tutorial on Moving ASP.NET to Windows Azure was interesting and informative. Thanks for sharing.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Saraota Computer Repair at 2/7/2010 2:17 AM
Gravatar
I find the Windows Azure platform very interesting, it is the next wave of the internet.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by venice florida real estate at 2/7/2010 2:23 AM
Gravatar
Great info, I'm looking forward to moving to the cloud.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Vay mua nha at 2/7/2010 10:52 PM
Gravatar
Useful post, thank you for sharing.

# skin wrinkle cream

Left by or at 2/9/2010 1:48 AM
Gravatar
ASPX is a very powerful language, its better then php and asp.

# weight loss pills

Left by kanchan at 2/10/2010 8:45 PM
Gravatar
Thanks for such a great post and the review, I am totally impressed! Keep stuff like this
coming.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Salm Ahmed at 2/14/2010 5:50 PM
Gravatar
Any news about the demo? do you have a news letter to keep us updated?

# Moving your ASP.NET Application to Windows Azure – Part II

Left by Writing Jobs at 2/16/2010 10:31 PM
Gravatar
You are beginning to realize that an ASP.NET Web Forms web site has many resources, and many "moving parts"

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by scheduling software at 2/17/2010 8:15 PM
Gravatar
I am happy to find so many useful information here in the post, thanks for sharing.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Relojes at 2/22/2010 9:23 AM
Gravatar
Thanks I wass habing trouble to grasp this concept but now its clear.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Ngan hang at 2/23/2010 10:17 PM
Gravatar
I found your website by google, i like reading alot. Its content is veru useful

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by research paper at 2/28/2010 11:24 PM
Gravatar
It's a great application for me.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Sarasota SEO at 3/4/2010 12:53 PM
Gravatar
Thanks for the how to info!

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Oriya Matrimony at 3/7/2010 8:59 AM
Gravatar
I had a great time reading around your post as I read it extensively. I am looking forward to hearing more from you.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Minneapolis Criminal Lawyer at 3/7/2010 9:02 AM
Gravatar
I like the foundation of this blog has a great variety of comments I really like it, several points of view helps in the appreciation of the subject,is very interesting and I would like learn more.

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Jason at 3/10/2010 9:36 AM
Gravatar
Will there be a video tutorial for this?

thanks
Henri
how to win a women back get your ex back now

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Frank at 3/11/2010 12:37 PM
Gravatar
As you indicated in your post, your link for harishweb.cloudapp.net doesn't work any more. Are you going to set up a new link???
Thanks. Frank

# re: Moving your ASP.NET Application to Windows Azure – Part II

Left by Technology at 3/11/2010 9:32 PM
Gravatar
Good work. really informative..

Your comment:



 (will not be displayed)


 
 
 
 
 

Live Comment Preview:

 
«March»
SunMonTueWedThuFriSat
28123456
78910111213
14151617181920
21222324252627
28293031123
45678910