Hello Guru Pasupathy,
Thank you for posting your question in the Microsoft Q&A forum.
You cannot create an Azure Event Grid Namespace topic subscription in push delivery mode for a WebHook endpoint that points to a Logic App (Consumption) using its default trigger URL.
Here’s the detailed explanation of why and what the correct approach is - The Core Problem is Authentication
The primary reason is the authentication requirement for WebHook endpoints with the new Event Grid Namespace (the GA/released version of the service, not the classic "Event Grid" resource).
When you create an event subscription on a Namespace topic and select WebHook as the endpoint type, it mandatorily requires you to select an authentication method (e.g., Azure Active Directory, SAS Token). You cannot proceed without it.
The default HTTP request trigger URL for a Logic App (Consumption) looks like this: ***https://prod-07.westus.logic.azure.com:443/workflows/{GUID}/triggers/manual/paths/invoke?api-version=2016-10-01&sp=%2Ftriggers%2Fmanual%2Frun&sv=1.0&sig={SAS_KEY}***
This URL contains a SAS (Shared Access Signature) token (sig={SAS_KEY}) for authentication. However, the Event Grid Namespace WebHook configuration does not support the specific SAS token format used by the Logic App's built-in trigger. There is no field to configure the sig parameter in the way the Logic App expects it.
The Recommended Solution: Use the "Azure Logic Apps" Endpoint Type
Instead of fighting the WebHook configuration, you should use the dedicated endpoint type built specifically for this purpose.
- When creating your event subscription, in the "Endpoint Details" section, do not select "WebHook".
- Select "Azure Logic Apps" from the dropdown menu of endpoint types.
- Azure will then allow you to browse and select your specific Logic App (Consumption) from your subscription.
Why this works perfectly:
- Automatic Authentication: Behind the scenes, Azure automatically handles the authentication between Event Grid and your Logic App using a managed identity. You don't have to worry about SAS tokens or keys.
- Simplified Setup: The connection is established with a few clicks, eliminating configuration errors.
- Native Integration: It represents the officially supported path for this integration, making it more reliable and future-proof.
Please, let me know the response helps answer your question? If the above answer helped, please do not forget to "Accept Answer" as this may help other community members to refer the info if facing a similar issue. 🙂