1. Local Compilation
For the Visual Studio project in the previous chapter, Please create or reopen a Windows azure project.
Then open the hellowindowsazure project --> roles --> mywebrole --> right-click --> Property
Change instance to 3 and VM Size to small.
Modify the default. aspxs page of mywebrole.
Make sure that no error occurs in build --> build solution.
Select hellowindowsazure project, right-click package
The pop-up window appears. If you want to use the cloud configuration file, selectServiceconfiguration. Cloud. cscfg
Otherwise, selectServiceconfiguration. Local. cscfg
The folder is displayed, which contains two files with the suffixes cspkg and cscfg. Do not close the folder window first.
2. Cloud settings
Open your browser, enter https://windows.azure.com/default.aspx, and enter the Windows Live ID that you have bound to the Windows azure service.
Click managed services, storage accounts, and CDN, and select managed services
Then select create managed service.
Select subscription: The subscribed windows azure service account.
Enter the server name: add a name to your azure service.
Enter the service URL prefix: This URL is used to access your web application after you deploy the web application on the Windows azure cloud computing platform. If the URL you set is the same as another user's URL, Windows azure will remind you to reset it.
Select a region or geographic group: You can select the Windows azure cloud computing data center closest to your physical location, and the data center closest to Mainland China is located in Hong Kong, East Asia, So I select East Asia.
(GEO groups mean that you can create an alias for Windows azure data centers in east Asia and Central America, for example, if I name the "East Asia" Data Center "Hong Kong data center", I will be able to set up a Windows azure data center by selecting the alias "Hong Kong Data Center)
Deployment Options:
A Windows azure web site has two environments: a transitional environment and a production environment.
URLs generated in the transition environment are composed of guids, which are usually used for testing and internal release sites.
The URL generated in the production environment is the service URL entered by the user, which is usually used for commercial use and official release of the site.
Select the two folder locations after Visual Studio 2010 package.
Select OK after uploading.
Upload my compiled site files to Windows azure.
Generally, the entire upload process is about 10-15 minutes. The process is as follows:
1. upload your cspkg and cscfg
2. After the upload is complete, apply for a computing node
3. Start the computing node
4. Deploy your applications to each computing node.
After successful deployment:
The status is ready, indicating that my release is successful.
Then I can use the URL set above:
Http://leihelloazure.cloudapp.net/
To visit my first Windows azure site.
Category:
Windows azure