Skip to content

Add managed identity support to EventGridOutput - #242

Open
Arnab Nandy (arnabnandy7) wants to merge 1 commit into
Azure:devfrom
arnabnandy7:fix/event-grid-managed-identity
Open

Add managed identity support to EventGridOutput#242
Arnab Nandy (arnabnandy7) wants to merge 1 commit into
Azure:devfrom
arnabnandy7:fix/event-grid-managed-identity

Conversation

@arnabnandy7

Copy link
Copy Markdown

Description

Adds managed identity support to the Java EventGridOutput annotation.

The Event Grid extension supports identity-based authentication through the connection property, but this property was not exposed by the Java annotation. Additionally, the key-based properties were mandatory, preventing users from configuring the annotation exclusively with connection.

Fixes #220.

Changes

  • Added an optional connection property to EventGridOutput.
  • Made topicEndpointUri optional.
  • Made topicKeySetting optional.
  • Added a test covering the identity-based annotation contract.

Users can now configure managed identity authentication as follows:

@EventGridOutput(
    name = "outputEvent",
    connection = "MyEventGridConnection")
OutputBinding<String> outputEvent

The corresponding application setting uses the connection prefix:

MyEventGridConnection__topicEndpointUri

Signed-off-by: Arnab Nandy <arnab_nandy7@yahoo.com>
@arnabnandy7
Arnab Nandy (arnabnandy7) requested a review from a team as a code owner August 8, 2026 16:18
@azure-pipelines

Copy link
Copy Markdown
Azure Pipelines:
There may be pipelines that require an authorized user to comment /azp run to run.

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.

EventGridOutput missing 'connection' attribute to use Managed Identities

1 participant