Azure经典云服务无法RDP [英] Azure classic cloud service cannot RDP

查看:128
本文介绍了Azure经典云服务无法RDP的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在VS2017中使用打包"选项,打包经典"云服务,并为远程桌面设置了选项.在对话框中创建证书,一切顺利,将服务上传到Azure;但是无法启用RDP.证书在证书刀片中或启用远程桌面"刀片中都不可见,并且(显然)不能RDP.

Using "package" option in VS2017, packaged "classic" cloud service with options set for remote desktop. Created cert within dialog and all went well, uploaded service to Azure; unable to enable RDP however. Cert is not visible within certificates blade nor in the "enable remote desktop" blade, and cannot (obviously) RDP.

还尝试启用每个文档(此处)使用扩展加密证书,但未列出cert(实际上未列出任何内容).

Also tried enabling per documentation (here) using Encryption Certificate for Extensions but cert is not listed (in fact, nothing listed).

只需进入日志文件,以了解曾经有用的内容,我将进行演示!!

Just need to get to a log file to understand something that used to work and I'm about to demo!!

推荐答案

我终于能够使它正常工作.据我所知,这是一个魔咒,在任何地方都没有完整记载.

I was finally able to get this working. Here is the magic incantation which as far as I can tell is not documented fully anywhere.

步骤1.在Azure解决方案上运行程序包".

Step 1. Run "package" on the Azure solution.

步骤2.在对话框中,选择为所有角色启用远程桌面",然后选择设置".创建一个新证书,并确保为它提供一个易于使用的名称,例如"RDP1".此时不要部署.

Step 2. From the dialog, select "Enable remote desktop for all roles," then select "Settings". Create a new certificate and make sure to give it a user-friendly name, like "RDP1". Do NOT deploy at this point.

第3步.运行mmc,确保已加载证书"管理单元. (文件|添加/删除管理单元".转到证书" |本地计算机",找到您刚刚创建的证书("RDP1").

Step 3. Run mmc, make sure you have the "Certificates" snap-in loaded. (File | Add/Remove Snapin". Go to Certificates | Local Computer and find the cert you just created ("RDP1").

步骤4.将证书导出到pfx文件,即,确保包含私钥.记住导出到的文件夹.

Step 4. Export the cert to a pfx file, that is, making sure you include the private key. Remember the folder you exported to.

步骤5.在Azure门户的云服务"部分中,单击证书".

Step 5. In the Azure portal, in your Cloud Service section, click on "Certificates".

第6步.确保没有加载其他证书.上载您新创建的证书.如果加载了多个证书,Azure将对使用哪种证书感到困惑.

Step 6. Make sure there are NO OTHER certs loaded. Upload your newly created cert. Azure will get confused as to which cert to use if there are more than one loaded.

步骤7.转到远程桌面刀片,然后单击启用".现在您将看到为什么只希望加载一个证书的原因-下拉列表仅列出"CN = Azure Tools"(它们都是),而不是友好名称. (为什么?这是一个很好的问题,但是我们不会去那里.)使用您在步骤2中用于创建证书方式的登录凭据(请记住吗?).确保选择保存",这可能需要几分钟的时间(同样,为什么?"在这里比较合适.)

Step 7. Go to the remote desktop blade and click on "Enabled". You see now why you only want one cert loaded -- the dropdown only lists "CN=Azure Tools" (which they all are) and not the friendly name. (Why? would be an excellent question to ask, but we won't go there.) Use the same login credentials you used to create the cert way back in Step 2 (remember that?). Make sure to "Save" which can take minutes (again, "Why?" would be appropriate here.)

第7步.上传并部署您的云服务.

Step 7. Upload and deploy your cloud service.

步骤8.单击概述"刀片中的Web角色或辅助角色(选择您感兴趣的实例).在新刀片中,您将看到一个连接"按钮.单击它,它将下载一个RDP文件,如果您只需双击将在您的计算机上启动远程桌面.

Step 8. Click on the web role or worker role in the "Overview" blade (pick the instance you're interested in). In the new blade you'll see a "Connect" button. Click it and it will download an RDP file which if you simply double-click will launch Remote Desktop on your machine.

这对我有用.你的旅费可能会改变.

This worked for me. Your mileage may vary.

这篇关于Azure经典云服务无法RDP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