无法在AKS中使用云外壳安装Azure Dev Spaces

时间:2018-12-03 16:57:32

标签: azure azure-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.

2 个答案:

答案 0 :(得分:2)

要补充到Charles的答案:Azure Dev Spaces CLI当前不支持在Cloud Shell中运行。它的功能更多地设计为可以在您的应用程序源代码所在的本地开发机器上运行。

答案 1 :(得分:1)

该错误显示了为什么发生此问题。 找不到命令azds 。因为云外壳未安装命令工具。您可以找到安装在云外壳here中的所有命令工具。

如果找不到所需的工具,我建议您可以在天蓝色的Kubernetes的Azure VM中安装所需的工具。

这对您来说是一种更好的方法。顺便说一下,Cloud Shell仅允许访问基于Azure管理任务构建的基于浏览器的命令行体验。因此,在VM中安装Azure CLI是更好的体验。