An Azure managed PostgreSQL database service for app development and deployment.
Only server_admin and its membership in azure_pg_admin are documented Azure-managed defaults; the complete replication role, monitoring grants, BYPASSRLS, and membership-option inventory shown cannot currently be treated as a documented or stable PostgreSQL 17.11 provisioning contract.
What Microsoft documents
| Item | Status |
|---|---|
server_admin created during provisioning |
Documented default |
server_admin attributes LOGIN, NOSUPERUSER, INHERIT, CREATEDB, CREATEROLE |
Documented |
server_admin -> azure_pg_admin |
Documented default |
azuresu reserved for Microsoft control-plane operations |
Documented |
server_admin BYPASSRLS |
Not documented as a universal default |
replication role with LOGIN REPLICATION |
Its existence is recognized, but these exact attributes are not documented as a provisioning contract |
Three pg_* monitoring memberships |
Not documented as universal administrator defaults |
replication -> pg_use_reserved_connections |
Consistent with documented service behavior, but not documented as universally provisioned |
Exact ADMIN, INHERIT, and SET options or azuresu grantor |
Not documented as stable defaults |
Flexible Server documentation names three Azure defaults: azure_pg_admin, azuresu, and the administrator selected during provisioning. It explicitly says the administrator belongs to azure_pg_admin, does not belong to azuresu, and that only Microsoft uses the superuser role for managed operations.^1^
The documented administrator attributes are:
-
LOGIN -
NOSUPERUSER -
INHERIT -
CREATEDB -
CREATEROLE
That documentation does not include NOREPLICATION or BYPASSRLS in the administrator’s guaranteed attribute list.^2^
BYPASSRLS
For PostgreSQL 16 and later, Microsoft documents that the newer role model permits roles to be created with BYPASSRLS. This establishes that the privilege is supported; it does not establish that every newly provisioned PostgreSQL 17 administrator must itself have that attribute.^1^
Therefore, the observed server_admin BYPASSRLS may be service-provisioned behavior, but it is not presently documented as a universal PostgreSQL 17.11 invariant.
replication and reserved connections
The Azure Backup support matrix expects that a replication role can already exist on the restore target and says the resulting “role already exists” error can be ignored. It also documents restore errors involving grants of pg_use_reserved_connections.^3^
This supports the conclusion that both objects participate in managed-server behavior, but it does not define:
- Whether every new non-HA primary receives
replication. - Whether that role must have both
LOGINandREPLICATION. - Whether it must inherit
pg_use_reserved_connections. - The exact membership options or grantor.
For PostgreSQL 17 Flexible Server, reserved_connections is read-only, fixed at 5, and reserves slots for roles holding pg_use_reserved_connections.^4^ That documents the purpose of the built-in privilege, not which Azure role must receive it.
Implication for commissioning validation
Do not fail commissioning solely because these undocumented details differ:
-
server_admin BYPASSRLS -
replicationattributes - Administrator monitoring memberships
-
replication -> pg_use_reserved_connections -
ADMIN,INHERIT, orSEToption combinations - The recorded grantor
A strict baseline can safely assert only the documented subset, including the administrator’s documented attributes and membership in azure_pg_admin. Record the other values as observational telemetry or drift warnings rather than fail-closed requirements.
If contractual confirmation of the complete inventory is required, open an Azure Support request and ask whether these fields are guaranteed across new provisioning, maintenance, and minor-version updates. No public Microsoft document currently supplied here defines that complete PostgreSQL 17 role-and-membership contract.
References