Logic App Webhook authorization failure to subscribe Event Grid topic

mandarm-8234 20 Reputation points
2024-06-17T17:41:47.6966667+00:00

Hello,

Context : I am using a HTTP webhook in logic App to receive events from Event Grid custom topic

Problem : The http webhook trigger fails with authorization error trying to subscribe to an existing Event grid Topic, with both authentification methods

1. Adding system assigned managed identity (of Logic App) with Event Grid contributor role :

{

"error": {

"code": "Unauthorized",

"message": "Request must contain one of the following authorization signature: aeg-sas-token, aeg-sas-key. Report '22f56014-e4b5-4c72-aec5-48811250dafe:3:6/18/2024 10:56:51 PM (UTC)' to our forums for assistance or raise a support ticket.",

"details": [{

"code": "Unauthorized",

"message": "Request must contain one of the following authorization signature: aeg-sas-token, aeg-sas-key. Report '22f56014-e4b5-4c72-aec5-48811250dafe:3:6/18/2024 10:56:51 PM (UTC)' to our forums for assistance or raise a support ticket."

}]

}

}

2. Adding Event grid SAS key in the request parameter of Logic App's webhook trigger :

https://myexistingtopic.westeurope-1.eventgrid.azure.net/api/events?aeg-sas-key=mysaskeyHere

{

"error": {

"code": "Unauthorized",

"message": "The request authorization key is not authorized for CUSTOMCOMMONTOPIC.WESTEUROPE-1.EVENTGRID.AZURE.NET. Report '118447cf-3350-4dda-819e-2bb24f3d086a:1:6/19/2024 9:42:49 AM (UTC)' to our forums for assistance or raise a support ticket.",

"details": [{

"code": "Unauthorized",

"message": "The request authorization key is not authorized for CUSTOMCOMMONTOPIC.WESTEUROPE-1.EVENTGRID.AZURE.NET. Report '118447cf-3350-4dda-819e-2bb24f3d086a:1:6/19/2024 9:42:49 AM (UTC)' to our forums for assistance or raise a support ticket."

}]

}

}

Thank you

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,221 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
396 questions
0 comments No comments
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.