我用的是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下载文件。
我在这里错过了什么?
编辑:添加了一个示例索引文件,我已经通过公共访问将其上传到Azure上。该索引文件是使用文档中的学术示例生成的。
>kes describe_index https://kesstorage.blob.core.windows.net/kess/Academic.index
ERROR: ResourceNotFound: The storage account 'kesstorage' was not found.发布于 2018-04-02 18:00:38
kes.exe正在使用旧的服务管理API。它在您的订阅中查询存储帐户的API,但此API早于Azure资源管理器( ARM ),因此不了解ARM存储帐户。您将需要使用一个经典存储帐户代替。
有关如何创建经典存储帐户教程,请参阅以下链接:https://learn.microsoft.com/en-us/azure/storage/common/storage-create-storage-account#create-a-storage-account
https://stackoverflow.com/questions/49610763
复制相似问题