Deploy the local azure project to the cloud server (create hosted services)

Source: Internet
Author: User
Tags visual studio 2010

 

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

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.