Azure CLI 无法执行命令 - 一直说凭据已过期
Azure CLI can't execute commands - keeps saying credentials have expired
每次我尝试 运行 来自 Azure CLI 的命令时,都会返回一条错误消息,指出我的凭据已过期。这可能会在我注销然后重新登录并尝试 运行 任何类型的命令后立即发生。下面是一个示例:
user:~ $ azure group show resourcename
info: Executing command group show
+ Listing resource groups
error: Credentials have expired, please reauthenticate.
Detailed error message from ADAL is as follows: Error: Entry not found in cache.
info: Error information has been recorded to /Users/me/.azure/azure.err
error: group show command failed
Azure CLI 可能会在一段时间后丢失凭据
您需要做的就是使用 CLI 命令再次登录:
— azure login --username <Your Username>
它会提示输入密码,最好从那里开始
此外,如果您打开 azure.err 文件,您将看到特定的异常详细信息
每次我尝试 运行 来自 Azure CLI 的命令时,都会返回一条错误消息,指出我的凭据已过期。这可能会在我注销然后重新登录并尝试 运行 任何类型的命令后立即发生。下面是一个示例:
user:~ $ azure group show resourcename
info: Executing command group show
+ Listing resource groups
error: Credentials have expired, please reauthenticate.
Detailed error message from ADAL is as follows: Error: Entry not found in cache.
info: Error information has been recorded to /Users/me/.azure/azure.err
error: group show command failed
Azure CLI 可能会在一段时间后丢失凭据 您需要做的就是使用 CLI 命令再次登录:
— azure login --username <Your Username>
它会提示输入密码,最好从那里开始
此外,如果您打开 azure.err 文件,您将看到特定的异常详细信息