Azure 应用程序网关未在后端池中显示来自其他 VNet 的 VM

Azure Application Gateway not showing VM from other VNet in backend pool

在设置 Azure 应用程序网关的后端池时,我想在池中设置特定的 VM。

此 VM 位于另一个 VNet 中,我已在 App Gateway 的 VNet 和 VM 的 VNet 之间设置对等互连。

仍然,当我选择虚拟机作为后端池的目标类型时,列表是空的,我没有看到任何虚拟机。

有什么问题吗?我错过了什么吗?

当您 select 将 虚拟机 作为后端池的目标类型时,您似乎只能在与应用程序网关相同的 VNet 中看到 VM .

如果你有 VNet 对等互连,你可以只添加 VM 的内部 IP 以定位后端池。

后端池将请求路由到为请求提供服务的后端服务器。后端池可以包含:

  • NICs
  • Virtual machine scale sets
  • Public IP addresses
  • Internal IP addresses
  • FQDN
  • Multitenant backends (such as App Service)

If you use internal IPs as backend pool members, you must use virtual network peering or a VPN gateway. Virtual network peering is supported and beneficial for load-balancing traffic in other virtual networks.

参考:https://docs.microsoft.com/en-us/azure/application-gateway/application-gateway-components#backend-pools