question

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

Inputs to Streaming Analytics Job

I have an event hub (in other subscription) which is to be used as input to the streaming analytics job. This event hub is configured to allow connections from "Select network only". In such a case is there a way to get data from this event hub to my stream job?
or is there a way to know the IP address of my stream job box which can be added to exception list in event hub?

azure-event-hubsazure-stream-analytics
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.

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

Hello @JadhavAbhijit-8772,

Welcome to the Microsoft Q&A platform.

Azure Stream Analytics can't access Event Hubs resources when the IP filtering is enabled.

By default, Event Hubs namespaces are accessible from internet as long as the request comes with valid authentication and authorization. With IP firewall, you can restrict it further to only a set of IPv4 addresses or IPv4 address ranges in CIDR (Classless Inter-Domain Routing) notation

Turning on firewall rules for your Event Hubs namespace blocks incoming requests by default, unless requests originate from a service operating from allowed public IP addresses. Requests that are blocked include those from other Azure services, from the Azure portal, from logging and metrics services, and so on.

Here are some of the services that can't access Event Hubs resources when the IP filtering is enabled.

Azure Stream Analytics
• Azure IoT Hub Routes
• Azure IoT Device Explorer
• Azure Event Grid
• Azure Monitor (Diagnostic Settings)

As an exception, you can allow access to Event Hubs resources from certain trusted services even when the IP filtering is enabled. For a list of trusted services, see Trusted Microsoft services.

For more details, refer “Allow access to Azure Event Hubs namespaces from specific IP addresses or ranges”.

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


Do click on "Accept Answer" and Upvote on the post that helps you, this can be beneficial to other community members.


· 2 ·
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.

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.


1 Vote 1 ·

Hello @JadhavAbhijit-8772,

Following up to see if the above suggestion was helpful. And, if you have any further query do let us know.

Take care & stay safe!

1 Vote 1 ·
JadhavAbhijit-8772 avatar image
0 Votes"
JadhavAbhijit-8772 answered ·

apologies for late response, in general this answer should serve the purpose but not mine, i want to restrict access to my event hub. consumer of my EH is an stream job which is not part of the trusted services. just today i have raised another question related to topic. here is the snapshot of the same.

Unable to fetch data from stream analytics job enabled with managed identity getting input from event hub (in other subscription). Same job works seamlessly across subscriptions when managed identity is not enabled.

·
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.