Thứ Hai, 21 tháng 2, 2011

Hướng dẫn chi tiết Windows Azure Remote Desktop

Register 1 cái Hotmail/Live Mail.

Truy cập vào: http://www.microsoft.com/windowsazure/windowsazure/

Tiến hành order bình thường.

Order cái "Windows Azure Core" nhé, sau này dùng bao nhiêu trả bấy nhiêu, Cloud mà.
- Login = Live Mail.





*Subscription name: Tên gì cũng được.

Qty: 1
Code:
Total per month: $65.65 + Overage




Code:
Thank you!
Your Order Confirmation Number is 1237269983.

Your sign up and purchase of Windows Azure Platform Development Accelerator Core is complete.
 
A confirmation e-mail message has been sent to: bradtaylor24@hotmail.com. Be sure to add msonlineservicesteam@microsoftonline.com to your safe senders list to avoid e-mail messages being discarded as junk e-mail or spam.
Click Finish to begin using your new subscription.
Chờ 15 phút, trong thời gian chờ 15 phút tiến hành cài Microsoft Visual Studio





OK, sau khi chờ 15 phút......

Vào Windows Azure Portal - https://windows.azure.com/Default.aspx

- Chọn "New Hosted Service"



Làm theo hình nhé, Chọn Do not Deploy.

Ok, bây h chuyển sang Visual Studio:

Đầu tiên down cái này "Windows Azure SDK and Windows Azure Tools for Microsoft Visual Studio (November 2010)"

Tại đây: http://www.microsoft.com/downloads/e...4-9dadaa5ed018

Có hướng dẫn cài đặt ở dưới nhé:
Code:
Instructions

   1. Install Microsoft Visual Studio 2010 OR Install Microsoft Visual Web Developer 2010 Express.
   2. Install SQL Server 2008 Express Edition:Install as part of Visual Studio OR Download and install.
   3. Enable IIS7 with ASP.NET and WCF HTTP Activation, Static Content, IIS Management Console, and optionally CGI.
          * Windows 7
               1. From the Start menu, choose Control Panel | Programs | Programs and Features.
               2. Click Turn Windows Features On or Off.
               3. Under Microsoft .NET Framework 3.5, select Windows Communication Foundation HTTP Activation.
               4. Under Internet Information Services, expand World Wide  Web Services, then Application Development Features, then select  ASP.NET and CGI.
               5. Under Internet Information Services, expand World Wide  Web Services, then Common HTTP Features, then select Static Content.
               6. Under Internet Information Services, expand Web Management Tools, then select IIS Management Console.
               7. Install the selected features.
          * Windows Server 2008
               1. From the Start menu, choose Programs | Administrative Tools | Server Manager.
               2. In Server Manager, under Features Summary, choose Add Features.
               3. In the Add Features dialog, under.NET Framework 3.0  Features, select the .NET Framework 3.0. Under WCF Activation, select  HTTP Activation. Click the Next button to install.
               4. In Server Manager, under Roles Summary, verify that  Web Server (IIS) appears in the list of available roles. If it does not,  click Add Roles to install Internet Information Services.
               5. In Server Manager, under Roles Summary, click Web Server (IIS).
               6. In the Web Server (IIS) management window, click Add Role Services.
               7. In the Add Role Services dialog, expand Web Server, then Application Development, select ASP.NET and CGI.
               8. In the Add Role Services dialog, expand Web Server,  then Common HTTP Features, select Static Content and click the Next  button to install.
   4. Install the Windows Azure Tools for Microsoft Visual Studio 1.3 (November 2010) - VsCloudService.exe. (includes the SDK). /*File này down ở link trên */ Or, install just the Windows Azure SDK - WindowsAzureSDK-x86.exe|WindowsAzureSDK-x64.exe
 /* Mấy cái Hotfix này ko cần */
  5. Install the Hotfix: Enable Windows Azure IntelliTrace on 32-Bit OS (not required for x64 OS).
   6. Install the Hotfix: Native Debugging Improvements (not required for Visual Studio 2010).
   7. Install the Hotfix: Support for FastCGI on the Development Fabric  (not required for Windows 7, or Windows Server 2008 SP2 or later).
   8. Install the Hotfix: Improve Visual Studio Stability (not required for Windows 7).
   9. Install the Hotfix: Correct WCF metadata when hosting behind a load balancer (.NET 3.5 Roles) (Windows 7 Hotfix).
         1. Install hotfix.
         2. Add useRequestHeaderForMetadataAddress to configuration file to enable Hotfix.

Cài xong rồi thì chạy Visual Studio 2010


- Chọn C#, Cloud, OK

Chọn 1 trong số mấy cái như Worker Role /* Chú ý chỉ chọn 1 hoặc 2 cái thôi */


Mình chọn 1 cái Worker Role

OK, giờ thì kick đúp vào WorkerRole1 bên tay phải và bạn có thể chọn kích thước cho server của mình:



Instance count: nên chọn 2

VM size: chọn Extra Large



Xong rồi thì Save all lại.

- Chọn Build, Publish ... (Tên mà bạn đặt lúc nãy)

Làm theo hình:





Làm theo hướng dẫn trong hình:



Copy đầy đủ đường dẫn sau đó vào Azure Portal mục Certificates up upload nó lên, sau đó copy đầy đủ Subscription ID và dán vào đây.





Quên mất, vào tạo 1 Storage account nhé.



Bước tiếp theo quan trọng đây:

- Click "Configure Remote Desktop connections"

- "Enable connections for all roles."

Tạo 1 file Cer, chú ý là file Cer này khác với file cer lúc nãy.

Sau khi Add xong thì đên Usename với password cho tài khoản dùng để Remote Desktop

/* chú ý nè, điền xong đừng vội OK nhé, chọn View, Detail, Copy to File... */

- Next

- Yes, export private key



- Next, Next, đặt password cho cái file cer đó.

- Next vài phát nữa bạn được file .pfx

OK vào https://windows.azure.com/Default.aspx



Upload file cer đó lên cùng password vừa đặt.

- Vào Visual Studio chọn OK

Xong rồi, công việc bây h là chờ, chờ khá lâu - khoảng 5 phút đến 10 phút. Có thể ăn mì.






Mình đi ăn mì rồi update nốt phần connect.

Sau khi ăn mì xong thì nó đã tạo xong,



Login với User và Pass mà lúc nãy đã đặt nhé, User này là Administrator. Account Administrator trong win đã disable, bạn có thể enable và set password cho account admin và login = Administrator.

0 nhận xét:

Đăng nhận xét

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by mkha.hero