Ok really basic - I can't seem to create a subscription to an Azure event grid topic in the Azure Portal. Followed the guides and there is no red ink (to indicate any errors or anything I've missed) in the form but the "Create" button remains steadfastly grey and unreactive to my increasingly desperate presses!
So using "Create Event Subscription" Form on the Azure Portal and...
- Subscription name is correctly formatted.
- Topic has ben correctly generated (in fact its pre-filled) as I'm choosing the create option from the event topic. Topic is active.
- Endpoint is valid - I selected it from drop downs that only show functions which are event grid triggers so doesn't look like I could select any endpoint that wasn't. I created the function specifically to test the trigger.
Obviously missing something very basic but the form is giving no clue as to what it is.
Only thoughts are:
- I haven't specified an event type filter but as far as I'm aware it defaults to all which is why the online guide makes no mention of this option.
- The function I've created doesn't do anything but I can't see why that would stop it being triggered and thus being a valid endpoint.
I'm at a loss. I've included the json for the attempted subscription shown in the advanced editor if that provides any clues...
{
"name": "testeventsub",
"properties": {
"topic": "/subscriptions/xxxxxxxxxx/resourceGroups/DBProject/providers/Microsoft.EventGrid/topics/filings",
"destination": {
"endpointType": "AzureFunction",
"properties": {
"resourceId": "/subscriptions/xxxxxxxxxxx/resourceGroups/DBProject/providers/Microsoft.Web/sites/FilingTestEventTrigger1/functions/NewFilingTrigger1",
"maxEventsPerBatch": 1,
"preferredBatchSizeInKilobytes": 64
}
},
"filter": {
"advancedFilters": []
},
"labels": [],
"eventDeliverySchema": "EventGridSchema"
}
}