Azure Database for PostgreSQL Skill

SkillDatabases & data

Expert knowledge for Azure Database for PostgreSQL development including troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. Use when tuning queries and replicas, configuring Flexible Server, securing with VNet/TLS, or integrating AI/ML and vector search, and other Azure Database for PostgreSQL related development tasks. Not for Azure SQL Database (use azure-sql-database), Azure SQL Managed Instance (use azure-sql-managed-instance), SQL Server on Azure Virtual Machines (use azure-sql-virtual-machines), Azure Database for MySQL (use azure-database-mysql).

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the Azure Database for PostgreSQL Skill skill

What this skill tells your AI

The instructions your AI receives, as published by microsoftdocs/agent-skills in skills/azure-database-postgresql/SKILL.md and read by ahel’s review.

This skill provides expert guidance for Azure Database for PostgreSQL. Covers troubleshooting, best practices, decision making, architecture & design patterns, limits & quotas, security, configuration, integrations & coding patterns, and deployment. It combines local quick-reference content with remote documentation fetching capabilities.

How to Use This Skill

IMPORTANT for Agent: Use the Category Index below to locate relevant sections. For categories with line ranges (e.g., L35-L120), use read_file with the specified lines. For categories with file links (e.g., [security.md](security.md)), use read_file on the linked reference file

IMPORTANT for Agent: If metadata.generated_at is more than 3 months old, suggest the user pull the latest version from the repository. If mcp_microsoftdocs tools are not available, suggest the user install it: Installation Guide

This skill requires network access to fetch documentation content:

  • Preferred: Use mcp_microsoftdocs:microsoft_docs_fetch with query string from=learn-agent-skill. Returns Markdown.
  • Fallback: Use fetch_webpage with query string from=learn-agent-skill&accept=text/markdown. Returns Markdown.

Category Index

CategoryLinesDescription
TroubleshootingL37-L64Diagnosing and fixing Azure PostgreSQL issues: connectivity/TLS, HA and replicas, performance (CPU/IOPS/memory/slow queries/autovacuum), migrations, extensions, CLI errors, and tuning tools.
Best PracticesL65-L87Performance, tuning, and migration best practices for Azure PostgreSQL: query optimization, pooling, extensions, upgrades, Oracle-to-Postgres, bulk load, replicas, and maintenance.
Decision MakingL88-L103Guidance on sizing and scaling compute/storage, choosing hosting and networking (Private Link, VNet), planning upgrades, and managing replicas and migrations for Azure PostgreSQL Flexible Server
Architecture & Design PatternsL104-L115Architectures and patterns for PostgreSQL on Azure: microservices, multitenancy, sharding, table design, caching with Redis, and using OpenAI for recommendations and semantic search.
Limits & QuotasL116-L140Backup, restore, PITR, geo-restore, SSD/SSDv2 limits, quotas, elastic cluster limits, connection caps, migration/conversion limitations, and storage performance/autogrow settings.
SecurityL141-L171Securing Azure Database for PostgreSQL: identity and access control, firewall/VNet, TLS, encryption, auditing, Defender, policies, and security best practices for flexible server.
ConfigurationL172-L257Configuring Azure Database for PostgreSQL Flexible Server: server parameters, extensions, networking, logging/metrics, tuning (autovacuum, Query Store, PgBouncer), VS Code tools, and CLI-based management.
Integrations & Coding PatternsL258-L283Integrating Azure PostgreSQL with AI/ML (Language, ML, LangChain, Foundry, Copilot), SDKs (.NET/Java/Python), DevOps tools (VS Code, CLI, ADF), migrations, partitioning, and vector search.
DeploymentL284-L291Guides for deploying and restoring Azure Database for PostgreSQL, including Azure Pipelines tasks and offline migrations from Aurora, RDS, and on-prem/VM PostgreSQL to flexible server.

Troubleshooting

TopicURL
Resolve extension management errors on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/extensions/errors-extensions
Monitor and troubleshoot HA health for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/high-availability/how-to-monitor-high-availability
Resolve premigration validation error codes for PostgreSQL migrationhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/troubleshoot-error-codes
Use application conversion reports for validationhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-application/app-conversions-reports
Interpret Oracle-to-PostgreSQL schema conversion reportshttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-schema/schema-conversions-reports
Use Query Performance Insight for PostgreSQL tuninghttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-query-performance-insight
Use Query Store to troubleshoot PostgreSQL performancehttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-query-store
Use autonomous tuning recommendations for PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/monitor/how-to-get-apply-recommendations-from-autonomous-tuning
Troubleshoot TLS connection issues for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-tls-troubleshoot
Diagnose transient connectivity errors in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/concepts-connectivity
Monitor and tune autovacuum in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-autovacuum-tuning
Troubleshoot and tune autovacuum on PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-autovacuum-tuning-elastic-clusters
Diagnose and mitigate high CPU in PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-high-cpu-utilization
Troubleshoot high CPU in PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-high-cpu-utilization-elastic-clusters
Investigate and reduce high IOPS in PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-high-io-utilization
Troubleshoot high memory usage in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-high-memory-utilization
Diagnose slow queries on Azure PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-identify-slow-queries
Diagnose slow-running queries on PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-identify-slow-queries-elastic-clusters
Resolve capacity errors when deploying or scaling Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-resolve-capacity-errors
Troubleshoot Azure CLI errors for PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-troubleshoot-cli-errors
Troubleshoot connection issues to Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-troubleshoot-common-connection-issues
Diagnose Azure Storage extension errors in PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/troubleshoot-azure-storage-extension
Resolve 'Canceling statement due to conflict with recovery' on Azure Database for PostgreSQL read replicashttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/troubleshoot-canceling-statement-due-to-conflict-with-recovery
Fix password authentication failed errors in PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/troubleshoot-password-authentication-failed-for-user

