postgresqlflexible
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| postgresqlflexible [2025/03/26 14:23] – z0hpvk | postgresqlflexible [2025/03/26 14:58] (current) – z0hpvk | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ==== Entra ID Authentication ==== | + | ===== Entra ID Authentication |
| + | [[https:// | ||
| + | ==== Logon ==== | ||
| - | < | + | < |
| az login | az login | ||
| az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken | az account get-access-token --resource-type oss-rdbms --output tsv --query accessToken | ||
| $env: | $env: | ||
| psql " | psql " | ||
| + | </ | ||
| + | |||
| + | ==== Administration ==== | ||
| + | <code postgresql> | ||
| + | -- Display all existing Entra principals | ||
| + | select * from pg_catalog.pgaadauth_list_principals(false); | ||
| + | |||
| + | -- Add Entra principal to the server, " | ||
| + | select * from pg_catalog.pgaadauth_create_principal(roleName text, isAdmin boolean, isMfa boolean) | ||
| + | select * from pg_catalog.pgaadauth_create_principal(' | ||
| + | </ | ||
| + | |||
| + | <code postgresql> | ||
| + | -- Enable Microsoft Entra authentication for an existing PostgreSQL role | ||
| + | SECURITY LABEL for " | ||
| </ | </ | ||
postgresqlflexible.1742999025.txt.gz · Last modified: by z0hpvk
