OpsRamp consumes your Azure events. To use Azure Event Grid, you need to select the Azure resource you would like to subscribe to, and enter the event handler to send the event to. Event Grid has built-in support for events coming from Azure services, such as storage blobs, and resource groups. Event Grid also has support for your own events, using custom topics.

An event handler is the place where the event is sent. The handler takes some further action to process the event. Several Azure services are automatically configured to handle events.

Create Azure Event Handler

  1. Log in to the Azure portal and select Event Hubs.

  2. Create an Event Hubs namespace. For instructions, see create an Event Hubs namespace in Microsoft documentation.

  3. Create an event hub within the namespace just created. For instructions, see create an event hub in Microsoft documentation.

  4. Click the subscription name or any resource groups. These are the event sources.

  5. Click Events on the left pane and click +Event Subscription to create an event subscription.

  6. On the Create Event Subscription page:

    • Event Subscription Details: Select Event Grid Schema or Cloud Event Schema.
    • Event Types: Select all event types.
    • Endpoint Details: Select Event Hubs from the drop-down.
    • Endpoint: Click Select an endpoint.
    • In the Select Event Hub window, enter Event Hub Namespace and Event Hub details.
  7. Click Create and verify that Event Source is mapped to Event handler.

Create a shared access policy

  1. On the Azure home page, choose Event Hubs.

  2. From the list of all Event hubs created, click the Event hub name.

  3. On the left pane, click Shared access policies and click +Add to add a policy. For instructions, see Get connection string from the portal.

  4. Select Listen. Permission Listen is required.

    Azure - Shared access policies

    Azure - Shared access policies

  5. Click Create. A shared access policy is created. Use the Event Hub shared access policy connection string when creating a discovery profile.