Token导航 LogoToken导航TokenDH.com
云服务external-servicegithub未标认证来源可访问许可证需确认审计异常

azure-postgresAzure Postgres 命令行

Agent Skill

用于辅助数据库表结构、查询语句、迁移脚本和数据维护任务。它适合让 Agent 分析 schema、编写 SQL、排查查询问题、整理索引或生成迁移建议。使用时需要明确数据库类型、连接环境和目标表,区分只读分析与写入变更;涉及删除、更新、迁移和批量导入时,应优先 dry-run、备份或事务保护,避免误操作。

总安装

198

周安装

8

GitHub Stars

8

下载量

62
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:azure-postgres(Azure Postgres 命令行)
来源仓库:https://github.com/tyler-r-kendrick/agent-skills
仓库路径:skills/azure-postgres
安装命令:
npx skills add https://github.com/tyler-r-kendrick/agent-skills --skill azure-postgres
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/tyler-r-kendrick/agent-skills --skill azure-postgres

简介

用于辅助数据库表结构、查询语句和迁移脚本的维护任务。

  • 可分析 schema、编写 SQL、排查查询问题或生成索引建议。
  • 通过 npx skills add 命令从 GitHub 仓库安装,需确认数据库连接环境。
  • 涉及数据更新或迁移时应优先 dry-run 并备份,避免误操作。
  • azure-postgres 属于云服务类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

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

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

References

适合场景

01

Azure 资源规划

02

云服务升级

03

基础设施检查

04

企业云环境自动化

能力概览

能力 1

整理 Azure 服务操作流程

能力 2

提示 CLI/MCP 前置条件

能力 3

辅助云资源检查和规划

能力 4

保留官方服务来源线索

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.74%
按下载量换算23

Claude

29.67%
按下载量换算18

Cursor

20.89%
按下载量换算13

Gemini CLI

9.82%
按下载量换算6

安全审计

Gen Agent Trust Hub

未通过

Socket

通过

Snyk

通过

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills