Now liveThe Skillselion MCP - thousands of ranked skills, loaded into your agent mid-task. No install.Get it →
aiskillstore avatar

Azure Postgres

  • 1 installs
  • 404 repo stars
  • Updated August 5, 2026
  • aiskillstore/marketplace

azure-postgres is a Claude Code skill that configures Azure Database for PostgreSQL Flexible Server and passwordless Microsoft Entra ID authentication.

About

azure-postgres configures Azure Database for PostgreSQL Flexible Server and its passwordless authentication with Microsoft Entra ID. It sets up developer access, managed identities for apps, group-based permissions, and migration from password to Entra ID auth. A developer uses it when provisioning or securing an Azure-hosted PostgreSQL database.

  • Configures passwordless Entra ID auth for Azure PostgreSQL Flexible Server
  • Sets up developer, managed-identity and group-based access
  • Ships az CLI scripts and SDK references for Python, TypeScript and .NET

Azure Postgres by the numbers

  • 1 all-time installs (skills.sh)
  • Ranked #765 of 911 Databases skills by installs in the Skillselion catalog
  • Data as of Aug 5, 2026 (Skillselion catalog sync)
At a glance

azure-postgres capabilities & compatibility

Capabilities
azure postgres setup · passwordless auth · managed identity · database access control
Works with
azure · postgres
Use cases
database · devops · security audit
From the docs

What azure-postgres says it does

Create new Azure Database for PostgreSQL Flexible Server instances and configure passwordless authentication with Microsoft Entra ID.
SKILL.md
ALWAYS use passwordless authentication with Entra ID for production workloads.
SKILL.md
npx skills add https://github.com/aiskillstore/marketplace --skill azure-postgres

Add your badge

Show developers this skill is listed on Skillselion. Paste this into your README.

Listed on Skillselion
Installs1
repo stars404
Last updatedAugust 5, 2026
Repositoryaiskillstore/marketplace

What it does

Configure Azure PostgreSQL Flexible Server with passwordless Microsoft Entra ID authentication, managed identities and group-based access.

Who is it for?

Setting up passwordless Entra ID auth, managed identities and group access for Azure PostgreSQL.

Skip if: Non-Azure PostgreSQL hosting or general SQL query writing.

When should I use this skill?

A developer needs passwordless Postgres, Entra ID Postgres, or to migrate a Postgres server to managed identity auth on Azure.

What you get

A PostgreSQL server configured for passwordless Entra ID auth with the right user, app and group access.

  • Entra ID authentication configuration
  • managed identity and group access setup
  • password-to-Entra migration

By the numbers

  • 3 access patterns (developer, managed identity, group)
  • 5 Azure MCP postgres commands listed
  • supports PostgreSQL versions 11-16

Files

SKILL.mdMarkdownGitHub ↗

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)

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

PropertyValue
CLI prefixaz postgres flexible-server
MCP toolsazure__postgres
Best forRelational data, PostgreSQL compatibility, PostGIS
Engine versionsPostgreSQL 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.com/#@{tenant-domain}/resource/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server-name}/overview

Example portal link:

View in Azure Portal:
https://portal.azure.com/#resource/subscriptions/abc123.../resourceGroups/myrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/myserver/overview

---

Microsoft Entra ID Authentication (Critical)

⚠️ ALWAYS use passwordless authentication with Entra ID for production workloads.

Complete Setup Guide

[→ Microsoft Entra ID Authentication Setup Guide](./references/entra-rbac-overview.md)

This guide covers:

  • Enabling Entra ID authentication on PostgreSQL servers
  • Creating PostgreSQL roles mapped to Azure identities
  • Granting database permissions
  • Connecting with access tokens instead of passwords

Quick Setup Patterns

Use these patterns based on your scenario:

ScenarioGuide LinkUse When
Developer AccessPattern 1Grant developers access with their Azure identity
App AuthenticationPattern 2Passwordless access for Azure-hosted apps (Container Apps, App Service, Functions)
Team AccessPattern 3Manage permissions via Azure AD groups
Connection IssuesTroubleshootingDiagnose authentication and connection failures
MigrationPattern 5Transition from password to Entra ID authentication

Service Tiers

TiervCoresMemoryUse Case
Burstable1-200.5-4 GB/vCoreDev/test, low traffic
General Purpose2-644 GB/vCoreMost production workloads
Memory Optimized2-648 GB/vCoreHigh-memory workloads

Start with Burstable for dev/test, scale up as needed.

Common Issues

IssueCauseSolution
role does not existRole not created in databaseRun pgaadauth_create_principal - see guide
password authentication failedToken expired (5-60 min validity)Get fresh token: az account get-access-token --resource-type oss-rdbms
permission deniedRole lacks permissionsRun GRANT statements - see templates
Connection timeoutFirewall blocking accessAdd firewall rule: az postgres flexible-server firewall-rule create
Guest user login failsWrong UPN formatUse full UPN with #EXT# tag from Azure AD

SDK Quick References

  • PostgreSQL Client: TypeScript
  • Azure Identity: Python | TypeScript
  • PostgreSQL Mgmt: .NET

References

  • Microsoft Entra ID Authentication Setup - Complete passwordless authentication guide
  • SQL Functions - Entra ID role management functions
  • Permission Templates - Common permission patterns
  • Troubleshooting - Connection and auth issues

Related skills

FAQ

What authentication does it set up?

Passwordless authentication with Microsoft Entra ID for Azure Database for PostgreSQL Flexible Server.

Which access patterns are supported?

Developer user access, managed identity for applications, and group-based access control, plus migration from password auth.

Databasesdatabases

This week in AI coding

Five minutes, every Monday - the tools, releases and tactics for developers.

unsubscribe anytime.