@cardib Thanks for reaching out to Microsoft Q&A, apologize for any inconvenience caused on this.
When you are using the Identity-based authentication in the output binding set the Connection
property to the name of your app setting that contains your Event Grid Topic endpoint along with a set of optional Identity information that is described in detail here.
When setting the Connection
property, the TopicEndpointUri
and TopicKeySetting
properties should NOT be set.
@app.event_grid_output( arg_name="outputEvent", connection="mytesteventgrid__topicEndpointUri")
For more information, you can refer to the samples mentioned in the documentation EventGrid client library using .Net SDK.
Hope this helps let me know if you have any further questions on this.