我无法使用 pgcli 从 azure 资源(aks 节点)连接到 Azure postgres。我也直接从节点尝试并得到相同的错误消息:
FATAL: Client from Azure Virtual Networks is not allowed to access the server. Please make sure your Virtual Network is correctly configured.
资源中的防火墙规则开启:
Allow access to Azure services: ON
在我的计算机和另一个 azure 资源上运行相同的 pgcli login 命令似乎工作正常。
将防火墙规则添加到所有 IP 会返回相同的错误。
来自有问题的服务器(主机:5432)的卷曲返回回复,因此这不是出站问题。