Event Grid Topic Created in 3 different regions each has no HTTP endpoint

Sam Stuttard 0 Reputation points
2023-12-04T11:00:31.33+00:00

Hello,

I have been creating an event grid topic in my new namespace but when I generate the topic, the guides I am following show you get an http endpoint.

I get no topic endpoint.

I looked up and tried to construct what the endpoint would be using the documentation but I get 404 not found.

When I use GET topics API it also does not find any record of my topics even though it says succeeded in creation

I've tried one in UK south,UK west and Europe West none of them work.

How can I generate a Event Grid Topic HTTP endpoint to publish events to

User's image

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

1 answer

Sort by: Most helpful
  1. JananiRamesh-MSFT 27,341 Reputation points
    2023-12-06T17:36:51.7766667+00:00

    @Sam Stuttard Thanks for reaching out. From the description i understand that you're trying to create a Event grid topic under the namespace.

    A namespace exposes two hostnames:

    • An HTTP endpoint to support general messaging requirements using Namespace Topics.
    • An MQTT endpoint for IoT messaging or solutions that use MQTT.

    User's image

    Retrieve the namespace hostname. You use it to compose the HTTP endpoint to which events are sent. please refer below to create a endpoint for a topic.

    publish_operation_uri="https://"$(az resource show --resource-group $resource_group --namespace Microsoft.EventGrid --resource-type namespaces --name $namespace --query "properties.topicsConfiguration.hostname" --output tsv)"/topics/"$topic:publish?api-version=2023-06-01-preview

    https://learn.microsoft.com/en-us/azure/event-grid/publish-events-using-namespace-topics#publish-an-event

    Do let me know if you have any queries.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    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.