添加对等不检测网关子网

Add Peering Does Not Detect Gateway Subnet

复制 1. 通过 Azure 门户添加 Vnet 2. 返回刚刚创建的 VNet 并添加网关子网。 3. 从同一 VNet 中尝试添加对等互连,select peer Vnet 并选中 "Allow gateway transit" 复选框。

结果 - "Neither vnet-xxx nor vnet-yyy has a gateway configured. The gateway transit setting requires there to be a gateway in one virtual network in the peering. Please unselect the gateway transit setting to continue, or navigate to one of the virtual networks and add a gateway."

我有许多其他的 VNet 和对等设置,它们都以相同的方式工作,它们都能正常工作。进入 vnet 对等互连配置时,我可以看到相同的错误消息,但是该复选框已选中并且可以正常工作。

用于添加对等互连的 UI 似乎已更改,因为我添加了 Vnet 和对等互连,因为在使用旧配置 UI 进行对等互连之前我从未见过此错误消息。

FWIW 我正在尝试创建一个 Vnet 以供应用程序服务使用,该应用程序服务将对等到我管理的 SQL 连接的 Vnet。

由于错误消息表明在启用 网关传输 时,您必须在其中一个对等 VNet 中配置网关。仅添加网关子网不是过程,在这种情况下,您必须在 VNet 中部署 VPN 网关。

如果要使用 VNet 集成(添加 VNet 预览),则不需要网关即可使用它并且 Web 应用程序和 VNet 必须相同地区。但似乎您没有使用 gateway transit,因为在这种情况下没有配置 gatewayDocument 只是说明了这一点,

If you are using peering with the regional VNet Integration, you do not need to do any additional configuration.

表示目前只有已有的VNet支持网关中转。不确定新的 VNet 集成将来会支持此功能,因为它仍处于预览阶段。此外,您可以从 获得有关现有 VNet 集成和我回答的 VNet 对等互连的更多详细信息。