Authentication fails to event grid topic, even though a valid access key is used

Erdem Celik 1 Reputation point
2020-07-24T13:21:39.943+00:00

We received an authentication error from one of our APIs, when publishing an event to our event grid topic.
I verified, that we are using a valid access key for authentication.

In the error logs we have this report code to help you diagnose:
17b64086-0728-438f-8f09-a095229b65da:1:7/24/2020 12:10:19 PM (UTC)

Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
338 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. MayankBargali-MSFT 69,931 Reputation points
    2020-07-24T15:02:02.33+00:00

    Hi anonymous user

    I have looked into the backend logs and I can see that the requested authorization key is not authorized.
    This could happen if you have copy pasted the key and special character are added to it (starting or ending of the string). You can either use command prompt and paste the key to see if there are any special character/space added to the key or you can covert in it UTF-8 format to verify it there is any special character and remove it from the string.

    I will suggest you copy the keys again using "copy to clipboard" option from Event Grid Topic under the key section

    13633-image.png

    Please 'Accept as answer' if it helped so that it can help others in the community looking for help on similar topics.