0

任何想法如何让 azure-cli 在 Visual Studio 在线环境中工作?

我尝试通过官方文档安装 - https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli-latest

echo "deb https://packages.microsoft.com/repos/azure-cli/ buster main" | sudo tee /etc/apt/sources.list.d/azure-cli.list

并尝试安装

vsonline:/etc/apt/sources.list.d$ sudo apt-get install azure-cli
Reading package lists... Done
Building dependency tree       
Reading state information... Done
Package azure-cli is not available, but is referred to by another package.
This may mean that the package is missing, has been obsoleted, or
is only available from another source

E: Package 'azure-cli' has no installation candidate
4

1 回答 1

1

我已经通过手动放置来自 Debian 拉伸版本的不同包来解决,并且我可以确认 az login 现在可以在 Visual Studio Online 环境中工作:)

echo "deb https://packages.microsoft.com/repos/azure-cli/ stretch main" | sudo tee /etc/apt/sources.list.d/azure-cli.list

接着

sudo apt-get update
sudo apt-get install azure-cli
于 2019-11-14T10:33:23.150 回答