AuthenticationException 类

与身份验证失败相关的异常。 对于大多数实例,此异常的一般解决方案是尝试通过浏览器使用 az login 进行身份验证。 异常的其他原因包括无效的或未指定的订阅信息。 尝试使用 az account set -s {subscription_id} 指定订阅通常可解决缺少的或不明确的订阅错误。 有关使用 az 命令的详细信息,请参阅 https://docs.microsoft.com/cli/azure/authenticate-azure-cli

继承
azureml.exceptions._azureml_exception.UserErrorException
AuthenticationException

构造函数

AuthenticationException(exception_message, **kwargs)

参数

exception_message
str
必需

描述错误的消息。