Docs / Contact / connectors/azure-event-grid

Azure Event Grid

Provider: azure | Service: eventgrid | Direction: Write

Azure Event Grid connector for publishing events to a custom topic endpoint using a topic access (SAS) key. This is a forward-only connector for event-driven architectures.

Required Permissions#

The topic access key authorizes publishing to the topic endpoint. Generate the key from the Event Grid topic's Access keys blade in the Azure portal.

Operation#

When a message reaches this connector, it publishes one event to the topic endpoint. The payload must supply:

Payload field Required Description
subject Yes Event subject
eventType Yes Event type identifier
data Yes Event data

Connector Configuration#

The connector is created with type: "cloud", provider: "azure", service_type: "eventgrid", plus:

Field (config) Required Description
event_grid_url Yes Event Grid topic endpoint URL
event_grid_key Yes Topic access (SAS) key (use ${secrets.eventgrid_key})
Note

Event Grid publishing always uses the topic access key (aeg-sas-key); there is no Azure AD / role-based mode for this service.

Output#

json

{
  "status": "completed",
  "data": {
    "status": "published",
    "subject": "devices/sensor-1"
  }
}

Example#

json

{
  "type": "cloud",
  "provider": "azure",
  "service_type": "eventgrid",
  "event_grid_url": "https://my-topic.eastus-1.eventgrid.azure.net/api/events",
  "event_grid_key": "${secrets.eventgrid_key}"
}