Skip to content

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
Collaborator

@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
@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.

3 participants