Azure 负载均衡器静态 IP

Azure Load balancer static IPs

Azure public IP 是真正静态的还是可以更改?

我有 2 个负载均衡器,每个负载均衡器后面都有 2 个虚拟机。 我为最终用户提供多租户 SAAS 解决方案,并要求他们将 DNS 中的 CNAME 记录映射到我们的域名。 www.ourDomain.com

在某些情况下,我会允许最终用户将 A 记录映射到我们的 IP。 Azure IP 的风险有多大?

事实上,无论您使用的是基本负载均衡器还是标准负载均衡器,都支持使用 static 分配方法来分配面向 public 的负载均衡解决方案。

对于基本 SKU LB,您可以将基本 public IP 从动态分配方法更改为静态,对于标准 SKU LB,Azure 始终为您的标准 public IP 使用静态分配方法。

因此没有风险,除非您将 public IP 分配给其他资源或释放这些 public IP。更详细的可以看this.

Static addresses are only released if a network interface is deleted. If you change the allocation method to dynamic, Azure dynamically assigns the previously assigned static IP address as the dynamic address, even if the address isn't the next available address in the subnet's address range. The address also changes if the network interface is assigned to a different subnet within the same virtual network, but to assign the network interface to a different subnet, you must first change the allocation method from static to dynamic. Once you've assigned the network interface to a different subnet, you can change the allocation method back to static, and assign an IP address from the new subnet's address range.

如果您在负载均衡器中将设置更改为静态 ip,它应该保持静态,直到您再次更改它。