问题描述
Azurite Mac是否支持CloudTable
的本地仿真? azurite对于EventGridTrigger
有效,但对CloudTable
无效。
使用天蓝色函数与天蓝色存储配合使用:
[FunctionName("...")]
public static async Task<IActionResult> Run(
[HttpTrigger ...,[Table("Name","PK","RK")] ...,[Table("Name")] CloudTable tableOut)
并在Visual Studio For Mac中启动该功能之前运行azurite:
azurite -s -l /tmp/azurite -d /tmp/azurite/debug.log
Microsoft.Azure.WebJobs.Extensions.Storage: Can't bind Table to type 'Microsoft.WindowsAzure.Storage.Table.CloudTable
解决方法
证明最新的azurite不支持表格:
V3当前仅支持Blob和队列服务,请使用V2作为 暂时提供餐桌服务。
sudo npm install -g [email protected]
但这也不起作用。