Welcome to the Microsoft Q&A Platform. Thank you for taking the time to work with us.
Our internal support team provided the below summary:
Issue:
Restrict access to Azure Database for PostgreSQL flexible server
Cause:
You wanted to restrict access to the SQL server only from your P2S VPN and specific Vnets.
Resolution:
- Proposed private endpoint and Vnet integration but you mentioned that some of your resources won't be able to connect to the SQL server in such a case.
- As a workaround, support proposed a VM to which the P2S VPN clients could connect and from the VM the SQL server could be reached. Access to the VM could be restricted by an NSG.
Kindly let us know if this helps or you need further assistance on this issue.
Thanks,
Kapil
Please don’t forget to close the thread by clicking "Accept the answer" wherever the information provided helps you, as this can be beneficial to other community members.