1
votes

I'm trying to do some testing with Azure EventGrid. As such, I'm using https://requestloggerbin.herokuapp.com as an endpoint for a subscription. According to this document the subscription can be manually validated by calling the validationURL with a GET request.

However, here is my validation request, and as can be seen, it does not contain any validationUrl

[{ "id": "d476af6b-787c-4a8d-8ec4-2362952e5fe4", "topic": "/subscriptions/***/resourceGroups/***/providers/microsoft.eventgrid/topics/down", "subject": "", "data": { "validationCode": "XXXXXXX-XXXXX-XXXX-XXXX-XXXXXXX" }, "eventType": "Microsoft.EventGrid.SubscriptionValidationEvent", "eventTime": "2018-05-09T12:41:35.3229136Z", "metadataVersion": "1", "dataVersion": "2" }]

How do I manually validate a subscription request?

1

1 Answers

1
votes

The manual handshake mechanism was introduced in the 2018-05-01-preview version of the Event Grid service. This introduces an additional validation URL in addition to the validation code. To create an event subscription using this new preview API version, you can use the Event Grid CLI extension (az extension add —name eventgrid), or use the latest C# or Python preview SDK of Event Grid to create the event subscription.