Loading...
Loading...
Compare original and translation side by side
azure__postgrespostgres_server_listazure__postgrespostgres_database_listazure__postgrespostgres_database_queryazure__postgrespostgres_server_param_getazure__postgrespostgres_server_param_setazure__postgrespostgres_server_listazure__postgrespostgres_database_listazure__postgrespostgres_database_queryazure__postgrespostgres_server_param_getazure__postgrespostgres_server_param_setaz 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 16az 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| Property | Value |
|---|---|
| CLI prefix | |
| MCP tools | |
| Best for | Relational data, PostgreSQL compatibility, PostGIS |
| Engine versions | PostgreSQL 11, 12, 13, 14, 15, 16 (recommended) |
| 属性 | 值 |
|---|---|
| CLI前缀 | |
| MCP工具 | |
| 适用场景 | 关系型数据、PostgreSQL兼容性、PostGIS |
| 引擎版本 | PostgreSQL 11、12、13、14、15、16(推荐) |
https://portal.azure.com/#@{tenant-domain}/resource/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server-name}/overviewView in Azure Portal:
https://portal.azure.com/#resource/subscriptions/abc123.../resourceGroups/myrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/myserver/overviewhttps://portal.azure.com/#@{tenant-domain}/resource/subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.DBforPostgreSQL/flexibleServers/{server-name}/overview在Azure门户中查看:
https://portal.azure.com/#resource/subscriptions/abc123.../resourceGroups/myrg/providers/Microsoft.DBforPostgreSQL/flexibleServers/myserver/overview| Scenario | Guide Link | Use When |
|---|---|---|
| Developer Access | Pattern 1 | Grant developers access with their Azure identity |
| App Authentication | Pattern 2 | Passwordless access for Azure-hosted apps (Container Apps, App Service, Functions) |
| Team Access | Pattern 3 | Manage permissions via Azure AD groups |
| Connection Issues | Troubleshooting | Diagnose authentication and connection failures |
| Migration | Pattern 5 | Transition from password to Entra ID authentication |
| 场景 | 指南链接 | 使用时机 |
|---|---|---|
| 开发者访问 | 模式1 | 为开发者授予其Azure标识的访问权限 |
| 应用程序身份验证 | 模式2 | 为Azure托管应用(容器应用、应用服务、函数)提供无密码访问权限 |
| 团队访问 | 模式3 | 通过Azure AD组管理权限 |
| 连接问题 | 故障排查 | 诊断身份验证与连接失败问题 |
| 迁移 | 模式5 | 从密码身份验证过渡到Entra ID身份验证 |
| Tier | vCores | Memory | Use Case |
|---|---|---|---|
| Burstable | 1-20 | 0.5-4 GB/vCore | Dev/test, low traffic |
| General Purpose | 2-64 | 4 GB/vCore | Most production workloads |
| Memory Optimized | 2-64 | 8 GB/vCore | High-memory workloads |
| 层级 | vCPU核心数 | 内存 | 适用场景 |
|---|---|---|---|
| 突发型 | 1-20 | 0.5-4 GB/vCPU核心 | 开发/测试、低流量场景 |
| 通用型 | 2-64 | 4 GB/vCPU核心 | 大多数生产工作负载 |
| 内存优化型 | 2-64 | 8 GB/vCPU核心 | 高内存工作负载 |
| Issue | Cause | Solution |
|---|---|---|
| Role not created in database | Run |
| Token expired (5-60 min validity) | Get fresh token: |
| Role lacks permissions | Run |
| Connection timeout | Firewall blocking access | Add firewall rule: |
| Guest user login fails | Wrong UPN format | Use full UPN with |
| 问题 | 原因 | 解决方案 |
|---|---|---|
| 数据库中未创建角色 | 运行 |
| 令牌过期(有效期5-60分钟) | 获取新令牌: |
| 角色缺少权限 | 运行 |
| 连接超时 | 防火墙阻止访问 | 添加防火墙规则: |
| 来宾用户登录失败 | UPN格式错误 | 使用包含 |