How to Enable/Disable Azure Function programmatically

后端 未结 5 780
南方客
南方客 2020-12-11 05:25

Is there a way to programmatically enable/disable an Azure function?

I can enable/disable a function using the portal under the \"Manage\" section, which causes a r

5条回答
  •  爱一瞬间的悲伤
    2020-12-11 05:51

    I would imagine you can use Kudu REST API (specifically VFS) to update the disabled metadata property in function.json. Would that disable the function? Here is the Kudu REST API. https://github.com/projectkudu/kudu/wiki/REST-API

提交回复
热议问题