Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/blackberry/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python Azure批量API rising';属性错误';在ML笔记本中_Python_Azure_Azure Batch_Azureml - Fatal编程技术网

Python Azure批量API rising';属性错误';在ML笔记本中

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和凭据: 作为凭

我正在尝试用python API与Azure批处理进行交互,方式如下:

从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)
请看地图