Hello world for Windows azure

Source: Internet
Author: User
Tags sql 2008 windows azure sdk azure sdk

Helloworld in Windows azure

This article describes how to create and deploy a hello World cloud application.

Prerequisites: 1. register an account on the azure Platform
Http://www.microsoft.com/windowsazure/free-trial/ (PS: Need a liveid account, a card number with VISA function, a bill shipping address does not currently support Mainland China)

2. A 64-bit OS with Vista or later versions

3. Install vs2010

4. Install SQL 2008

5. Download and install Windows azure SDK: http://www.microsoft.com/windowsazure/sdk/

 

1. Create a hello World cloud Application

1. Create a cloud project using vs2010 (currently only C # and VB are supported)

Click OK and select ASP. NET web role

Click OK. After the project is created successfully, the following page is displayed:

2. Update default. aspx (the operation is no different from that of a common ASP. NET application)

Add a label in default. aspx

In the background code, change the label text to "Hello windows azure"

Set the number of backend instances to 2

3. debug This azure Application

Add a breakpoint for the background code

 

View windows azure Simulators

 

 

2. Deploy the Windows azure Application

Click "Hello azure project" on the left and select "package ..."

Click package

After packaging, two files are generated. cspkg contains DLL and resource files generated by the program. cscfg is the configuration file of the cloud application.

Log on to the https://windows.azure.com with the live ID when registering a Windows azure account

After successful login, the interface is as follows. You can think of it as a cloud operating system. For a webrole application that deploys windows azure at one time, click "New hosted service"

Enter an application name. Note that this name + .cloudapp.net must be unique. Therefore, when you enter a value that is duplicated with others, the system will prompt that it is duplicated.

Click Browse in package location (Browse locally ...), Select the generated cspkg file, and Click Browse (browselocally…) of configurationfile ...) Select the generated cscfg file. Click OK.

 

The system displays uploading

Start deployment

Application Deployment completed (internal version)

Click DNS name to view the Running Effect of the application.

Application Running Effect

If the application is confirmed correct, click "swap VIP" to publish the application to the product environment.

After publishing to the production environment, we can use a friendly URL to access our hello World azure.

 

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.