To restrict public network access on your Event Hubs namespace while allowing Dynatrace to connect, configure the firewall to allow traffic from Dynatrace egress IP addresses only.
Network ACLs (IP firewall rules and virtual network rules) are only supported on Standard and Premium SKU Event Hubs namespaces. The Basic SKU does not support this feature. The ARM template deploys a Standard SKU namespace by default.
Do not select Disable for public network access—this blocks all inbound connections including from Dynatrace. Select Enable with Enable from selected networks instead.
In the Azure portal, go to your Event Hubs namespace.
Select Networking from the left menu.
Set Default action to Enable from selected networks.
Under IP addresses, add each of the IP addresses for your Dynatrace environment's region listed in Dynatrace egress IP addresses: Data acquisition. Use the table for the cloud provider that hosts your Dynatrace environment. Dynatrace doesn't publish IP addresses for GCP-hosted environments, so you can't use this restriction if your environment is hosted on GCP.
Dynatrace can change these IP addresses or add new ones. Check Dynatrace egress IP addresses regularly and update your firewall rules to match.
Under Exception, check Allow trusted Microsoft services to access this resource. This exception lets selected trusted Microsoft services bypass the IP firewall rules.
Select Save.
Apply this firewall configuration to all Event Hubs namespaces used for Dynatrace log ingestion, including those used for Azure resource log forwarding and Azure Event Grid system topic subscriptions.