Python Azure批量API rising';属性错误';在ML笔记本中
我正在尝试用python API与Azure批处理进行交互,方式如下:Python Azure批量API rising';属性错误';在ML笔记本中,python,azure,azure-batch,azureml,Python,Azure,Azure Batch,Azureml,我正在尝试用python API与Azure批处理进行交互,方式如下: 从azure.batch导入BatchServiceClient batch=BatchServiceClient(“”,'https://..batch.azure.com') 下一步(batch.job.list()) 这是在ML Studio笔记本中运行的 但是出现以下错误:AttributeError:“str”对象没有“signed\u session”属性。 我正在从批处理控制台UI获取url和凭据: 作为凭
从azure.batch导入BatchServiceClient
batch=BatchServiceClient(“”,'https://..batch.azure.com')
下一步(batch.job.list())
这是在ML Studio笔记本中运行的
但是出现以下错误:AttributeError:“str”对象没有“signed\u session”属性。
我正在从批处理控制台UI获取url和凭据: 作为凭证,我尝试了主访问键和辅助访问键,并将“URL”作为批处理URL。
我做错什么了吗?
谢谢
不应该是您的裸身份验证密钥字符串。您需要创建一个共享身份验证密钥对象
credentials = batchauth.SharedKeyCredentials(BATCH_ACCOUNT_NAME, BATCH_ACCOUNT_KEY)
batch_client = batch.BatchServiceClient(credentials, base_url=BATCH_ACCOUNT_URL)
请看地图