找不到本地主机元数据文件' host.json'
我想使用azure-funnctions核心工具“ func Durable delete-task-Hub”此命令在存储帐户下删除TaskHub(我具有当前上下文的存储的连接字符串)。但是当我运行此命令时,它报告:
找不到本地主机元数据文件'host.json' 无法找到项目根。期望在项目root中找到host.json,local.settings.json之一。
我可以使用此命令在Azure Portal中删除TaskHub吗?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
Azure函数核心工具命令用于从您的本地IDE终端或命令提示符中运行,如
您必须将任务中心名称放在
host.json
文件中,作为 azure耐用功能host.json
settings 。使用此命令,您可以删除所有存储工件,包括Azure存储表,队列和斑点。与特定的任务中心相关联,
当我运行Azure耐用函数时,我从第一个结果中知道任务中心名称并传递到上述命令,它成功删除了:
您可以清理存储帐户中存在的
taskHubs
,请参阅此 github票 cgillum 。Azure Functions core Tools commands are used to run from your local IDE terminal or command prompt as mentioned in Microsoft Docs.
You have to place your task hub name in the
host.json
file as the format specified in Azure Durable FunctionsHost.json
settings.With this command, you can delete the all storage artifacts including Azure storage tables, queues, and blobs. associated with a particular task hub,
When I run my Azure Durable Function, I came to know the Task Hub Name from the 1st result and passed to the above command, it successfully deleted:
Cleanup
taskhubs
Programmatically:Through code, you can clean up the
taskhubs
present in a storage account, refer to this GitHub Ticket for the code given by cgillum.