Hello @khuram zahid ,
welcome to this moderated Azure community forum.
MQTT messages received by an EventGrid Namespace MQTT broker can be forwarded by EventGrid Topics (not to be confused with MQTT protocol topics).
This can be a custom EventGrid Topic or an (integrated) EventGrid Namespace Topic.
Either way, these topics can forward messages to one or more endpoints.
Currently, the list of endpoint types are available:
As you can see, Apache Kafka is not supported in one go.
You need to forward messages to some service in between, like a web hook capable to connect to the Apache Kafka endpoint.
As an alternative, perhaps you can migrate the Apache Kafka service to Azure in the form of an EventHub.
In that case you can connect directly.
If the response helped, do "Accept Answer". If it doesn't work, please let us know the progress. All community members with similar issues will benefit by doing so. Your contribution is highly appreciated.