﻿{"id":363,"date":"2010-12-10T00:03:50","date_gmt":"2010-12-09T16:03:50","guid":{"rendered":"http:\/\/nick.workao.org\/?p=363"},"modified":"2010-12-10T13:59:09","modified_gmt":"2010-12-10T05:59:09","slug":"%e4%bb%a5%e8%bf%9c%e7%a8%8b%e6%a1%8c%e9%9d%a2%e8%ae%bf%e9%97%aewindows-azure%e8%99%9a%e6%8b%9f%e6%9c%ba%e8%bd%ac%e8%af%91","status":"publish","type":"post","link":"http:\/\/nick.txtcc.com\/index.php\/win\/363","title":{"rendered":"\u4ee5\u8fdc\u7a0b\u684c\u9762\u8bbf\u95eeWindows Azure\u865a\u62df\u673a(\u8f6c+\u8bd1)"},"content":{"rendered":"<p>\u672c\u5468Windows Azure Team\u53d1\u5e03\u4e86\u65b0\u7684\u5f00\u53d1\u95e8\u6237\u548c1.3\u7248\u672c\u7684SDK\u3002\u65b0\u7248SDK\u4e2d\u6709\u8bb8\u591a\u975e\u5e38\u9177\u7684\u7279\u6027\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f\u4ee5\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u6b63\u5728\u8fd0\u884c\u7684Windows Azure\u865a\u62df\u673a\uff0c\u8be5\u7279\u6027\u4e5f\u662f\u6211\u4e4b\u524d\u975e\u5e38\u671f\u5f85\u7684\u7684\u4e00\u4e2a\u65b0\u529f\u80fd\u3002<\/p>\n<h1>\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee<\/h1>\n<p>\u4e3aWindows Azure\u670d\u52a1\u542f\u7528\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u662f\u975e\u5e38\u7b80\u5355\u7684\u3002\u9996\u5148\uff0c\u4f7f\u7528Visual Studio\u521b\u5efa\u4e00\u4e2a\u65b0\u7684Windows  Azure\u9879\u76ee\uff0c\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u6211\u4ec5\u521b\u5efa\u4e00\u4e2a\u5e38\u89c4\u7684\u6ca1\u6709\u4efb\u4f55\u4fee\u6539\u7684MVC2 web role\u3002 \u7136\u540e\u5728\u89e3\u51b3\u65b9\u6848\u7a97\u53e3\u53f3\u51fb\u8be5Windows  Azure\u9879\u76ee\u9009\u62e9&#8221;Publish&#8221;\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/1603514by.png\" border=\"0\" alt=\"\" \/>\n<p>\u9009\u4e2d&#8221;Deploy your Windows Azure project to Windows Azure&#8221;\u5355\u9009\u6309\u94ae\uff0c\u63d0\u4f9b\u8bc1\u4e66,\u90e8\u7f72\u670d\u52a1\/\u69fd\u3001\u5b58\u50a8\u548c\u6807\u7b7e\u7b49\u4fe1\u606f\u3002<\/p>\n<p>\u4e3a\u4e86\u4f7f\u7528\u4e00\u952e\u90e8\u7f72\u7684\u7279\u6027\uff0c\u60a8\u5fc5\u987b\u5c06Management API\u8bc1\u4e66\u4e0a\u4f20\u81f3\u5230\u60a8\u7684Windows Azure\u5e10\u6237\u5185,\u5e76\u5728\u8ba1\u7b97\u673a\u4e0a\u5b89\u88c5\u8be5\u8bc1\u4e66\u3002\n\u60a8\u4f1a\u5728\u5bf9\u8bdd\u6846\u4e0b\u65b9\u53d1\u73b0\u6709\u4e00\u4e2a&#8221;Configure Remote Desktop connections&#8221;\u7684\u8fde\u63a5\u3002\u60a8\u9700\u8981\u901a\u8fc7\u8be5\u94fe\u63a5\u6765\u5f00\u542f\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u529f\u80fd\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/1603564NS.png\" border=\"0\" alt=\"\" \/>\n<p>\u70b9\u51fb\u8fd9\u8be5\u8fde\u63a5\uff0c\u6211\u4eec\u5c06\u914d\u7f6e\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u7684\u6743\u9650\u4fe1\u606f\u3002\u914d\u7f6e\u8fc7\u7a0b\u67094\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ul>\n    <li>\u8bc1\u4e66\uff1a\u6211\u4eec\u9700\u8981\u521b\u5efa\u6216\u9009\u62e9\u4e00\u4e2a\u8bc1\u4e66\u6587\u4ef6\u6765\u52a0\u5bc6\u8bbf\u95ee\u51ed\u8bc1\u3002\u5728\u8fd9\u4e2a\u4f8b\u5b50\u4e2d\u6211\u5c06\u8bc1\u4e66\u6587\u4ef6\u7528\u4e8e\u6211\u7684Management API\u3002<\/li>\n    <li>\u7528\u6237\u540d\uff1a\u8bbf\u95ee\u865a\u62df\u673a\u7684\u8fdc\u7a0b\u684c\u9762\u7528\u6237\u540d\u3002<\/li>\n    <li>\u5bc6\u7801\uff1a\u767b\u5f55\u5bc6\u7801\u3002<\/li>\n    <li>\u6709\u6548\u671f\u9650:\u767b\u5f55\u51ed\u8bc1\u9ed8\u8ba4\u57281\u4e2a\u6708\u540e\u8fc7\u671f\uff0c\u4f46\u6211\u4eec\u53ef\u4ee5\u4fee\u6539\u8be5\u9ed8\u8ba4\u503c\u3002<\/li>\n<\/ul>\n<p>\u5728\u8fd9\u4e4b\u540e\u6211\u4eec\u5355\u51fbOK\u6309\u94ae\uff0c\u8fd4\u56de\u53d1\u5e03\u5bf9\u8bdd<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160357oFy.png\" border=\"0\" alt=\"\" \/>\n<p>\u4e0b\u4e00\u6b65\u8bbf\u95ee\u65b0\u7248Windows Azure\u95e8\u6237,\u627e\u5230\u6258\u7ba1\u670d\u52a1\u6e05\u5355\u3002\u521b\u5efa\u4e00\u4e2a\u65b0\u7684\u6258\u7ba1\u670d\u52a1\u5e76\u4e0a\u4f20\u8bc1\u4e66\u6587\u4ef6\u5230\u8be5\u670d\u52a1\u3002\u7528\u4e8e\u8bbf\u95eeWindows  Azure\u865a\u62df\u673a\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\u5fc5\u987b\u5728\u672c\u5730\u673a\u5668\u4e0a\u52a0\u5bc6\uff0c\u5e76\u5728Windows  Azure\u7aef\u4ee5\u76f8\u540c\u7684\u8bc1\u4e66\u6587\u4ef6\u8fdb\u884c\u89e3\u5bc6\u3002\u8fd9\u5c31\u662f\u6211\u4eec\u4e3a\u4ec0\u4e48\u9700\u8981\u4e0a\u4f20\u8bc1\u4e66\u6587\u4ef6\u5230Windows Azure\u4e0a\u7684\u539f\u56e0\u4e86\u3002\n\u5728\u5de6\u4fa7\u9762\u677f\u7684&#8221;Hosted Services, Storage Accounts &#038; CDN&#8221;\u4e2d,\u521b\u5efa\u4e00\u9879\u65b0\u7684\u6258\u7ba1\u670d\u52a1\uff0c\u547d\u540d\u4e3a&#8221;SDK13\uff0c\u7136\u540e\u70b9\u51fb&#8221;Certificates&#8221;\u3002\u7136\u540e\u6211\u4eec\u70b9\u51fb&#8221;Add Certificates&#8221;\u6309\u94ae\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160358Jxd.png\" border=\"0\" alt=\"\" \/>\n<p>\u9009\u62e9\u672c\u5730\u8bc1\u4e66\u6587\u4ef6\u548c\u5bc6\u7801\uff0c\u5c06\u5176\u5b89\u88c5\u81f3Windows Azure\u670d\u52a1\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160359PlG.png\" border=\"0\" alt=\"\" \/>\n<p>\u6700\u540e\u4e00\u6b65\u4f1a\u8fd4\u56de\u5230Visual Studio\uff0c\u70b9\u51fb\u53d1\u5e03\u5bf9\u8bdd\u6846\u4e2d\u7684OK\u6309\u94ae\u3002\u7136\u540eVisual Studio\u4f1a\u5c06\u7a0b\u5e8f\u5305\uff0c\u4ee5\u53ca\u5e26\u6709\u8fdc\u7a0b\u684c\u9762\u8bbe\u7f6e\u7684\u914d\u7f6e\u6587\u4ef6\u4e0a\u4f20\u81f3Windows Azure\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160400SRQ.png\" border=\"0\" alt=\"\" \/>\n<h1>\u8fdc\u7a0b\u684c\u9762\u8bbf\u95eeWindows Azure\u865a\u62df\u673a<\/h1>\n<p>\u5b8c\u6210\u6240\u6709\u4e0a\u8ff0\u6b65\u9aa4\u540e,\u8ba9\u6211\u4eec\u6765\u56de\u5230\u65b0\u7248Windows Azure\u5f00\u53d1\u95e8\u6237\u3002\u9009\u62e9\u521a\u90e8\u7f72\u81f3Windows Azure\u7684web  role\uff0c\u5728\u5de5\u5177\u680f\u4e0a\u6211\u4eec\u53ef\u4ee5\u770b\u5230\u6709\u4e00\u540d\u4e3a&#8221;Remote  Access&#8221;\u5de5\u5177\u533a\u3002\u5728\u8be5\u5de5\u5177\u533a\uff0c\u6211\u4eec\u770b\u5230Enable\u590d\u9009\u6846\u5df2\u7ecf\u88ab\u52fe\u4e0a\u4e86\uff0c\u8fd9\u610f\u5473\u7740\u8be5web role\u5df2\u7ecf\u5f00\u542f\u4e86\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u529f\u80fd\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160400XiP.png\" border=\"0\" alt=\"\" \/>\n<p>\u5982\u679c\u60f3\u8981\u4fee\u6539\u8fde\u63a5\u51ed\u8bc1\uff0c\u6211\u4eec\u53ef\u4ee5\u76f4\u63a5\u70b9\u51fbConfigure\u6309\u94ae\uff0c\u4fbf\u53ef\u4ee5\u66f4\u65b0\u7528\u6237\u540d\u3001\u5bc6\u7801\u3001\u8bc1\u4e66\u548c\u6709\u6548\u671f\u9650\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/1604015pc.png\" border=\"0\" alt=\"\" \/>\n<p>\u9009\u62e9web role\u4e0b\u7684\u5b9e\u4f8b\u8282\u70b9\uff0c\u6211\u4eec\u53ef\u4ee5\u770b\u5230,\u6211\u4eec\u53ef\u4ee5\u70b9\u51fbConnect\u6309\u94ae\u6765\u542f\u52a8\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160402QUo.png\" border=\"0\" alt=\"\" \/>\n<p>\u70b9\u51fb\u8be5\u6309\u94ae\u540e\uff0c\u6211\u4eec\u4f1a\u4e0b\u8f7d\u4e00\u4e2aRDP\u6587\u4ef6\u88ab\u3002\u8fd9\u662f\u4e00\u4e2a\u8fdc\u7a0b\u684c\u9762\u7684\u914d\u7f6e\u6587\u4ef6, \u53ef\u4ee5\u7528\u6765\u8bbf\u95ee\u6211\u4eec\u7684Windows Azure\u865a\u62df\u673a\u3002\u6211\u4eec\u5c06\u5176\u4e0b\u8f7d\u5230\u672c\u5730\uff0c\u5e76\u8fd0\u884c\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160403P1l.png\" border=\"0\" alt=\"\" \/>\n<p>\u8f93\u5165\u5148\u524d\u7684\u7528\u6237\u540d\u548c\u5bc6\u7801\uff0c\u70b9\u51fbOK\u6309\u94ae\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160405o0W.png\" border=\"0\" alt=\"\" \/>\n<p>\u6b64\u65f6\u53ef\u80fd\u51fa\u73b0\u8bc1\u4e66\u8b66\u544a\u5bf9\u8bdd\u6846\u3002\u8fd9\u662f\u56e0\u4e3a\u6211\u4eec\u7528\u6765\u52a0\u5bc6\u7684\u8bc1\u4e66\u5e76\u4e0d\u662f\u7531\u53ef\u4fe1\u8d56\u7684\u63d0\u4f9b\u5546\u7b7e\u7f72\u7684\u3002\u6b64\u65f6\u9009\u62e9OK\u3002\u56e0\u4e3a\u6211\u4eec\u6e05\u695a\u77e5\u9053\u8be5\u8bc1\u4e66\u5bf9\u6211\u4eec\u6765\u8bf4\u662f\u5b89\u5168\u7684\u3002<\/p>\n<p>\u6700\u540e\uff0c\u6211\u4eec\u6210\u529f\u7684\u4ee5\u8fdc\u7a0b\u684c\u9762\u8bbf\u95eeWindows Azure\u865a\u62df\u673a\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/1604073pk.png\" border=\"0\" alt=\"\" \/>\n<h1>\u5feb\u901f\u7684\u6d4f\u89c8Windows Azure\u865a\u62df\u673a\u6982\u51b5<\/h1>\n<p>\u6211\u4eec\u53ef\u4ee5\u6d4f\u89c8\u4e00\u4e0b\u6211\u4eec\u7684\u865a\u62df\u673a\u3002\u8fd9\u91cc\u67093\u4e2a\u78c1\u76d8\u53ef\u4f9b\u6211\u4eec\u4f7f\u7528:C\u3001D\u3001E\u3002<\/p>\n<ul>\n    <li>C\u76d8: \u50a8\u5b58\u672c\u5730\u8d44\u6e90\u3001\u8bca\u65ad\u4fe1\u606f\u7b49\u3002<\/li>\n    <li>D\u76d8: \u5305\u542bOS\uff0cIIS\uff0c .NET Frameworks\u7b49\u6587\u4ef6\u7684\u7cfb\u7edf\u78c1\u76d8\u3002<\/li>\n    <li>E\u76d8: \u5b58\u50a8\u6211\u4eec\u7684\u5e94\u7528\u7a0b\u5e8f\u4ee3\u7801\u3002<\/li>\n<\/ul>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/160408alY.png\" border=\"0\" alt=\"\" \/>\n<p>\u6258\u7ba1\u4e86\u670d\u52a1\u7684IIS\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/16041034Y.png\" border=\"0\" alt=\"\" \/>\n<p>Windows Azure\u865a\u62df\u673a\u7684IP\u914d\u7f6e\u3002<\/p>\n<img decoding=\"async\" src=\"http:\/\/nick.txtcc.com\/wp-content\/uploads\/remote_image\/2010\/12\/1604122G7.png\" border=\"0\" alt=\"\" \/>\n<h1>\u603b\u7ed3<\/h1>\n<p>\u5728\u8fd9\u7bc7\u5e16\u5b50\u4e2d\u6211\u8bb2\u89e3\u4e86Windows Azure  1.3\u7248\u672cSDK\u5176\u4e2d\u7684\u4e00\u4e2a\u65b0\u7279\u6027-\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u3002\u6211\u4eec\u53ef\u4ee5\u6309\u7167\u6bcf\u4e2a\u670d\u52a1\u6765\u8bbe\u7f6e\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u6743\u9650\uff0c\u8fd9\u6837\u8be5\u670d\u52a1\u4e0b\u7684\u6bcf\u4e2a\u5b9e\u4f8b\u90fd\u80fd\u88ab\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u3002\u8be5\u7279\u6027\u8ba9\u6211 \u4eec\u80fd\u6df1\u5165\u6211\u4eec\u5b9e\u4f8b\u7684\u865a\u62df\u673a, \u6765\u67e5\u770b\u5b9e\u4f8b\u5185\u90e8\u4fe1\u606f\uff0c\u4f8b\u5982\u7cfb\u7edf\u4e8b\u4ef6\u3001IIS\u65e5\u5fd7\u3001\u7cfb\u7edf\u4fe1\u606f\u7b49\u3002<\/p>\n<p>\u4f46\u662f\u6211\u4eec\u5728\u4fee\u6539\u7cfb\u7edf\u8bbe\u7f6e\u65f6\uff0c\u5e94\u6ce8\u610f\u5982\u4e0b2:<\/p>\n<ul>\n    <li>1. \u5982\u679c\u67d0\u4e2a\u670d\u52a1\u6709\u8d85\u8fc7\u4e00\u4e2a\u7684\u5b9e\u4f8b\uff0c\u6211\u4eec\u5c31\u5e94\u8be5\u786e\u4fdd\u6240\u6709\u7684\u865a\u62df\u673a\/\u5b9e\u4f8b\u6709\u7740\u76f8\u540c\u7684\u7cfb\u7edf\u8bbe\u7f6e\u3002\u5426\u5219, \u7531\u4e8e\u5b9e\u4f8b\u95f4\u7684\u4e0d\u540c\u8bbe\u7f6e\u4f1a\u4f7f\u8d1f\u8f7d\u5747\u8861\u4ee3\u7406\u65e0\u6cd5\u6b63\u5e38\u5de5\u4f5c\u3002<\/li>\n    <li>2. \u5f53\u865a\u62df\u673a\u4e2d\u9047\u5230\u4e86\u4e00\u4e9b\u95ee\u9898,\u9700\u8981\u88ab\u8f6c\u79fb\u81f3\u53e6\u4e00\u4e2a\u7269\u7406\u8ba1\u7b97\u673a\u65f6\uff0c\u6211\u4eec\u9700\u8981\u5bf9\u8be5\u65b0\u673a\u5668\u8fdb\u884c\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<p>\u672c\u6587\u7ffb\u8bd1\u81ea\uff1a<a href=\"http:\/\/geekswithblogs.net\/shaunxu\/archive\/2010\/12\/03\/remote-desktop-to-your-azure-virtual-machine.aspx\"><a href=\"http:\/\/geekswithblogs.net\/shaunxu\/archive\/2010\/12\/03\/remote-desktop-to-your-azure-virtual-machine.aspx\">http:\/\/geekswithblogs.net\/shaunxu\/archive\/2010\/12\/03\/remote-desktop-to-your-azure-virtual-machine.aspx<\/a><\/a><\/p>\n<p>Windows Azure <a href=\"http:\/\/www.microsoft.com\/downloads\/en\/details.aspx?FamilyID=7a1089b6-4050-4307-86c4-9dadaa5ed018\">SDK 1.3<\/a> allows customers to connect to their VM\u2019s on the cloud. Below is the  step-by-step article to connect to VM\u2019s via remote desktop.<\/p>\n<p>1) Create simple cloud project with ASP.net role<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/4628.image_5F00_6CB04362.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/1030.image_5F00_693E85ED.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/4428.image_5F00_0FFC7661.png\"><\/a><\/p>\n<p>2) In Visual Studio Solution Explorer,\u00a0 Right click on the Cloud  Service Project and Click \u201cPublish\u201d, It will bring up screen similar to  below. Now, Click on \u201cConfigure Remote Desktop Connections\u201d as  highlighted below<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/4861.image_5F00_1C4A4DF0.png\"><\/a><\/p>\n<p>3) Select \u201cEnable connections for all roles\u201d checkbox, Create  certificate or use existing certificate. This certificate will be used  to encrypt the credentials<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/4477.image_5F00_4137E89C.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/3312.image_5F00_7059AE66.png\"><\/a><\/p>\n<p>Note: Certificate created in this step can be found in Current User\\personal store.<\/p>\n<p>4) Configure Credentials, Expiry date as shown below<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/7534.image_5F00_671D7325.png\"><\/a><\/p>\n<p>5) ServiceConfiguration.cscfg , ServiceDefinition.csdef looks similar  to below. In case you would like to manually configure the settings,  below highlighted settings should be configured to enable remote desktop  connection.<\/p>\n<p>ServiceConfiguration.cscfg<\/p>\n<p><?xml version=\"1.0\" encoding=\"utf-8\"?><\/p>\n<p><ServiceConfiguration serviceName=\"RemoteConnect\" xmlns=\"<a href=\"http:\/\/schemas.microsoft.com\/ServiceHosting\/2008\/10\/ServiceConfiguration\">http:\/\/schemas.microsoft.com\/ServiceHosting\/2008\/10\/ServiceConfiguration<\/a>&#8221; osFamily=&#8221;1&#8243; osVersion=&#8221;*&#8221;><\/p>\n<p><Role name=\"HelloCloud\"><\/p>\n<p><Instances count=\"1\" \/><\/p>\n<p><ConfigurationSettings><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.Diagnostics.ConnectionString\" value=\"UseDevelopmentStorage=true\" \/><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.RemoteAccess.Enabled\" value=\"true\" \/><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountUsername\" value=\"user\" \/><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountEncryptedPassword\" value=\"MIIBnQYJKoZIhvcNAQcDoIIBjjCCAYoCAQAxggFOMIIBSgIBADAyMB4xHDAaBgNVBAMME1dpbmRvd3MgQXp1cmUgVG9vbHMCECY7YujxTkiRToi1balVmo8wDQYJKoZIhvcNAQEBBQAEggEAPqVUbmF5jkFaLnsK1o1VowCgBT\/5VYrI7HiVCmKh8OAnqLarN\/YVvisqGVmL0XSjBxbk9JfRd\/dS3kH9\/JYp+G1STWoG4TsWGNRy6LX6OMQao\/1t\/QbUtaIreMAflYVjrF+AiUMPsLWwABphx9x48hNX970EXIylmINfpCLXpUtSCatoafS2Z260tS9ngszvjj+VD98Qn1GvRi6FwVQW8LQASEB3\/h5n1M8oRFIXpAJx57Kj4IwTxGagKCucvMFO05vxFJGdNMGxmfP5mKRCLzXx6BxyiKmV4fMn\/2PCJr7W4sSGycGzBXQz3e8JmDTsc7668Hida5147B78zHCvejAzBgkqhkiG9w0BBwEwFAYIKoZIhvcNAwcECBujO0y+1cv8gBCNjmulM1+bvMPGdWpkBfOO\" \/><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.RemoteAccess.AccountExpiration\" value=\"2011-01-01T23:59:59.0000000+05:30\" \/><\/p>\n<p><Setting name=\"Microsoft.WindowsAzure.Plugins.RemoteForwarder.Enabled\" value=\"true\" \/><\/p>\n<p><\/ConfigurationSettings><\/p>\n<p><Certificates><\/p>\n<p><Certificate name=\"Microsoft.WindowsAzure.Plugins.RemoteAccess.PasswordEncryption\" thumbprint=\"E5B7C551309D21D26DEA8464380C61D7EC8FC4D1\" thumbprintAlgorithm=\"sha1\" \/><\/p>\n<p><\/Certificates><\/p>\n<p><\/Role><\/p>\n<p><\/ServiceConfiguration><\/p>\n<p>Note: You would need to specify the encrypted password if you are configuring AccountEncryptedPassword manually. Following <a href=\"http:\/\/msdn.microsoft.com\/en-us\/library\/gg432965.aspx\">this<\/a> article to encrypt the password using PowerShell.<\/p>\n<p>ServiceDefinition.csdef<\/p>\n<p><?xml version=\"1.0\" encoding=\"utf-8\"?><\/p>\n<p><ServiceDefinition name=\"RemoteConnect\" xmlns=\"<a href=\"http:\/\/schemas.microsoft.com\/ServiceHosting\/2008\/10\/ServiceDefinition\"&#038;gt\">http:\/\/schemas.microsoft.com\/ServiceHosting\/2008\/10\/ServiceDefinition&#8221;&#038;gt<\/a>;<\/p>\n<p><WebRole name=\"HelloCloud\"><\/p>\n<p><Sites><\/p>\n<p><Site name=\"Web\"><\/p>\n<p><Bindings><\/p>\n<p><Binding name=\"Endpoint1\" endpointName=\"Endpoint1\" \/><\/p>\n<p><\/Bindings><\/p>\n<p><\/Site><\/p>\n<p><\/Sites><\/p>\n<p><Endpoints><\/p>\n<p><InputEndpoint name=\"Endpoint1\" protocol=\"http\" port=\"80\" \/><\/p>\n<p><\/Endpoints><\/p>\n<p><Imports><\/p>\n<p><Import moduleName=\"Diagnostics\" \/><\/p>\n<p><Import moduleName=\"RemoteAccess\" \/><\/p>\n<p><Import moduleName=\"RemoteForwarder\" \/><\/p>\n<p><\/Imports><\/p>\n<p><\/WebRole><\/p>\n<p><\/ServiceDefinition><\/p>\n<p>Note: If you are configuring these settings manually, remember to add certificate to web role<\/p>\n<p>6) Export the certificate created in step 3 to pfx format<\/p>\n<p>a)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Open certificate snap in for \u201cMy user account\u201d (current user)<\/p>\n<p>b)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Navigate to Current User\\Personal\\Certificates<\/p>\n<p>c)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Right click on the certificate that we created in step 3<\/p>\n<p>d)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Choose All Tasks \u00e8 Export \u00e8 Choose Next<\/p>\n<p>e)\u00a0\u00a0\u00a0\u00a0\u00a0\u00a0 Choose options as shown in screen shots<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/8055.image_5F00_28F432A7.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/2781.image_5F00_751C1688.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/3782.image_5F00_2CDE34DF.png\"><\/a><\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/7411.image_5F00_63F79D0B.png\"><\/a><\/p>\n<p>7) Upload the certificate to the Windows Azure portal<\/p>\n<p>8) Deploy the application to cloud either via portal or VS2010 Publish option<\/p>\n<p>9) Once the deployment is successful, Go to Windows Azure portal<\/p>\n<p>10) Click on Connect to create .RDP file , save it locally and open the rdp file by double clicking on it<\/p>\n<p><a href=\"http:\/\/blogs.msdn.com\/cfs-file.ashx\/__key\/CommunityServer-Blogs-Components-WeblogFiles\/00-00-01-24-08-metablogapi\/4401.image_5F00_34A61DE4.png\"><\/a><\/p>\n<p>11) When prompted for credentials, specify the credentials mentioned in step 4<\/p>\n<p><strong> <\/strong><\/p>\n<p><strong>Voila! Connected to the VM!<\/strong><\/p>","protected":false},"excerpt":{"rendered":"<p>\u672c\u5468Windows Azure Team\u53d1\u5e03\u4e86\u65b0\u7684\u5f00\u53d1\u95e8\u6237\u548c1.3\u7248\u672c\u7684SDK\u3002\u65b0\u7248SDK\u4e2d\u6709\u8bb8\u591a\u975e\u5e38\u9177\u7684\u7279\u6027\uff0c\u5176\u4e2d\u4e4b\u4e00\u4fbf\u662f\u4ee5\u8fdc\u7a0b\u684c\u9762\u8bbf\u95ee\u6b63\u5728\u8fd0\u884c\u7684Windows Azure\u865a\u62df\u673a\uff0c\u8be5\u7279\u6027\u4e5f\u662f\u6211\u4e4b\u524d\u975e&#46;&#46;&#46;<\/p>","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[231,230,35,232],"class_list":["post-363","post","type-post","status-publish","format-standard","hentry","category-win","tag-remote-desktop","tag-windows-azure","tag-35","tag-232"],"_links":{"self":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/363","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/comments?post=363"}],"version-history":[{"count":3,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/363\/revisions"}],"predecessor-version":[{"id":365,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/posts\/363\/revisions\/365"}],"wp:attachment":[{"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/media?parent=363"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/categories?post=363"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/nick.txtcc.com\/index.php\/wp-json\/wp\/v2\/tags?post=363"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}