How to connect with pgAdmin to Azure Database for PostgreSQL flexbile server

Eelco 85 Reputation points
2023-10-05T13:38:39.24+00:00

I've got my Django app up and running with a PostgreSQL flexible server. The Network connectivity is set to Private access (VNet Integration), which I cannot change.

Now I would like to connect with pgAdmin to my database, but it seems to me that the only way is to install a Virtual Private Network and a Gateway. Isn't there another way? Or do I have to create a new database with Public access allowed and switch to that database?

Azure Database for PostgreSQL
{count} vote

Accepted answer
  1. ShaktiSingh-MSFT 13,826 Reputation points Microsoft Employee
    2023-10-06T06:16:21.1166667+00:00

    Hi
    Eelco
    •,

    Welcome to Microsoft Q&A forum and thanks for using Azure Services.

    As I understand, you want to connect with pgAdmin to Azure Database for PostgreSQL Flexible Server.

    Since the server is in a virtual network, you can only connect to the server from other Azure services in the same virtual network as the server. To connect and manage the server, let's create a Linux virtual machine. The virtual machine must be created in the same region and same subscription. The Linux virtual machine can be used as an SSH tunnel to manage your database server.

    Refer the documentation here for complete details: Create an Azure Linux Virtual Machine.

    Hope this helps. Let us know if you have a different ask.

    Thanks

    2 people found this answer helpful.

0 additional answers

Sort by: Most helpful