Question, what is the ‘trusted microsoft services’, it seems the azure function with msi are not one of them?

This is the trusted services of azure event hub:

enter image description here

Azure function is not in the list of the trusted services of azure event hub.

This is the offcial doc:

https://docs.microsoft.com/en-us/azure/event-hubs/event-hubs-service-endpoints#trusted-microsoft-services

I can get check the message of the event hub with no problem on my side.

You can try below steps:

1, add function as the OWNER RBAC of your event hub based on MSI:

enter image description here

2, Create a virtual network on azure, then put the azure function app to the network:

enter image description here enter image description here

After that, add the network to the firewall setting:

enter image description here

Or you can add the outbound ip of your function app to the whitelist of your eventhub.(If you can’t find the specific outbound ip, just use my method above. Similar problems can be solved by these two methods.)

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top