1

当我在云外壳中运行以下命令时。

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.
4

2 回答 2

2

补充查尔斯的答案:Azure Dev Spaces CLI 目前不支持在 Cloud Shell 中运行。它的功能更适合在应用程序源代码所在的本地开发机器上运行。

于 2019-07-31T18:24:08.753 回答
2

该错误显示了问题发生的原因。它找不到命令azds。因为云壳没有安装命令工具。您可以在此处找到安装在 cloud shell 中的所有命令工具。

我建议你可以在 Azure Kubernetes 的 Azure VM 中安装你需要的工具,如果你没有找到你想要的工具。

这对你来说是一个更好的方法。顺便说一句,Cloud Shell 只是允许访问基于浏览器的命令行体验,该体验是基于 Azure 管理任务构建的。所以在VM中安装Azure CLI是更好的体验。

于 2018-12-04T01:48:22.647 回答