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

Added eventgrid connection property #229

Merged
merged 1 commit into from
Jul 1, 2024
Merged

Conversation

gavin-aguiar
Copy link
Contributor

@gavin-aguiar gavin-aguiar commented Jul 1, 2024

Added connection property to the eventgrid trigger.

Connection property is needed to use MI with eventgrid.
Ref: https://learn.microsoft.com/en-us/azure/azure-functions/functions-bindings-event-grid-output?tabs=python-v2%2Cisolated-process%2Cnodejs-v4%2Cextensionv3&pivots=programming-language-python#identity-based-authentication

Event grid output binding decorator will have a connection arg.
Function app can now have connection or a combination of TopicKeySetting and TopicEndpointUri but not both.

@app.event_grid_output(
    arg_name="outputEvent",
    topic_endpoint_uri="AzureWebJobsEventGridTopicUri",
    topic_key_setting="AzureWebJobsEventGridConnectionKey")

OR


@app.event_grid_output(
    arg_name="outputEvent",
    connection="AzureWebJobsEventGridTopicUri")

Fixes: Azure/azure-functions-python-worker#1501

Copy link
Contributor

@hallvictoria hallvictoria left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: link GH issue in description

@gavin-aguiar gavin-aguiar merged commit abecd58 into dev Jul 1, 2024
21 checks passed
@gavin-aguiar gavin-aguiar deleted the gaaguiar/event_grid_mi branch July 1, 2024 21:43
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

Successfully merging this pull request may close these issues.

Identity-based authentication for event_grid_output function-app decorator is not implemented in Python.
2 participants