Databases

Database for PostgreSQL

Microsoft.DBforPostgreSQL

Resource types
16 of 16 supported
Data plane
4 types emulated
API versions
9 newest 2026-10-01
Ships as
Plugin 2026.11.01
Plan
Starter and above

Data as of 2026-11-20

Resource types

The Resource Types supported by Locally for the Microsoft.DBforPostgreSQL plugin are shown below. You can click into a type to see more information.

Note: This is generated from the latest version of the plugin (2026.11.01) as of 2026-11-20, and may differ in older versions. We aim to keep this information accurate and up to date; if you find something we're missing, then please let us know.

API versions

The latest API version that Locally supports for Microsoft.DBforPostgreSQL is 2026-10-01. All 9 versions it supports are listed below.

Stable5

2026-10-01 2025-08-01 2024-08-01 2022-12-01 2021-06-01

Preview4

2026-07-01-preview 2026-04-01-preview 2026-01-01-preview 2023-06-01-preview

Features

  • PostgreSQL 11 to 18: each flexible server runs the official PostgreSQL image for its major version, 18 by default.
  • Connect with any PostgreSQL client, such as psql, pgAdmin or your app's driver, over TLS. The server's connection strings are on its Dashboard page.
  • Password authentication, with a change to the administrator password applied to the running server.
  • Microsoft Entra authentication for the server's Entra administrators, with an access token for https://ossrdbms-aad.database.windows.net. Setting passwordAuth to Disabled makes the server Entra-only.
  • Databases are created on the running server.
  • Server parameters are read from the running server and set with ALTER SYSTEM. Dynamic parameters apply at once, static ones after a restart.
  • Stop, start and restart, keeping the server's data.
  • On-demand backups with pg_dump, which point-in-time restore, geo-restore, read replicas and reviving a dropped server load their data from.
  • Chaos Engineering can refuse logins as throttled, failing or forbidden, slow down or drop connections, report too many connections, fail over or restart the server, or simulate an outage. Team

Limitations

Administrators

  • Only the server's Entra administrators can sign in with a token. pgaadauth_create_principal isn't installed, so you can't add other Entra roles.

Configurations

  • Configurations are the server's own PostgreSQL settings, so Azure-only parameters such as azure.extensions and the PgBouncer settings aren't there.

Databases

  • A database's charset and collation are recorded, but the database is created with the server's defaults at this time.

Flexible Servers

  • A read replica is a copy of its source when it was created. It doesn't replicate changes made afterwards at this time.
  • Changing an existing server's version changes what it reports, but the server keeps running its original major version at this time.
  • Connections must use TLS, and there's no require_secure_transport parameter to turn that off.
  • Firewall rules and public network access are recorded but not enforced, so any client that can reach the server can connect.
  • Only the extensions that ship with PostgreSQL are available at this time. pgvector, PostGIS, pg_cron and other extras can't be created.
  • Point-in-time restore loads the newest on-demand backup taken at or before the restore point at this time, or the source's current data if there isn't one.
  • The administrator login is a PostgreSQL superuser rather than a member of azure_pg_admin at this time, so something that works here may be refused on Azure.

Migrations

  • Migrations are recorded, but nothing is migrated at this time.

A local cloud for you and your AI agents.

Your Azure infrastructure, running on your machine. Deploy in seconds, break things freely, and ship to Azure when you're ready.