无法在 AKS 中使用云 shell 安装 Azure Dev Spaces
Cannot install Azure Dev Spaces using cloud shell in AKS
当我 运行 在云中执行以下命令时 shell。
az aks use-dev-spaces -g aksrgrp -n akscluster
我收到以下错误。任何帮助将不胜感激
You may be prompted for your administrator password to authorize the installation process.
/tmp/tmpy1vng2we/azds-linux-setup.sh: line 84: sudo: command not found
/tmp/tmpy1vng2we/azds-linux-setup.sh: line 112: sudo: command not found
[INFO] Failed to install dotnet core dependencies.
[INFO] You can manually install all required dependencies based on the following documentation:
[FATAL] https://www.microsoft.com/net/download/dotnet-core/2.1
Azure Dev Spaces CLI not installed properly. Visit 'https://aka.ms/get-azds' for Azure Dev Spaces.
错误说明了问题发生的原因。 找不到命令azds
。因为云shell没有安装命令工具。您可以在云端找到所有安装的命令工具shell here。
我建议你可以在azure Kubernetes的Azure VM中安装你需要的工具,如果你没有找到你想要的工具。
这对您来说是更好的方法。顺便说一下,Cloud Shell 只允许访问基于浏览器的命令行体验,该体验是考虑到 Azure 管理任务而构建的。所以在VM中安装Azure CLI是一个更好的体验。
添加到 Charles 的回答中:Azure Dev Spaces CLI 目前不支持云 Shell 中的 运行。它的功能更多地是为 运行 在您的应用程序源代码所在的本地开发机器上设计的。
当我 运行 在云中执行以下命令时 shell。
az aks use-dev-spaces -g aksrgrp -n akscluster
我收到以下错误。任何帮助将不胜感激
You may be prompted for your administrator password to authorize the installation process.
/tmp/tmpy1vng2we/azds-linux-setup.sh: line 84: sudo: command not found
/tmp/tmpy1vng2we/azds-linux-setup.sh: line 112: sudo: command not found
[INFO] Failed to install dotnet core dependencies.
[INFO] You can manually install all required dependencies based on the following documentation:
[FATAL] https://www.microsoft.com/net/download/dotnet-core/2.1
Azure Dev Spaces CLI not installed properly. Visit 'https://aka.ms/get-azds' for Azure Dev Spaces.
错误说明了问题发生的原因。 找不到命令azds
。因为云shell没有安装命令工具。您可以在云端找到所有安装的命令工具shell here。
我建议你可以在azure Kubernetes的Azure VM中安装你需要的工具,如果你没有找到你想要的工具。
这对您来说是更好的方法。顺便说一下,Cloud Shell 只允许访问基于浏览器的命令行体验,该体验是考虑到 Azure 管理任务而构建的。所以在VM中安装Azure CLI是一个更好的体验。
添加到 Charles 的回答中:Azure Dev Spaces CLI 目前不支持云 Shell 中的 运行。它的功能更多地是为 运行 在您的应用程序源代码所在的本地开发机器上设计的。