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.