Today we continue to learn the actual development of Azure, Microsoft Azure Cloud Computing (2): Azure deploys an ASP. NET MVC Web site.
After you sign up for Azure's use account, you'll be able to login to the Azure management interface below. Because we have to use azure resources for our subsequent development work.
As a public cloud platform, Azure provides almost all platform support, including Linux MAC OS Windows, database Mainstream support, website space, database, and virtual host operating system. There are streaming media services, Hadoop integration, BigTable, and more.
Let's start by learning how to deploy a simple ASP.
1th step, login to the Azure account management background
On the Azure official website, http://www.windowsazure.cn/, in the top right corner: My account, or the portal. (The portal is a strange translation, in fact, the user's personal account, many people use Azure for the first time can not find the login interface.) )
650) this.width=650; "title=" Qq20150211120624.png "src=" http://s3.51cto.com/wyfs02/M02/59/A5/ Wkiol1ta1pqbgcwqaampsr6we-m262.jpg "alt=" Wkiol1ta1pqbgcwqaampsr6we-m262.jpg "/>
Click to jump to the login interface https://manage.windowsazure.cn/:
You are required to enter an Azure account that was previously registered. Remember that the ID of this account is the one you applied for in the first article.
[Email protected]
Note that this format, Microsoft uses SSO Single Sign-on technology, here China's Azure account is actually a multi-level sub-domain account.
Look at the example address above and everyone will understand.
Do not confuse, because there are virtual machines and other account settings, this account is only used as the management of Azure landing.
2nd, develop the ASP. NET MVC website
The development of a website is very simple, now azure strictly speaking can deploy C # Java PHP python and other programs, the site we are most familiar with ASP. NET, now popular is the MVC site, of course, can also deploy static Web page HTML.
Microsoft's development tools are handy, and you can use the free tools of Visual Studio or Web matrix to install a variety of open source free websites that deploy third parties.
We do it ourselves. You can use VS to build a MVC5 website. MVC6 can also be deployed to Azure.
The MVC Web site is built by default and can be modified to fit the text. F5 See the effect.
650) this.width=650; "title=" Qq20150211121751.png "src=" http://s3.51cto.com/wyfs02/M01/59/A9/ Wkiom1ta2esgxyxwaazhvaf-uki123.jpg "alt=" wkiom1ta2esgxyxwaazhvaf-uki123.jpg "/> 3rd step, create a new Azure Web site
This is a cost-saving way to deploy a Web site, that is, using a virtual Web site space for Azure, and nothing else. Low cost.
650) this.width=650; "title=" Qq20150211122028.png "src=" http://s3.51cto.com/wyfs02/M01/59/A6/ Wkiol1ta2etjldalaakj-emx3kg878.jpg "alt=" Wkiol1ta2etjldalaakj-emx3kg878.jpg "/> set a bit. Note that the level two domain name should be unique
650) this.width=650; "title=" Qq20150211122549.png "src=" http://s3.51cto.com/wyfs02/M00/59/A6/ Wkiol1ta2uwq05unaahz8dzpqmc935.jpg "alt=" Wkiol1ta2uwq05unaahz8dzpqmc935.jpg "/>
4th step, get the default Azure Web site configuration information
New Azure space, the default already set page, we can click on the temporary right assigned to the URL two level domain access site.
http://mscamp.chinacloudsites.cn/. Here the temporary domain is to help us debug the site.
The official website needs to be filed in China.
The configuration files everywhere can be used directly when Visual Studio publishes the website, which is the perfect place for Microsoft. Save a lot of configuration trouble.
650) this.width=650; "title=" Qq20150211122747.png "src=" Http://s3.51cto.com/wyfs02/M00/59/A9/wKiom1Ta2pKyXa_ Laakgc5kuuiq386.jpg "alt=" Wkiom1ta2pkyxa_laakgc5kuuiq386.jpg "/>
5th step, deploy the ASP. NET MVC Web site
Local debugging is fine. We're going to start deploying the site.
First, we select the right button for the project: the "Publish" buttons. Will let us choose the Release form,
Directly Select Profile: Import the configuration file just now,
650) this.width=650; "title=" Qq20150211123157.png "src=" http://s3.51cto.com/wyfs02/M02/59/A9/ Wkiom1ta24xz71uiaagr83bo814126.jpg "alt=" Wkiom1ta24xz71uiaagr83bo814126.jpg "/>
Then click OK, and Visual Studio will automatically complete the deployment work. We are refreshing just the domain name, we will see the new site.
http://mscamp.chinacloudsites.cn/
The effect is as follows:
650) this.width=650; "title=" Qq20150211123542.png "src=" http://s3.51cto.com/wyfs02/M00/59/A9/ Wkiom1ta3eqxm1noaamfyggoxhw852.jpg "alt=" Wkiom1ta3eqxm1noaamfyggoxhw852.jpg "/>
Of course, you can also use WebMatrix publishing site, similar way, will let you choose to publish the site space address, account password. But Azure's web site development is easy to deploy to the cloud. You can try to assume your own website. Note: Official commercial website needs to be filed in mainland China.
Next we will continue to explain the development of azure virtual machines.
Microsoft Azure Cloud Computing (2): Azure Deploy ASP. NET MVC Web site