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.