在 azure function app 中,如何在创建后手动更改 function app 触发器类型?

In azure function app, how to manually change function app trigger type after creation?

所以,我有一个带有 http 触发器的函数应用程序,具有以下设置

function.json

{
"bindings": [
    {
"authLevel": "function",
"type": "httpTrigger",
"direction": "in",
"name": "req",
"methods": [
"get",
"post"
      ]
    },
    {
"type": "http",
"direction": "out",
"name": "res"
    }
  ]
}

现在,我想将触发器类型更改为队列,我将设置更新为:

{
"type": "queueTrigger",
"direction": "in",
"name": "queueItem",
"queueName": "adreporterqueue",
"connection":"QueueConnectionString"
}

我发布了函数。但是触发类型还是http。与这个问题 (Is there a way to change the Azure function trigger type programmatically.)?

不同,如何将其更改为手动排队而不是以编程方式

恐怕不可能。

不过,这里已经讨论过了:https://docs.microsoft.com/en-us/answers/questions/437094/index.html

[避免重复]