0

我正在使用Azure 的知识探索服务。我准备了一个语法和一个索引文件。因为它的大小很小,所以我可以在本地机器和 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.
4

1 回答 1

1

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

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

于 2018-04-02T18:00:38.930 回答