Azure Event Grid publish message error Not authroized (Code: 135)

Gašper Mis 0 Reputation points

I have problem with publishing to Azure Eventgrid via MQTT.

I setup MQTTX to connect to evengrid. Messaging are comming in from other cliend, and I can read them with MQTTX.

But when I try to send message to Eventgrid via MQTT I get following error:

User's image

I have been added permission bindings for Subscriber. I read manual (

Where could be the problem?

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
322 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde 29,461 Reputation points MVP

    Hello @Gašper Mis,

    welcome to this moderated Azure community forum.

    it seems you have your (two) device clients connected to the broker and one client can send a message and this one can receive that message.

    So, the topic subscription works for this device client.

    Now you try to send a message with this device client but that fails.

    Double check the topic you use to send a message with the permission bindings:

    User's image

    It feels like a mismatch in that area, I get the same 135 error message when I misconfigure the publish topic.

    For a full working example see this blog post. At the end you can find a link to video with a demonstration.

    Did you enable the diagnostic settings:

    User's image

    You can check the table with a little more info:

    User's image

    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.

    0 comments No comments