简体   繁体   English

Azure经典云服务无法RDP

[英]Azure classic cloud service cannot RDP

Using "package" option in VS2017, packaged "classic" cloud service with options set for remote desktop. 在VS2017中使用“打包”选项,打包了“经典”云服务,并为远程桌面设置了选项。 Created cert within dialog and all went well, uploaded service to Azure; 在对话框中创建证书,一切顺利,将服务上传到Azure; unable to enable RDP however. 但是无法启用RDP。 Cert is not visible within certificates blade nor in the "enable remote desktop" blade, and cannot (obviously) RDP. 证书在证书刀片中或“启用远程桌面”刀片中不可见,并且(显然)不能RDP。

Also tried enabling per documentation ( here ) using Encryption Certificate for Extensions but cert is not listed (in fact, nothing listed). 还尝试使用扩展加密证书启用每个文档( 此处 ),但未列出cert(实际上未列出任何内容)。

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. 据我所知,这是一个魔咒,在任何地方都没有完整记载。

Step 1. Run "package" on the Azure solution. 步骤1.在Azure解决方案上运行“程序包”。

Step 2. From the dialog, select "Enable remote desktop for all roles," then select "Settings". 步骤2.从对话框中,选择“为所有角色启用远程桌面”,然后选择“设置”。 Create a new certificate and make sure to give it a user-friendly name, like "RDP1". 创建一个新证书,并确保为它提供一个易于使用的名称,例如“ RDP1”。 Do NOT deploy at this point. 此时请勿部署。

Step 3. Run mmc, make sure you have the "Certificates" snap-in loaded. 步骤3.运行mmc,确保已加载“证书”管理单元。 (File | Add/Remove Snapin". Go to Certificates | Local Computer and find the cert you just created ("RDP1"). (“文件” |“添加/删除管理单元”。转到“证书” |“本地计算机”,找到刚创建的证书(“ RDP1”)。

Step 4. Export the cert to a pfx file, that is, making sure you include the private key. 步骤4.将证书导出到pfx文件,即确保您包含私钥。 Remember the folder you exported to. 记住导出到的文件夹。

Step 5. In the Azure portal, in your Cloud Service section, click on "Certificates". 步骤5.在Azure门户的“云服务”部分中,单击“证书”。

Step 6. Make sure there are NO OTHER certs loaded. 步骤6.确保没有加载其他证书。 Upload your newly created cert. 上载您新创建的证书。 Azure will get confused as to which cert to use if there are more than one loaded. 如果加载多个证书,Azure将对使用哪种证书感到困惑。

Step 7. Go to the remote desktop blade and click on "Enabled". 步骤7.转到远程桌面刀片,然后单击“启用”。 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. 现在您将看到为什么只希望加载一个证书的原因-下拉列表仅列出“ CN = Azure Tools”(它们都是),而不是友好名称。 (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?). (为什么?这是一个很好的问题,但是我们不会去那里。)使用您在步骤2中用于创建证书方式的登录凭据(记住吗?)。 Make sure to "Save" which can take minutes (again, "Why?" would be appropriate here.) 确保选择“保存”,这可能需要几分钟的时间(同样,“为什么?”在这里比较合适。)

Step 7. Upload and deploy your cloud service. 步骤7.上传并部署您的云服务。

Step 8. Click on the web role or worker role in the "Overview" blade (pick the instance you're interested in). 步骤8.在“概述”(Overview)刀片中单击Web角色或辅助角色(选择您感兴趣的实例)。 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. 单击它,它将下载一个RDP文件,如果您只需双击将在计算机上启动远程桌面。

This worked for me. 这对我有用。 Your mileage may vary. 你的旅费可能会改变。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM