Visual Studio2015 Publishing a Web site to Windows Azure Cloud Service (PAAS)

Source: Internet
Author: User
Tags azure sdk

Visual Studio2015 Publishing a Web site to Windows Azure Cloud Service (PAAS)

Our previous article introduced the STUDIO2015 Publishing site to Windows Azure VMs (Microsoft vsitual machines), which is called the IaaS approach, today. We use visural studio2015 to publish the site to Windows Azure cloud services, which is the PAAs service model. PAAS is an acronym for Platform-as-a-service, meaning platform as a service. The business model of providing a server platform as a service. The corresponding server platform or development environment in the computer age is a PAAs (Platform as a service) provided as services. The so-called PAAs actually refers to the software development platform (the information is defined as the Business Foundation platform) as a service, in the SaaS mode to submit to the user. Thus, PAAs is also an application of the SaaS model, and the most fundamental difference between the services provided by PAAs and those of other services is that PAAs provides a base platform, not an application. Specifically, there is no more to say, we need to consult the relevant information. To get to the bottom, continue with our demo.

Let's start with visual studio2015, first open, then click File---New project

650) this.width=650; "title=" clip_image001 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image001" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhCATNWsAAOOY2jyvtU947.jpg" height= "661"/>

Because we need to deploy Windows Azure cloud, you need to choose cloud----Get the Microsoft Azure SDK

650) this.width=650; "title=" clip_image002 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image002" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRhDyiJLIAAQf-pSlJhU243.jpg" height= "663"/>

Because the component is not installed by default, we click Start download

650) this.width=650; "title=" clip_image003 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image003" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhHBmII3AAQYxtflgq8276.jpg" height= "634"/>

We click Continue

650) this.width=650; "title=" clip_image004 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image004" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhHgmSSuAAMNkeC8fss024.jpg" height= "645"/>

Successfully download and install related components

650) this.width=650; "title=" clip_image005 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image005" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRhGgoTA_AAO9FPQh1Dw159.jpg" height= "649"/>

After you close Visual Studio, you can see the Azure cloud service again by opening Visual Studio again

650) this.width=650; "title=" clip_image006 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image006" src= "http://s3.51cto.com/wyfs02/M02/58/23/wKioL1SqRs-CnuUlAAQg936K1NA730.jpg" height= "662"/>

We define different services according to our own needs.

650) this.width=650; "title=" clip_image007 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image007" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtCQYJiYAAPWs-agckI600.jpg" height= "673"/>

Start creating a project

650) this.width=650; "title=" clip_image008 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image008" src= "http://s3.51cto.com/wyfs02/M01/58/23/wKioL1SqRtCAWsdmAAOziwTrMyk993.jpg" height= "649"/>

650) this.width=650; "title=" clip_image009 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image009" src= "http://s3.51cto.com/wyfs02/M02/58/23/wKioL1SqRtDQNxfzAALaA7NPGaU949.jpg" height= "662"/>

Service creation completed with only one webrole by default

650) this.width=650; "title=" clip_image010 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image010" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtDjR-G-AAUFFGGm0gs022.jpg" height= "653"/>

We are still the same, modify the default Default.aspx file, fill in the custom content:

650) this.width=650; "title=" clip_image011 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image011" src= "http://s3.51cto.com/wyfs02/M01/58/23/wKioL1SqRtHw2n99AAOg3jNzWOM621.jpg" height= "643"/>

We have a local view of the test results:

650) this.width=650; "title=" clip_image012 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image012" src= "http://s3.51cto.com/wyfs02/M02/58/23/wKioL1SqRtHiZWu6AAHAilYRemw869.jpg" height= "585"/>

Then we publish the site to Windows Azure.

650) this.width=650; "title=" clip_image013 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image013" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtHjnlCzAAW3ZdrB6Dg127.jpg" height= "663"/>

Select Subscription File information

650) this.width=650; "title=" clip_image014 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image014" src= "http://s3.51cto.com/wyfs02/M01/58/23/wKioL1SqRtKCDSkbAAT7QRcrtrg533.jpg" height= "653"/>

When publishing to a cloud service, you must create a new cloud service

650) this.width=650; "title=" clip_image015 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image015" src= "http://s3.51cto.com/wyfs02/M02/58/23/wKioL1SqRtLjWsqbAAWlF0-_1M8283.jpg" height= "657"/>

Custom information about cloud services, and the creation of complete

650) this.width=650; "title=" clip_image016 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image016" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtODFcIZAAVXczfAxwY310.jpg" height= "644"/>

Select a cloud service and related storage account information

650) this.width=650; "title=" clip_image017 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image017" src= "http://s3.51cto.com/wyfs02/M01/58/23/wKioL1SqRtODH8oPAAWBwfFvpMI477.jpg" height= "631"/>

Start Publishing

650) this.width=650; "title=" clip_image018 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image018" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtPQaoErAAXOfTN36w8172.jpg" height= "668"/>

Start deployment:

650) this.width=650; "title=" clip_image019 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image019" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhaxIJcWAAUD87tC-C8950.jpg" height= "666"/>

In the deployment service

650) this.width=650; "title=" clip_image020 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image020" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhbwz4P9AAWa8WKMz28014.jpg" height= "654"/>

We also look at the portal status of Azure and have created a new cloud service named Azurecloudpaas

650) this.width=650; "title=" clip_image021 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image021" src= "http://s3.51cto.com/wyfs02/M01/58/23/wKioL1SqRtShkUz9AAJ7Ghvhphk424.jpg" height= "615"/>

