仅通过特定 public ip 地址访问 azure cosmos db

Access to azure cosmos db through specific public ip address only

我只想通过特定的IP地址访问cosmos db。我能看到实现此目的的唯一方法是在 azure cosmos db 的 'Firewall and Virtual Network' 部分中指定该 ip 地址。有没有其他方法可以在不在防火墙中指定 ip 地址的情况下实现此目的?

您还可以配置 Azure 私有 Link.It 是虚拟网络中子网中的一组私有 IP 地址。然后,您可以通过私有 IP addresses.More 限制对 Azure Cosmos 帐户的访问详细信息,请参阅 this document

顺便说一句,您可以使用User + Permission来限制用户访问资源。

IP 防火墙是执行此操作的正确方法。您有不想使用 IP 防火墙的原因吗?