简体   繁体   English

无法通过对等 VNET 访问 Azure 应用程序网关

[英]Can't Access Azure Application Gateway through peered VNET

I have two peered VNETs in Azure and I also have an Application Gateway in one of them.我在 Azure 中有两个对等 VNET,其中之一还有一个应用程序网关。 I have a couple VMs inside both VNETs and I want to access the Application Gateway from the VMs by its private IP (which is set up).我在两个 VNET 中都有几个 VM,我想通过其私有 IP(已设置)从 VM 访问应用程序网关。 This works from the VNET that the gateway resides in but I can't access it from the other peered network.这适用于网关所在的 VNET,但我无法从其他对等网络访问它。 I can access all the VMs between the networks by their private IPs no problem.我可以通过它们的私有 IP 毫无问题地访问网络之间的所有虚拟机。 What can I be missing?我可以缺少什么? (I am not really that familiar with networking, so it can be something basic...). (我对网络不是很熟悉,所以它可能是一些基本的东西......)。 Thank you for any suggestion!谢谢你的任何建议!

You can check if the two peered virtual networks are located in a different region.您可以检查两个对等互连的虚拟网络是否位于不同的区域。

If you are using a Global Vnet peering(Vnet to Vnet region is different), there are some limitations that you can not use Global Vnet peering to communicate with VIPs of load balancers in another region.如果您使用的是全局 Vnet 对等互连(Vnet 到 Vnet 区域不同),则存在一些限制,即您无法使用全局 Vnet 对等互连与其他区域中的负载均衡器的 VIP 进行通信。 Application Gateway is actually a layer-7 load balancer.应用程序网关实际上是一个第 7 层负载均衡器。

Resources in one virtual network cannot communicate with the IP address of an Azure internal load balancer in the peered virtual network.一个虚拟网络中的资源无法与对等虚拟网络中的 Azure 内部负载平衡器的 IP 地址进行通信。 The load balancer and the resources that communicate with it must be in the same virtual network.负载均衡器和与之通信的资源必须在同一个虚拟网络中。

References: How to setup Global VNet peering in Azure参考: 如何在 Azure 中设置全局 VNet 对等互连

APIM is a service based on Azure Load balancer. APIM 是一种基于 Azure 负载均衡器的服务。 For Stv1 APIM Azure uses Basic Load balancer which does not allow traffic via global peering.对于 Stv1 APIM Azure 使用基本负载均衡器,它不允许通过全球对等互连的流量。 [Refer this][1] In order to facilitate traffic via global peering need to use stv2 APIM.[Refer this][2] [1]: https://learn.microsoft.com/en-us/azure/virtual-network/virtual-network-manage-peering?tabs=peering-portal#requirements-and-constraints [2]: https://learn.microsoft.com/en-us/azure/api-management/virtual-network-concepts?tabs=stv1.network-resource-requirements [参考这个][1] 为了通过全球对等促进流量需要使用 stv2 APIM。[参考这个][2] [1]: https://learn.microsoft.com/en-us/azure/virtual-网络/虚拟网络管理对等?tabs=peering-portal#requirements-and-constraints [2]:https://learn.microsoft.com/en-us/azure/api-management/virtual-network-concepts ?tabs=stv1.network-resource-requirements

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM