Unable to fetch data from stream analytics job enabled with managed identity

Abhijit Jadhav 1 Reputation point
2021-02-01T13:29:40.843+00:00

Unable to fetch data from stream analytics job enabled with managed identity getting input from event hub (in other subscription).

In "Subscription A", i have a Stream Analytics Job enabled with managed identity. This job is getting its input from an event hub which is in another "Subscription B". I have assigned appropriate roles in event hub for the job. After i start the job, I ma getting an error as below. However if the job is not enabled with managed identity, getting input from same event hub (in another sub), job executes perfectly.

Error message.
"We cannot locate the resource for the selected input. Please make sure its subscription has been selected in the global subscription filter."

Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
657 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
365 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
22,480 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA 90,261 Reputation points
    2021-02-02T06:04:55.74+00:00

    Hello @Abhijit Jadhav ,

    Welcome to the Microsoft Q&A platform.

    UPDATE: You could try to make sure the subscription (which your Event Hub resides in) has been selected in the global subscription filter.

    Navigating to Subscription Page in the portal and check whether the subscription is selected with global subscription filter. If not, select it in the right box.

    63383-image.png

    -----------------------------------------------------------------

    This is a known limitation, when using managed identities to access Event Hub from an Azure Stream Analytics job

    During preview, sampling input from Event Hubs on Azure portal will not work when using Managed Identity authentication mode.

    Reference: Use managed identities to access Event Hub from an Azure Stream Analytics job (Preview).

    Hope this helps. Do let us know if you any further queries.

    ------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.

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.