有什么想法可以让azure cli在Visual Studio Online Environment中工作吗?
我尝试通过官方文档安装-https://learn.microsoft.com/en-us/cli/azure/install-azure-cli-apt?view=azure-cli最新
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
我已经通过手动放入Debian stretch版本的不同包来解决问题,我可以确认az登录现在可以在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