For non-telemetry events like DeviceConnected, DeviceDisconnected, DeviceCreated and DeviceDeleted, the Event Grid filtering can be used when creating the subscription. Azure Event Grid enables you to react to events in IoT Hub by triggering actions in your downstream business applications. A trigger, such as a Request trigger, is a specific event that starts your logic app. Reference: https://docs.microsoft.com/en-us/azure/event-grid/publish-iot-hub-events-to-logic-apps