Inputs to Streaming Analytics Job

Abhijit Jadhav 1 Reputation point
2020-08-20T08:56:04.717+00:00

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 Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
546 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
329 questions
0 comments No comments
{count} votes

2 answers

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 75,131 Reputation points Microsoft Employee
    2020-08-20T12:01:24.677+00:00

    Hello @Abhijit Jadhav ,

    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. Abhijit Jadhav 1 Reputation point
    2021-02-01T14:10:13.397+00:00

    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.

    0 comments No comments