At the same time can see the creation and configuration of the relevant service information; We can run it when we're done.

650) this.width=650; "title=" clip_image022 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image022" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRheTQ9scAAW14HfeIWM279.jpg" height= "651"/>

After we create, we open the published information through the cloud service information

650) this.width=650; "title=" clip_image023 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image023" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhfRALT4AAIPDCnprSo810.jpg" height= "518"/>

The page Open service is working correctly. But we found that no virtual machines were generated:

650) this.width=650; "title=" clip_image024 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image024" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhehXTsBAAJ2LAi0UVc702.jpg" height= "613"/>

We open the cloud service about PAAs again:

650) this.width=650; "title=" clip_image025 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image025" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRhuAVplKAAHzYTKJTM4245.jpg" height= "584"/>

650) this.width=650; "title=" clip_image026 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image026" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhuwNgcUAAInmQXEcEE501.jpg" height= "584"/>

See the information in the monitor bar for a little.

650) this.width=650; "title=" clip_image027 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image027" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhuQyk3hAAH6xRLTrKY632.jpg" height= "582"/>

We can see the configuration of a virtual machine

650) this.width=650; "title=" clip_image028 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image028" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRhuzvxbvAAJQCmk5r_E833.jpg" height= "590"/>

The version of the operating system is automatic.

650) this.width=650; "title=" clip_image029 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image029" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRhzx2qPGAAJXzfU4Se0654.jpg" height= "588"/>

Zoom, because I created a webrole, so I don't define scaling

650) this.width=650; "title=" clip_image030 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image030" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhzThA1-AAJDQsQQzYc253.jpg" height= "582"/>

Certificates related to cloud services

650) this.width=650; "title=" clip_image031 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image031" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRhzhGFwMAAHp4PDK04M877.jpg" height= "582"/>

Configuration entries

650) this.width=650; "title=" clip_image032 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image032" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRhzDdhQFAAHPW8lQg8Y421.jpg" height= "585"/>

We can configure the connection via Remote Desktop

650) this.width=650; "title=" clip_image033 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image033" src= "http://s3.51cto.com/wyfs02/M00/58/23/wKioL1SqRtrDNkkDAAHgCYl2NYA106.jpg" height= "588"/>

Enable Remote Desktop

650) this.width=650; "title=" clip_image034 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image034" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRh3DxrJAAAF8n-cJfGw622.jpg" height= "571"/>

Define Remote Desktop logon information; role, user name, and password

650) this.width=650; "title=" clip_image035 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image035" src= "http://s3.51cto.com/wyfs02/M00/58/27/wKiom1SqRh2hCB6xAAHS3LLwMhg040.jpg" height= "587"/>

650) this.width=650; "title=" clip_image036 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image036" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRh7Dv2hXAAIJmfd95GI090.jpg" height= "575"/>

650) this.width=650; "title=" clip_image037 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image037" src= "http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRh7SkANhAAIOOm_FITQ548.jpg" height= "592"/>

After we connect, then log in to change the virtual machine:

We see that the directory structure of the C drive is different from the normal operating system: for example, there is no users directory, input directory, log directory for IIS, etc.

650) this.width=650; "title=" clip_image038 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image038" src= "http://s3.51cto.com/wyfs02/M00/58/24/wKioL1SqRtziGJ7QAALbbUZfGy4054.jpg" height= "698"/>

We look again at the components that are installed on the computer, or we can view the Web-related services through PowerShell. Because, as a Web site, IIS-related services must be installed.

650) this.width=650; "title=" clip_image039 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image039" src= "http://s3.51cto.com/wyfs02/M01/58/27/wKiom1SqRh-hEP5DAAdOhGzw4_Y568.jpg" height= "675"/>

We open the control and panel again to see the installed program

650) this.width=650; "title=" clip_image040 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image040" src= "http://s3.51cto.com/wyfs02/M01/58/24/wKioL1SqRt3SQR05AAa-9pLcvBg902.jpg" height= "687"/>

Finally, we resolve the domain name through our own domain name resolution system:

http://azurecloudpaas.chinacloudapp.cn;

We add a CNAME alias record to execute the URL of Windows Azure

650) this.width=650; "title=" clip_image041 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image041" src= "http://s3.51cto.com/wyfs02/M02/58/24/wKioL1SqRt3z9vfRAAM-aZa6sTk855.jpg" height= "530"/>

650) this.width=650; "title=" clip_image042 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;margin:0px;border-left:0px;padding-right:0px; "border=" 0 "alt = "clip_image042" src= "http://s3.51cto.com/wyfs02/M00/58/24/wKioL1SqRt2xqzJOAALlSbN_Rww334.jpg" height= "481"/>

650) this.width=650; "title=" clip_image043 "style=" border-top:0px;border-right:0px;background-image:none; border-bottom:0px;padding-top:0px;padding-left:0px;border-left:0px;padding-right:0px, "border=" 0 "alt=" clip_ image043 "src=" http://s3.51cto.com/wyfs02/M02/58/27/wKiom1SqRiCjcF_GAAISy94QyyI764.jpg "height=" 498 "/>

This article is from the "Gao Wenrong" blog, make sure to keep this source http://gaowenlong.blog.51cto.com/451336/1599347

Visual Studio2015 Publishing a Web site to Windows Azure Cloud Service (PAAS)

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.