azure-postgres
OfficialPasswordless Entra ID on Azure Postgres
Authormicrosoft
Version1.0.0
Installs0
System Documentation
What problem does it solve?
This skill enables passwordless authentication for Azure Database for PostgreSQL Flexible Server using Microsoft Entra ID, simplifying access control for developers, apps, and teams while enabling secure migrations away from passwords.
Core Features & Use Cases
- Migrate existing PostgreSQL servers from password-based authentication to Entra ID authentication.
- Configure developer access with Azure identities and managed identities for applications.
- Implement group-based access control with regular synchronization of group members.
- Follow best practices for token-based connections and RBAC templates when granting permissions.
Quick Start
Prepare your Azure PostgreSQL server for Entra ID authentication by configuring an Entra admin, then apply identity mappings and permissions using the included scripts. For common tasks, run:
- Create an Entra admin and enable Entra authentication on your server with the provided scripts (scripts/az-commands.sh).
- Map a user: scripts/setup-user.sh <resource-group> <server-name> <user-upn> <database> <permission-level>.
- Map a group: scripts/setup-group.sh <resource-group> <server-name> <group-name> <database> <permission-level> [enable-sync].
- Use tokens for authentication: export PGPASSWORD=$(az account get-access-token --resource-type oss-rdbms --query accessToken -o tsv) and connect with psql.
Dependency Matrix
Required Modules
azpsqljq
Components
scriptsreferences
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: azure-postgres Download link: https://github.com/microsoft/GitHub-Copilot-for-Azure/archive/main.zip#azure-postgres Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.