无法在KES中部署索引和语法文件

时间:2018-04-02 11:51:25

标签: azure microsoft-cognitive azure-cognitive-services

我使用Azure的Knowledge Exploration Service。我已经准备好了语法和索引文件。因为它的大小很小,我能够在我的本地计算机和Azure VM上运行它。

但是现在,我想部署这项服务。问题是当我运行命令kes deploy_service时,它无法从Azure存储中下载blob。即使我尝试从本地计算机提供文件。

在Azure VM上执行相同的步骤,我收到相同的错误。

>kes deploy_service Some.grammar Some.index kes-example
00:00:00 Index: Some.index
00:00:00 ERROR: Invalid value for index parameter: 'Some.index' is not a blob URI.

>kes deploy_service Some.grammar https://storagename.blob.core.windows.net/containername/Some.index kes-example
00:00:00 Index: https://storagename.blob.core.windows.net/containername/Bell.index
00:00:02 ERROR: ResourceNotFound: The storage account 'storagename' was not found.

容器具有公共访问权限。我可以通过浏览器甚至通过Azure CLI下载文件。

我在这里缺少什么?

编辑:添加我已通过公共访问权限在Azure存储上上传的示例索引文件。此索引文件是使用文档中的Academic示例生成的。

>kes describe_index https://kesstorage.blob.core.windows.net/kess/Academic.index
ERROR: ResourceNotFound: The storage account 'kesstorage' was not found.

1 个答案:

答案 0 :(得分:1)

kes.exe正在使用旧的Service Management API。它在您的订阅中查询存储帐户的API,但此API早于Azure资源管理器(ARM),因此不了解ARM存储帐户。您将需要使用经典存储帐户。

有关如何创建经典存储帐户教程的信息,请参阅以下链接: https://docs.microsoft.com/en-us/azure/storage/common/storage-create-storage-account#create-a-storage-account