Hello Community Support,
I am working with an Azure API Management (APIM) instance using the Developer SKU and would like to create an Event Grid subscription for the Microsoft.ApiManagement.UserCreated
event. My goal is to trigger an Azure Function whenever a new user is created in APIM.
I have already ensured that:
The System-assigned Managed Identity is enabled on my APIM instance.
The Microsoft.EventGrid resource provider is registered.
My Function App and APIM are in the same subscription and region.
The APIM identity has been assigned the EventGrid EventSubscription Contributor role.
However, when I try to create the event subscription (via both the Azure Portal and CLI), there is an error with the put request, which is in the Write EventSubscription details:
PUT request for https://management.azure.com/subscriptions/<subscription-id>/resourceGroups/<resource-group>/providers/Microsoft.ApiManagement/service/<apim-name>/eventGridFilters/<event-sub-name>?api-version=2022-08-01 failed with status code: BadRequest, code: ValidationError and message: System-assigned managed identity is not enabled on API Management service..
The API call references the eventGridFilters
resource type, and appears to be blocked due to an internal configuration flag.
Please enable Event Grid system topic integration support for my API Management instance so that I can use Event Grid to subscribe to APIM events.
What do people suggest I do? I tried opening a ticket but can never get through the endless drop downs of selections in Azure.
Thanks,
Sean