我目前正在尝试按照本教程 Save IoT Hub messages that contain information like sensor data to Azure table storage 将在我的 Azure IoT 中心收到的消息存储在表存储中。但是,在测试 EventHubTrigger 时,我收到此错误:
[Error] Microsoft.Azure.WebJobs.Host: Error indexing method 'Functions.EventHubTrigger'. Microsoft.WindowsAzure.Storage: Value cannot be null. (Parameter 'connectionString').
这是我的function.json
的内容:
{
"bindings": [
{
"name": "iotHubMessage",
"connection": "RasPi4_events_IOTHUB",
"eventHubName": "raspi4",
"consumerGroup": "lugkra",
"cardinality": "many",
"direction": "in",
"type": "eventHubTrigger"
},
{
"name": "outputTable",
"direction": "out",
"type": "table",
"tableName": "deviceData",
"connection": "raspi4storage_STORAGE"
}
]
}
“连接”值似乎连接到正确的端点。
对于类似的错误,我尝试了几种不同的解决方案,但错误仍然存在。
我将不胜感激!
真诚的, 卢卡斯