Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
<when condition="@(context.Variables.GetValueOrDefault<bool>("isEventGridSubscriptionValidation"))">
<set-status code="200" reason="OK" />
var events = context.Request.Body.As<string>();
JArray a = JArray.Parse(events);
var eventGridData = a.First["data"];
var validationCode = eventGridData["validationCode"];
var jOutput =
new JObject(
new JProperty("validationResponse", validationCode)
return jOutput.ToString();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment