Azure Identity authentication failed with SSL connection failure
Here is the error I got in the function app
System.Net.Http: The SSL connection could not be established, see inner exception. System.Net.Security: Authentication failed because the remote party has closed the transport stream.
The setup is,
I have a Function App hosted in an App service integrated with a subnet in a VNET.
I have a ServiceBus integrated with the same VNET PLE enabled with a separated subnet for PLE.
The role assignment has been done for a specific queue of the service bus namespace.
The same setup worked with SAS token, therefore NSG rules for AMQP port opening and etc must be fine unless the function app is trying to call another service which I'm not aware of.
I also checked the same function app without VNET integration and it worked, therefore, nothing wrong with the built code!
I would appreciate it if anyone has a clue about that!