Best Practices

TopicURL
Optimize Apache AGE graph query performance on Azurehttps://learn.microsoft.com/en-us/azure/postgresql/azure-ai/generative-ai-age-performance
Apply Azure Advisor recommendations to Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/concepts-azure-advisor-recommendations
Plan around maintenance for Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/concepts-maintenance
Run upgrade validation checks for PostgreSQL servershttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/how-to-run-upgrade-validation-checks
Apply PgBouncer connection pooling strategies on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/connectivity/concepts-connection-pooling-best-practices
Apply Azure-specific PostgreSQL extension considerationshttps://learn.microsoft.com/en-us/azure/postgresql/extensions/concepts-extensions-considerations
Optimize pgvector performance on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/extensions/how-to-optimize-performance-pgvector
Apply best practices for migrating to Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/best-practices-migration-service-postgresql
Follow best practices for Oracle app conversionhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-application/app-conversions-best-practices
Apply Oracle-to-PostgreSQL schema conversion best practiceshttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-schema/schema-conversions-best-practices
Understand autonomous tuning for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-autonomous-tuning
Use intelligent tuning for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-intelligent-tuning
Follow best practices for PostgreSQL Query Storehttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-query-store-best-practices
Apply Query Store usage scenarios for PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/monitor/concepts-query-store-scenarios
Create Azure PostgreSQL read replicas with performance guidancehttps://learn.microsoft.com/en-us/azure/postgresql/read-replica/how-to-create-read-replica
Bulk load data into Azure PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-bulk-load-data
Optimize pg_stat_statements query stats on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-optimize-query-stats-collection
Use pg_repack to remove bloat on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-perform-fullvacuum-pg-repack
Tune pg_dump and pg_restore for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/troubleshoot/how-to-pgdump-restore

Decision Making

TopicURL
Choose compute tiers for Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-compute
Select storage options for Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage
Plan and execute major version upgrades for Azure Database for PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/concepts-major-version-upgrade
Use extended support for PostgreSQL flexible server versionshttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/extended-support
Choose Azure PostgreSQL flexible server hosting optionhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/overview-postgres-choose-server-options
Use premigration validations for Azure PostgreSQL migrationshttps://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/concepts-premigration-migration-service
Choose and configure Private Link for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/network/concepts-networking-private-link
Migrate Azure PostgreSQL from VNet injection to Private Endpointhttps://learn.microsoft.com/en-us/azure/postgresql/network/how-to-migrate-vnet-private-endpoint-capable-server
Promote Azure PostgreSQL read replicas to primary or standalonehttps://learn.microsoft.com/en-us/azure/postgresql/read-replica/concepts-read-replicas-promote
Promote Azure PostgreSQL read replica to standalone serverhttps://learn.microsoft.com/en-us/azure/postgresql/read-replica/how-to-promote-replica-to-standalone
Switch Azure PostgreSQL read replica to primary rolehttps://learn.microsoft.com/en-us/azure/postgresql/read-replica/how-to-switch-over-replica-to-primary
Choose scaling options for PostgreSQL flexible server resourceshttps://learn.microsoft.com/en-us/azure/postgresql/scale/concepts-scaling-resources

Architecture & Design Patterns

TopicURL
Build recommendation systems with Azure PostgreSQL and OpenAIhttps://learn.microsoft.com/en-us/azure/postgresql/azure-ai/generative-ai-recommendation-system
Implement semantic search with Azure PostgreSQL and OpenAIhttps://learn.microsoft.com/en-us/azure/postgresql/azure-ai/generative-ai-semantic-search
Design microservices storage on PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/tutorial-microservices
Design multitenant apps with PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/tutorial-multitenant-database
Parallelize real-time dashboards with PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/tutorial-real-time-dashboard
Use Redis caching with Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/development/how-to-cache
Choose sharding models for PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/elastic-clusters/concepts-elastic-clusters-sharding-models
Select table types in PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/elastic-clusters/concepts-elastic-clusters-table-types

Limits & Quotas

