【发布时间】:2023-02-18 02:54:08
【问题描述】:
我希望将 VS Code 连接到 Azure Cloudshell,尤其是文件资源管理器组件。
这有点反模式,但 cloudshell 是我能够运行一些连接到 Azure 资源的命令的唯一方式(不允许启动 VM)。
我知道“remote-ssh”扩展可以连接到远程机器并提供一个不错的文件资源管理器,但是,对于 cloudshell,我没有可用的 ssh。但是,可以通过“Azure account”扩展名建立连接。 (还有一个“remote tunnel”扩展,能够通过与 ssh 不同的协议建立连接。)
这是“Azure 帐户”与 cloudshell 建立的连接:
Netid State Recv-Q Send-Q Local Address:Port Peer Address:Port Process
tcp ESTAB 0 0 10.xxx.xx.169:http-alt 10.xxx.xx.29:57404
tcp ESTAB 0 0 10.xxx.xx.169:51710 20.xxx.xx.200:microsoft-ds
有人知道这是否可用于在连接到 Azure cloudshell 的 VScode 中获得完整的远程开发体验吗?
(我尝试在cloudshell中安装vs code serverrpm包,由于缺少yum和sudo权限而失败。)
回答:TLDR:在浏览器的 azure Cloudshell 中输入 code . 以获取文件编辑器。
(无法使用自己的 IDE,只能使用 cloudshell 作为终端)
【问题讨论】:
标签: azure visual-studio-code vscode-remote azure-cloud-shell