components-contrib
components-contrib copied to clipboard
Azure Functions as output binding
Describe the proposal
Create a new binding component that will trigger a function in Azure Functions
Can't this be done with an HTTP binding?
Exactly. You'd just use the HTTP binding to call Azure Functions (can have a private API key as query string param).
https://docs.microsoft.com/en-us/azure/azure-functions/functions-bindings-http-webhook-trigger?tabs=in-process%2Cfunctionsv2&pivots=programming-language-csharp
I do not think this component is necessary.
Thoughts @artursouza ?
What about the different auth solutions for Azure? That would need a component to support those, right?
Also, could we enable the call without requiring a webhook if we use the Azure SDK?
Also, could we enable the call without requiring a webhook if we use the Azure SDK?
You can't invoke functions using an SDK, the HTTP endpoint is the only way, and auth is defined on the endpoint.
At this point, Azure Functions can only be invoked with a Webhook that (when not anonymous) uses auth via a shared secret. I don't believe there's support for AAD auth (unless that gets implemented as part of the Function code by the user).
However, that would be a good thing to ask the Functions team. There's certainly value in exploring stronger auth for Functions.
Closing this issue as there is nothing that can be implemented.
@berndverst releated proposal: https://github.com/dapr/proposals/pull/16