I cannot find a way to connect to my Azure Postgres database to run SQL

Asher Gilmour 0 Reputation points
2025-06-18T12:59:16.88+00:00

I used the quickstart to create a database (Postgres) and application server. However I cannot find a way to connect to the database to run SQL.
I can't even create a vm client

Azure Data Studio
Azure Data Studio
A cross-platform database tool for data professionals using on-premises and cloud data platforms on Windows, macOS, and Linux.
{count} votes

1 answer

Sort by: Most helpful
  1. Mahesh Kurva 6,850 Reputation points Microsoft External Staff Moderator
    2025-06-18T13:45:51.8433333+00:00

    Hi Asher Gilmour,

    Greetings!!

    It looks like you're trying to connect to your Azure PostgreSQL database using Azure Data Studio.

    Here's a step-by-step checklist to help you connect and run SQL on your Azure PostgreSQL database:

    You need Azure Data Studio, the PostgreSQL extension for Azure Data Studio, and access to a PostgreSQL server.

    Connect to PostgreSQL:

    1. Start Azure Data Studio.
    2. The first time you start Azure Data Studio the Connection dialog opens. If the Connection dialog doesn't open, select the New Connection icon in the SERVERS page.
    3. In the form that pops up, go to Connection type and select PostgreSQL from the drop-down.
    4. Fill in the remaining fields using the server name, username, and password for your PostgreSQL server.
    5. Select Connect.

    Once connected, you can open a new query window and start running SQL commands.

    For more information, please refer the document: https://learn.microsoft.com/en-us/azure-data-studio/quickstart-postgres?source=recommendations

    Hope this helps. Do let us know if you any further queries.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.