Microsoft 365 Copilot Microsoft 365 Copilot database guide

Copilot + PostgreSQL

Connect Microsoft 365 Copilot to PostgreSQL

Connect Microsoft 365 Copilot to PostgreSQL and ask questions about your data in plain English. Copilot looks up your tables through BlazeSQL, writes the SQL and has BlazeSQL run it read-only, then answers with the results.

  • Free app on Microsoft Marketplace
  • Live, read-only SQL
  • No Copilot Studio build
Get the free Copilot connector

Official destination: marketplace.microsoft.com

Illustration of a BlazeSQL answer in Microsoft 365 Copilot. Copilot asks BlazeSQL for your tables, writes the SQL, and BlazeSQL runs it read-only on PostgreSQL.

Three steps

Connect Copilot to PostgreSQL

  1. 01

    Open BlazeSQL on Microsoft Marketplace

    The button above takes you straight to the BlazeSQL listing on marketplace.microsoft.com, so you don’t need to search for it.

  2. 02

    Add the app for your account

    Select Get it now and add BlazeSQL. If your organization asks for admin approval, send the listing to your Microsoft 365 admin and connect PostgreSQL in BlazeSQL while you wait.

  3. 03

    Sign in and connect PostgreSQL

    In Microsoft 365 Copilot, choose BlazeSQL and sign in. Then select PostgreSQL, enter the approved connection details and pick the data Copilot can use.

Before you start

What you need for PostgreSQL

  • A Microsoft 365 Copilot license
  • PostgreSQL hostname and database name
  • Port (commonly 5432)
  • A database username and password
  • The SSL mode and network access required by your server

Optional but recommended

Create a read-only PostgreSQL login for Copilot

BlazeSQL already blocks queries that change data. A login that can only read adds a second safeguard. Replace the example names and password with your own.

Once connected

Questions you can ask Copilot about PostgreSQL data

How many active accounts used the product in the last 30 days?

Which signup cohorts have the highest retention?

Summarise failed transactions by cause and week.

Other ways to connect

How BlazeSQL compares with other Copilot options

  • BlazeSQL app

    Add it from Microsoft Marketplace and ask questions straight away. Each question runs a new read-only query on live PostgreSQL data, so Copilot can answer with totals, trends and comparisons.

  • A custom agent in Copilot Studio

    You can build your own database agent, but someone has to set up the connection, design the agent and maintain it.

For the rest of your team

Use the same answers in Teams and on the web

Colleagues without a Copilot license can ask questions about PostgreSQL in Microsoft Teams or the BlazeSQL web app. Business definitions you teach BlazeSQL once, like how you count active customers, apply everywhere.

Common questions

Copilot and PostgreSQL FAQ

Can Copilot connect to PostgreSQL?

Yes. Copilot can query PostgreSQL through the BlazeSQL connector when you provide the server, database, credentials and SSL settings needed to reach it.

Is the Copilot database connector free?

The BlazeSQL app is free to add from Microsoft Marketplace. Using it inside Copilot requires a Microsoft 365 Copilot license from Microsoft, and BlazeSQL itself may have plan limits for heavier use.

Do I need a Microsoft 365 admin?

Not always. If your organization restricts which apps people can add, a Microsoft 365 admin needs to approve BlazeSQL first. You can use BlazeSQL directly while you wait.

Can Copilot change data in PostgreSQL?

No. The connector only runs read-only queries. Statements that change data, such as UPDATE or DELETE, are blocked.

Ready to connect?

Connect PostgreSQL to Microsoft 365 Copilot

Continue to the official listing, add BlazeSQL and connect your database.

Go to Marketplace