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

Gašper Mis 0 Reputation points
2024-05-14T07:31:05.71+00:00

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 (https://learn.microsoft.com/en-us/azure/event-grid/mqtt-publish-and-subscribe-portal).

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.
402 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Sander van de Velde | MVP 33,636 Reputation points MVP
    2024-05-14T11:02:31.1033333+00:00

    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

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.