Skip to main content

Available in arize-phoenix 14.8.0+

Phoenix now supports Microsoft Entra managed-identity authentication when connecting to Azure Database for PostgreSQL (Flexible Server). Set two environment variables and install the azure extra — Phoenix handles token acquisition and refresh automatically on every new database connection.

Setup#

Install the azure extra to pull in azure-identity and aiohttp:

Set the required environment variables:

PHOENIX_POSTGRES_AZURE_SCOPE defaults to https://ossrdbms-aad.database.windows.net/.default. Override it only if you are running in a sovereign cloud such as Azure US Government:

Notes#

  • Mutual exclusion — PHOENIX_POSTGRES_USE_AZURE_MANAGED_IDENTITY and PHOENIX_POSTGRES_USE_AWS_IAM_AUTH cannot both be true; Phoenix raises a ValueError at startup if both are set.
  • PHOENIX_POSTGRES_AWS_IAM_TOKEN_LIFETIME_SECONDS is deprecated — the env var is now silently ignored with a startup warning. Connection pool hygiene is managed internally.