Create new Azure Database for PostgreSQL Flexible Server instances and configure passwordless authentication with Microsoft Entra ID. Set up developer access, managed identities for apps, group-based permissions, and migrate from password-based to Entra ID authentication. Trigger phrases include "passwordless for postgres", "entra id postgres", "azure ad postgres authentication", "postgres managed identity", "migrate postgres to passwordless".
View on GitHubmicrosoft/GitHub-Copilot-for-Azure
azure
February 1, 2026
Select agents to install to:
npx add-skill https://github.com/microsoft/GitHub-Copilot-for-Azure/blob/main/plugin/skills/azure-postgres/SKILL.md -a claude-code --skill azure-postgresInstallation paths:
.claude/skills/azure-postgres/# Azure Database for PostgreSQL Configure passwordless authentication with Microsoft Entra ID for existing Azure Database for PostgreSQL Flexible Server. This skill focuses on setting up Entra ID authentication, managing user access, and migrating from password-based authentication. **Primary use cases:** - Migrating existing PostgreSQL databases from password to Entra ID authentication - Setting up developer access with Azure identities - Configuring managed identity access for Azure-hosted applications - Managing group-based access control and permissions --- ## MCP Tools (Preferred) When Azure MCP is enabled, use these tools for PostgreSQL operations: - `azure__postgres` with command `postgres_server_list` - List PostgreSQL servers - `azure__postgres` with command `postgres_database_list` - List databases on a server - `azure__postgres` with command `postgres_database_query` - Execute SQL queries - `azure__postgres` with command `postgres_server_param_get` - Get server parameters - `azure__postgres` with command `postgres_server_param_set` - Set server parameters ## CLI Commands (Fallback) ```bash az postgres flexible-server list --output table az postgres flexible-server db list --server-name SERVER -g RG az postgres flexible-server show --name SERVER -g RG az postgres flexible-server create --name SERVER -g RG --location REGION --admin-user ADMIN --version 16 ``` --- ## Quick Reference | Property | Value | |----------|-------| | CLI prefix | `az postgres flexible-server` | | MCP tools | `azure__postgres` | | Best for | Relational data, PostgreSQL compatibility, PostGIS | | Engine versions | PostgreSQL 11, 12, 13, 14, 15, 16 (recommended) | --- ## Working with Existing PostgreSQL Servers This skill primarily focuses on configuring authentication for existing PostgreSQL servers. If you need to reference or create servers, use MCP tools or CLI commands, and provide Azure Portal links for easy access. **Portal Link Format:** ``` https://portal.azure.