【发布时间】:2021-06-03 09:24:34
【问题描述】:
我正在尝试通过以下方式使用 python API 与 Azure Batch 交互:
from azure.batch import BatchServiceClient
batch = BatchServiceClient('<mycredential>','https://<mybatchaccount>.<region>.batch.azure.com')
next(batch.job.list())
这是在 ML Studio 笔记本中运行的。
但是出现以下错误:AttributeError: 'str' object has no attribute 'signed_session'.
我正在从我的批处理控制台 UI 中获取 url 和凭据:
作为凭证,我尝试了主要和次要访问密钥以及“URL”作为批处理 url。
我做错了什么吗?
谢谢
【问题讨论】:
标签: python azure azure-batch azureml