我正在尝试登录 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/