将 Public IP 地址分配给 Azure 负载均衡器

Assign Public IP address to Azure Load Balancer

有人可以告诉我是否可以将现有的 public IP 地址附加到负载均衡器吗?目前,Azure 为我们的其中一台设备分配了一个 public 地址。我们想取消地址与设备的关联,并在我们的负载均衡器上使用相同的地址。这可能吗?

此致

卡尔顿

是的,这是可能的,例如使用 arm 模板,这是分配 ip 地址的部分:

 "frontendIPConfigurations": [
      {
           "name": "elb-FE",
            "properties": {
                "publicIPAddress": {
                      "id": "IP_ADDRESS_ID_GOES_HERE"
                }
           }
      }
]

We would like to disassociate the address from the device and use the same on our Load balancer. Is that possible?

是的,可以的,在取消关联public IP地址之前,我们应该将这个public IP地址设置为static,这样, IP 地址不会更改为其他地址。

之后,我们可以将此 public IP 地址关联到 Azure 负载均衡器。


更新:

我们可以通过 Azure 门户将此 IP 地址关联到 LB,如下所示: