Azure Database for PostgreSQL flexible servers with Point to site VPN

Brijesh Muliya 46 Reputation points
2023-06-07T12:19:18.43+00:00

I am having an issue while connecting to "Azure Database for PostgreSQL flexible servers" with point-to-site VPN.

My requirement:

I have multiple Azure services which are not in the virtual network, and if I deploy "Azure Database for PostgreSQL flexible servers" with Vnet integration then there is no option to "Allow other Azure services" or add IP address.

I simply want to restrict access to my database so that only my Azure services and clients with Azure VPN should be able to access the database.

Solution I have tried & Azure support suggested:

  1. with "Public access (allowed IP addresses)" white listed public IP of VPN gateway and address pool range of that VPN - start IP and end IP.
Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,786 questions
Azure Database for PostgreSQL
{count} votes

1 answer

Sort by: Most helpful
  1. KapilAnanth-MSFT 49,536 Reputation points Microsoft Employee Moderator
    2023-07-03T17:19:11.16+00:00

    @Brijesh Muliya

    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.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.