macos - Azure CLI 无法在 MacOS 上登录

标签 macos azure command-line-interface

我正在尝试登录 Azure CLI,但是当我运行 az login 时,我收到以下错误消息:

Roberts-Mac-Pro:~ robertcordingly$ az login
Port '8400' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Port '8401' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Port '8402' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Port '8403' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Port '8404' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Port '8405' is taken with error '[Errno 8] nodename nor servname provided, or not known'. Trying with the next one
Error: can't reserve a port for authentication reply url
Login failed

我剪掉了大部分行,因为它看起来只是循环通过一堆端口并每次都会收到错误号 8。

如果您知道为什么会发生这种情况,我将非常感谢您的帮助!

最佳答案

你是如何安装azure cli的?使用下面brew formula

 brew update && brew install azure-cli

关于macos - Azure CLI 无法在 MacOS 上登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55528771/

相关文章:

c++ - SpaceBeforeCpp11BrcedList 选项在 macOS 中通过 Homebrew 安装的 clang 格式不可用吗?

macos - 我无法在 vim 中映射我的命令 (Apple) 键

javascript - 如何在 macOS 上安装 Nodemon Nodejs? nodemon 保持显示 : command not found

macos - 运行伪分布式hbase出错

c# - 将 Azure Blob 容器中的 file.bacpac 导入到 Azure SQL 数据库

Azure辅助角色陷入未知角色状态

php - 确定 PHP 脚本的命令行与 http 执行的规范方法是什么?

azure - #AuthorizationFailed az functionapp 部署源 config-zip

css - Node sass watch 直接构建更改的文件而不是入口点文件

azure - 如何从公共(public) azure 静态 Web 应用程序连接到 azure 私有(private)存储帐户