在 Azure 环境中,我使用 Azure Database for PostgreSQL 服务器添加了一项 PostgreSQL 服务。当我尝试从 Azure VM 之一连接此 PostgreSQL 实例时,它正在使用公共(public) IP 网络。我需要通过以下方式进行连接。
- PostgreSQL 实例没有任何公共(public) IP
- 需要仅使用专用 IP 网络从 Azure 虚拟机连接此实例
我们怎样才能实现它?
最佳答案
不幸的是,您目前无法实现这一目标。
因为目前无法将 Postgre SQL 加入 VNet。 但是 Azure Database for PostgreSQL 团队已经开始研究它:
- VNET service end point GA target is H1 CY2018.
- Public preview for read replicas in a subset of the regions is expected around the service GA date.
详情可以在 this Uservoice page 中查看.
希望这有帮助!
关于azure - 如何使用私有(private)IP访问Azure PostgreSQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48222388/