TopicURL
Backup retention and PITR behavior in PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/backup-restore/concepts-backup-restore
Manage and delete on-demand backups in PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/backup-restore/how-to-delete-backups
Restore deleted PostgreSQL flexible servers within retention windowhttps://learn.microsoft.com/en-us/azure/postgresql/backup-restore/how-to-restore-deleted-server
Geo-restore behavior and constraints for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/backup-restore/how-to-restore-paired-region
Migrate Azure PostgreSQL from SSD to SSDv2 via PITRhttps://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage-migrate-ssd-to-ssd-v2
Understand Premium SSD limits for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage-premium-ssd
Use Premium SSD v2 performance for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/compute-storage/concepts-storage-premium-ssd-v2
Review capacity and functional limits for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/concepts-limits
Request quota increases for Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/how-to-request-quota-increase
Review elastic cluster limits for Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/elastic-clusters/concepts-elastic-clusters-limitations
Configure maximum client connections in PostgreSQL elastic clustershttps://learn.microsoft.com/en-us/azure/postgresql/elastic-clusters/how-to-network-elastic-clusters-default-maximum-connections
Review known issues and limitations of PostgreSQL migration servicehttps://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/concepts-known-issues-migration-service
Review limitations of Oracle application conversionhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-application/app-conversions-limitations
Understand limitations of Oracle-to-PostgreSQL schema conversionhttps://learn.microsoft.com/en-us/azure/postgresql/migrate/oracle-conversions-schema/schema-conversions-limitations
Check statistics collector parameter availability by versionhttps://learn.microsoft.com/en-us/azure/postgresql/parameters/parameters-statistics-query-index-statistics-collector
Understand archive recovery parameter availability in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/parameters/parameters-write-ahead-log-archive-recovery
Review recovery parameter availability by PostgreSQL versionhttps://learn.microsoft.com/en-us/azure/postgresql/parameters/parameters-write-ahead-log-recovery
Check recovery target parameter availability in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/parameters/parameters-write-ahead-log-recovery-target
Use read replicas in Azure PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/read-replica/concepts-read-replicas
Configure storage autogrow thresholds for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/scale/how-to-auto-grow-storage
Adjust storage performance tiers for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/scale/how-to-scale-storage-performance

Security

TopicURL
Enable managed identity for Azure AI extension in PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/azure-ai/generative-ai-enable-managed-identity-azure-ai
Enable deletion protection with locks for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/configure-maintain/how-to-enable-deletion-protection
Configure PostgreSQL extension connections and identities in VS Codehttps://learn.microsoft.com/en-us/azure/postgresql/development/vs-code-extension/connections
Connect Data Factory to PostgreSQL via Private Linkhttps://learn.microsoft.com/en-us/azure/postgresql/integration/how-to-connect-data-factory-private-endpoint
Assign required permissions to run PostgreSQL migrationshttps://learn.microsoft.com/en-us/azure/postgresql/migrate/migration-service/concepts-required-user-permissions
Configure firewall rules for Azure PostgreSQL public accesshttps://learn.microsoft.com/en-us/azure/postgresql/network/how-to-networking-servers-deployed-public-access-add-firewall-rules
Add Private Endpoint connections for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/network/how-to-networking-servers-deployed-public-access-add-private-endpoint
Create PostgreSQL server and firewall via Azure CLIhttps://learn.microsoft.com/en-us/azure/postgresql/samples/sample-create-server-and-firewall-rule
Create PostgreSQL server with VNet rule via CLIhttps://learn.microsoft.com/en-us/azure/postgresql/samples/sample-create-server-with-vnet-rule
Implement access control and roles in Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-access-control
Configure pgaudit-based audit logging on Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-audit
Apply Azure Policy to secure Azure PostgreSQL resourceshttps://learn.microsoft.com/en-us/azure/postgresql/security/security-azure-policy
Understand security and compliance for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-compliance
Configure data encryption keys for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-configure-data-encryption
Enable system-assigned managed identity for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-configure-managed-identities-system-assigned
Configure user-assigned managed identities for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-configure-managed-identities-user-assigned
Configure SCRAM authentication for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-connect-scram
Connect to Azure PostgreSQL using managed identitieshttps://learn.microsoft.com/en-us/azure/postgresql/security/security-connect-with-managed-identity
Use Microsoft Defender for Cloud with Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-defender-for-cloud
Configure Microsoft Entra authentication for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-entra-configure
Define firewall rules for Azure PostgreSQL public endpointshttps://learn.microsoft.com/en-us/azure/postgresql/security/security-firewall-rules
Create and manage PostgreSQL users on Azure Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-manage-database-users
Configure managed identities for PostgreSQL flexible serverhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-managed-identity-overview
Apply security best practices to Azure PostgreSQL Flexible Serverhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-overview
Configure TLS versions and policies for Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-tls
Set up TLS connections to Azure PostgreSQLhttps://learn.microsoft.com/en-us/azure/postgresql/security/security-tls-how-to-connect
Update Java client certificates for Azure PostgreSQL TLShttps://learn.microsoft.com/en-us/azure/postgresql/security/security-update-trusted-root-java

Shortened here. Read the whole file on GitHub.

Signals

GitHub stars
742
Forks
120
Last commit
Sep 2026

ahel review

  • S4info
    community integration — published by microsoftdocs, not azure

Automated review, not a security audit. Ruleset v1+k2.

Advanced
Catalog kind
skill
Gateway key
azure-database-postgresql
Source
github.com/microsoftdocs/agent-skills