【问题标题】:Azure ML operations : workspace authentication errorAzure ML 操作:工作区身份验证错误
【发布时间】:2021-01-08 07:48:36
【问题描述】:

在通过容器实例部署期间,我需要连接 Azure ML Workspace。

ws = Workspace(subscription_id="your-sub-id",
              resource_group="your-resource-group-id",
              workspace_name="your-workspace-name"
              )

对 ML 工作区的交互式身份验证提示登录,然后失败并显示以下错误消息。

AttributeError: 'BasicTokenAuthentication' object has no attribute 'get_token'

i have been following this Azure Authentication document.

非常感谢任何帮助。

【问题讨论】:

  • 你使用的是什么版本的 SDK?
  • @AndersSwanson Azure ML SDK 版本:1.0.69
  • 强烈建议您升级到最新版本的 SDK (1.1.14)。 1.0.69 是在差不多一年前发布的,从那时起很多事情都发生了变化和改进。

标签: azure azure-machine-learning-service


【解决方案1】:

对我来说,这是通过将 azureml-core 从 1.13.0 更新到 1.14.0 来解决的。

【讨论】:

    【解决方案2】:

    如果这是自动部署,我建议您考虑使用ServicePrincipalAuthentication,就像您链接建议的文档页面一样。通过这种方式,您可以将客户端 ID 和客户端机密作为环境变量传递。

    【讨论】:

      猜你喜欢
      • 2017-10-11
      • 2016-01-18
      • 2012-03-11
      • 2017-11-26
      • 2021-05-08
      • 2021-03-31
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多