3 ms·
Unless I'm misunderstanding your use case, Azure functions have had HTTP triggers[0] for years, the bindings documentation even calls out support for binding di
by Jochim 5y ago
Unless I'm misunderstanding your use case, Azure functions have had HTTP triggers[0] for years, the bindings documentation even calls out support for binding different trigger types to the same function. I was actually surprised that AWS has only just received support.
[0] https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp https://docs.microsoft.com/en-us/azure/azure-functions/funct...
- AndrewDucker 5y agoI don't believe you can have multiple triggers for the same function, so I can't bind it to a time trigger and a http trigger. If you can find an example for doing otherwise I'd be delighted!
- Jochim 5y agoI dug a little further and it looks like you're correct, I had mixed up the concepts of triggers and input bindings after reading the documentation that claims: > You can mix and match different bindings to suit your needs. Bindings are optional and a function might have one or multiple input and/or output bindings.[0] However, there is some documentation explaining how to execute a function that does not have a HTTP trigger via HTTP[1]. The example uses the function app's master key though, it'd be interesting to see if that's a requirement or if you could use a key scoped only for invocation of the specific function. [0]https://docs.microsoft.com/en-us/azure/azure-functions/functions-triggers-bindings?tabs=csharp https://docs.microsoft.com/en-us/azure/azure-functions/funct... [1]https://docs.microsoft.com/en-us/azure/azure-functions/functions-manually-run-non-http https://docs.microsoft.com/en-us/azure/azure-functions/funct...
- AndrewDucker 5y agoThank you!