Send Event to Event Grid Topic from ADF Web activity using Managed Identity

Harsh Ghatge 1 Reputation point
2021-05-20T14:34:35.41+00:00

Hello!

I wish to send an event from ADF "Web" Activity to event grid topic. I managed to do it with sending "aeg-sas-key" from web activity as documented here.
However, when I tried to achieve the same through ADF Web activity without using "aeg-sas-key" and Authentication as managed identity

98259-image.png

But it gives me below error:

{ "error": { "code": "Unauthorized", "message": "Request has an unsupported Authorization scheme:Bearer. Authorization scheme must be SharedAccessSignature. Report 'a2af905c-e3ca-401a-be09-3f0b3c6b7d4e:8:5/20/2021 2:00:24 PM (UTC)' to our forums for assistance or raise a support ticket."

I have added the managed Identity Application of ADF to Event Grid topic with contributor role, but it still does not work. Am I missing something?

98269-image.png

To be short, Can you explain how to connect to Event Grid topic from ADF Web Activity using Managed Identities Authentication?

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
602 questions
Azure Data Factory
Azure Data Factory
An Azure service for ingesting, preparing, and transforming data at scale.
9,073 questions
Azure Event Grid
Azure Event Grid
An Azure event routing service designed for high availability, consistent performance, and dynamic scale.
295 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
18,639 questions
{count} votes

2 answers

Sort by: Most helpful
  1. HimanshuSinha-msft 19,281 Reputation points Microsoft Employee
    2021-05-21T20:39:32.807+00:00

    Hello @Harsh Ghatge ,
    Thanks for the ask and using the Microsoft Q&A platform .
    Looking that the document here and also looking at the error at this time only access key and SAS are suported for EG .

    98717-image.png

    Please do let me know how it goes .
    Thanks
    Himanshu
    Please do consider to click on "Accept Answer" and "Up-vote" on the post that helps you, as it can be beneficial to other community members

    1 person found this answer helpful.
    0 comments No comments

  2. Harsh Ghatge 1 Reputation point
    2021-05-27T06:36:29.457+00:00

    Hello @HimanshuSinha-msft

    Thanks for letting know the link. I could see SAS & AccessKeys are the ways to authenticate while sending events to event grid but I did not see anywhere which states that ADF integration with EG using Managed Identities is not supported.
    I believe there must be some way we could authenticate against event hub using MI, since both EG and ADF service are MI enabled

    Regards,
    Harsh