Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for more Azure FunctionApp triggers. #218

Closed
CyrusNajmabadi opened this issue Apr 26, 2019 · 4 comments
Closed

Add support for more Azure FunctionApp triggers. #218

CyrusNajmabadi opened this issue Apr 26, 2019 · 4 comments
Assignees
Milestone

Comments

@CyrusNajmabadi
Copy link
Contributor

We currently support http/topic/container/queue triggers. However, now that we're on azure functions 2.0 we can support the following as well:

  1. EventGrid triggers
  2. EventHub triggers
  3. Timer triggers
@CyrusNajmabadi CyrusNajmabadi self-assigned this Apr 26, 2019
@CyrusNajmabadi CyrusNajmabadi added this to the 0.23 milestone Apr 26, 2019
@mikhailshilkov
Copy link
Member

mikhailshilkov commented Apr 30, 2019

  1. Cosmos DB trigger

@mikhailshilkov
Copy link
Member

mikhailshilkov commented May 9, 2019

So, the Event Grid trigger implementation is a bit more tricky:

  1. In order to link an Event Grid subscription to an Azure Function, the webhook URL must include a system key.

  2. There is an HTTP API to get a system key, but it requires a master key.

  3. None of the keys are available from Pulumi resources.

  4. None of the keys are available from Terraform resources: issue.

  5. It's not there because Azure Go SDK doesn't support it.

  6. The last comment there mentions that there will be a new API available soon from the Functions side. Here is the issue to track. The new API on Functions is now deployed.

There is an alternative path: create an HTTP-triggered function and handle EventGrid webhook in manual mode: respond to validation and parse the event from HTTP request.

The downside is that we get an open HTTP function hanging around. The upside: flexibility to get events in Cloud Events standard shape.

This was referenced May 9, 2019
lukehoban pushed a commit that referenced this issue May 14, 2019
@mikhailshilkov
Copy link
Member

I'm watching Azure/azure-functions-host#3994 which should simplify the implementation of the Event Grid trigger (no need to call Kudu APIs)

@mikhailshilkov
Copy link
Member

Everything here except EventGrid is done. Closing in favor of #295.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants