带有相关过滤器的 azure 函数传出服务总线消息

azure function outgoing service bus message with correlation filter

我有一个 azure 函数,我想将消息发送到上面有相关过滤器的服务总线。具体来说,相关过滤器位于 label/subject 上,值为 'APPLICATION'。相关过滤器

如何从 azure 函数发送消息以便它设置此值并且订阅将接收消息?

目前函数设置如下:

index.js:

module.exports = async function(context, inMessage) {
  context.bindings.outMessage = someJavascriptObject;
}

function.json:

{
  "bindings": [
    {
      "name": "inMessage",
      "type": "serviceBusTrigger",
      "direction": "in",
      "topicName": "some_topic_1",
      "subscriptionName": "SUBSCRIPTION_NAME",
      "connection": "CONNECTION_STRING_1"
    },
    {
      "name": "outMessage",
      "type": "serviceBus",
      "topicName": "some_topic_2",
      "connection": "CONNECTION_STRING_2",
      "direction": "out"
    },
  ]
}

目前不支持。请参阅 https://github.com/Azure/azure-sdk-for-net/issues/21884