Help Center/ EventGrid/ User Guide/ Event Channels
Updated on 2023-04-26 GMT+08:00

Event Channels

Event channels receive events from event sources.

EG supports the following event channels:

  • Cloud service: A channel automatically created by EG to receive events from cloud services. This channel cannot be modified. Events generated by cloud service event sources can only be published to this channel.
  • Custom: Channels you create to receive events from custom sources.

Creating an Event Channel

  1. Log in to the EG console.
  2. In the navigation pane, choose Event Channels.
  3. Click Create Event Channel.
  4. Enter a channel name and description, and click OK.

    View this channel in the Custom area.

    • Only the event channel description can be modified. To modify it, click Edit in the row that contains the desired event channel.
    • To view details about a custom event channel, click its name in the custom event channel list.

Deleting an Event Channel

  1. Log in to the EG console.
  2. In the navigation pane, choose Event Channels.
  3. Click Delete in the row that contains the desired event channel.

    If the event channel to delete is associated with sources and subscriptions, disassociate it first.

  4. Click Yes.

Publishing Events

Publish events to a channel.

By publishing events, check whether an event source, channel, and target have been connected, whether the configured rules are valid, and whether events can be sent to the target.

Prerequisites

You have created a subscription with a custom event channel, custom application event source, and custom target.

  1. Log in to the EG console.
  2. In the navigation pane, choose Event Channels.
  3. Click Publish Event.
  4. Configure the parameters described in the following table.

    Table 1 Parameters for publishing events

    Parameter

    Description

    Channel

    Select a channel.

    Source

    Enter a custom application event source.

    Event Type

    Enter an event type.

    Event Details

    Enter event content in JSON format.

    Timestamp

    Select a timestamp.

  5. Click Preview to preview the event.
  6. Click Publish. If the event is successfully published, a result similar to that in Figure 1 is displayed.

    Figure 1 Publishing an event
    • To publish more events, click Add Event.
    • You can publish one or more events at a time.
    • To clone an event, click .
    • To delete an event, click .