2012年12月23日 星期日

[Tutorial of setting Azure web site and TFS I ] Azure 網站部屬與TFS 教學 (一)







(OMG ASP.NET MVC寫了三年,發的第一篇文竟然跟它毫無關係,真是愧對它了XD!!)

話說微軟雲端的平台內容越來越豐富,今天要來分享Azure使用Team Foundation Server。當然今天的內容並沒有說明如何申請試用版Azure,各位看倌們可以先Google一下,不然就等我補齊囉!!
This is an tutorial about the deployment and set up TFS at Azure(If you have no account , you can create one for free.

P.S 以下範例所使用的專案名稱為LoveAzure,請各位改成你們想要的專案名稱(Ex:Project1)


Windows Azure 首先請各位先登入你們的Windows Azure帳號~

First, login your Windows Azure account



接著切換畫面至WebSite,大家有看到下面灰黑色的ToolBar吧!! 點選NEW讓我們來新增一個專案!!
Then select the web site tag , you can see your own project list.
Now we create a new one. click the +NEW at tool bar.




接著我們要來建立一個網站,先選擇COMPUTE,接著選擇WEB SITE。

As you can see ,we select the "COMPUTE" to build the web site first.

選擇快速建立後要選擇我們打算部屬的網域名(URL):輸入你的專案或網站名。
REGION:是伺服器所在位置(East Asia在伺服器在香港)

Second , let us use "QUICK CREATE" to build the web site.
you can use your project name or site name at url textbox ,and select your region



當你決定了你的專案類型後請等待數秒讓Azure幫您建立雲端專案

When you decided the property of the web site , just wait a moment.






雲端專案建立後,請點選專案名
After creating the project, you can click the project name that you created.



接著他會帶你至這個專案的DashBoard,接著我們來設定雲端TFS伺服器
首先點選"Set Up TFS Publishing"
You can see the doshboard when you selected, now we will set up the TFS on Azure.
First , click the "Set up TFS Publishing"


因為首次使用,所以我們來建立一個屬於自己或專案的TFS(這名稱這是帳號綁定,所以要小心!!)
我們先Create a TFS account!!(如果已有帳號請往下)
If this is your first time.you have to create a new account for your TFS name.
Be careful, it can not be changed after creating.




接著在Account URL輸入你的(或團隊)的專屬名稱後(Ex:Team1),按下Create Account。

Click the "Create Account" after typing your favorite name in textbox.



有了帳號後,回到剛剛的畫面,輸入你的TFS User(Ex:Team1),接著按下Authorize Now來驗證。
Back to preceding page , type the TFS name again and click "Authorize Now"



















確認畫面按Accept繼續。
Click the "Accept" continue.




選擇要發佈的專案(EX:Project1),按下確定。
click the V after the selection of the project you would like to publish.






















等待數秒...
Wait a moment.







大功告成啦!!請記住下面的TFS URL網址

(Ex:Project1.visualstudio.com,這在接下來的文章中會使用到!!)


Well, it is done!! keep your TFS URL in your note. it will be used in further article.

回到主畫面後,你應該可以看到你所建立的專案 EX:Project1
當然順便下載雲端佈署檔,後面文章會使用到。
By the way , you can download the publish file at the place as below.







續...



To be continue..










版權所有!!轉載請註明出處。Best Regards
  


沒有留言:

張貼留言