将 Azure 应用服务与应用服务环境集成

Integrate Azure App Service with App Service Environment

我们有一个 Azure 应用服务环境,它位于配置有快速路由网关和 VPN 网关的 vnet 的子网中。当尝试将 ASE 外部的 AppService 连接到 Vnet 时,如此处所述:https://docs.microsoft.com/nb-no/azure/app-service/web-sites-integrate-with-vnet,我们无法连接,因为它表示网关不是 VPN 网关。

我怀疑 GUI 在试图找出它是什么类型的 gw 时只选择列表中的第一个 gw。

因为,我们也有一个VPN网关:

我有几个问题:

  1. 有没有办法让 Portal 在以下情况下使用正确的网关 尝试从 AppService 连接到 Vnet?
  2. 如果没有,是否可以使用 AzureRm CmdLets 从 Powershell 执行此操作?

目前,这是不可能的。这是一种设计行为。将 Web 应用与 Azure 虚拟网络集成不支持具有 ExpersRoute 网关的 Vnet。如果ExperssRoute在里面,你会得到错误日志。

您可以查看您提供的link

The VNet Integration feature does not integrate an app with a VNet that has an ExpressRoute Gateway. Even if the ExpressRoute Gateway is configured in coexistence mode the VNet Integration does not work. If you need to access resources through an ExpressRoute connection, then you can use an App Service Environment, which runs in your VNet.

更新:

如果你需要这个功能,你可以给这个投票feedback