[New portal] windows azure platform (60) use Windows azure Management Portal to create web site (below) Windows azure

Source: Internet
Author: User

Windows azure platform articles

Before starting this chapter, make sure that you have installed:

    • Windows 8 release preview English 64bit
    • Visual Studio ultimate 2012 release candidate
    • Windows azure sdks 1.7x64

In this chapter, I will introduce how to deploy the local vs2012 web site on the Windows azure platform.

First, weAs administratorRun vs2012. Select "file" --> "new project ". In the displayed window, select Visual C # --> Web --> ASP. NET mvc4 web application. We name this project "mywebsite"

(Note: The default framework 4.5 is created in vs2012, But windows azure only supports 4.0 for the time being. NET Framework 4 is selected here)


Next, select "Internet application"

After the project is created, right-click the created Project and click "publish"

"Publish Web" will pop up. We will select "import" to import the publishsettings downloaded in the previous chapter.

If you are interested, you can open "leimvc4.azurewebsites.net. publishsettings "file, we can see that this file is actually the XML format of the specimen, used to describe how to connect to Windows azure web site. For example:

After the import is complete, we will go to the "connection" step. We can click "Validate connection" to test the Windows azure connection. If the connection is valid, a green check is displayed on the right of the button. For example:

Click Next to go to the next step "Settings ". Here we can configure the released version ("release" or "debug") and the database connection string. We cannot use it yet. Click "Next"

Then, go to the "preview" page ". The purpose of this step is to modify the files and modules we can preview before deploying the web site. In addition, only the updated page content is uploaded, and other content is not updated, which can speed up our deployment. For example, we can click "Start preview ":

Because it is my first deployment, I need to upload all the page content. The information I need to upload is displayed. We can click "publish" to publish this Web site.

After you click "publish", vs2012 displays the deployment process.

After the deployment is complete, open the IE browser and enter the site name: http://leimvc4.azurewebsites.net/. you can refer to the site behind our website:

Select vs2012, modify the content of a page, and right-click Publish. We can see in step "preview" that the system will prompt me for the updated content:

In this way, during the deployment process, vs2012 will only update the above two content, and other content will not be updated. This accelerates our deployment of azure website.

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.