question

JadhavAbhijit-8772 avatar image
0 Votes"
JadhavAbhijit-8772 asked ·

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

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-hubsazure-stream-analyticsazure-managed-identity
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

PRADEEPCHEEKATLA-MSFT avatar image
0 Votes"
PRADEEPCHEEKATLA-MSFT answered ·

Hello @JadhavAbhijit-8772,

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.



image.png (101.2 KiB)
· 4 ·
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

one question: i had read this article about limitations; what does sampling input on Azure portal mean here? If i run the job, will it still be the limitation? will this limitation get over once the service is in GA? any idea on what are GA dates for this service with managed identity?

0 Votes 0 ·

Hello @JadhavAbhijit-8772,

Could you please check the updated answer and see if that works?

0 Votes 0 ·

Hello @JadhavAbhijit-8772,

Just checking in to see if the above answer helped. If this answers your query, do click Accept Answer and Up-Vote for the same. And, if you have any further query do let us know.

0 Votes 0 ·
Show more comments