Set up continuous export to an event hub behind a firewall
In a situation where an event hub is behind a firewall, you can enable continuous export as a trusted service so that you can send data to the event hub.
- Set up continuous export in the Azure portal or set up continuous export with Azure Policy or set up continuous export with REST API.
You can enable continuous export as a trusted service so that you can send data to an event hub that has Azure Firewall enabled.
To grant access to continuous export as a trusted service:
Sign in to the Azure portal.
Go to Microsoft Defender for Cloud > Environmental settings.
Select the relevant resource.
Select Continuous export.
Select Export as a trusted service.
To add the relevant role assignment to the destination event hub: