I have two databases on the same Azure SQL server. I wanted to create an external table in database A to access one table from database B. To do it I followed this this article and everything works fine. Then to increase security I wanted to disable Azure Services access to the SQL Server but to preserve this functionality I added it to a virtual network that was allowed inside firewall settings. It didn't work properly so I created a Private endpoint using documentation. But when I try to do the select the connection is refused because it's not done through the virtual network and the firewall stops it - I see the server public IP.
If I enable azure services access, the external table works properly. Changing the external data source location to the privatelink URL breaks with the SSL certificate error regarding invalid principal.
Is there some other steps I should take to allow SQL Server to connect to itself when Azure Services access is disabled?