1
votes

We have an Azure App Service Environment, which resides in a subnet in a vnet configured with both an expressroute gateway and a VPN gateway. When trying to connect an AppService outside of the ASE to the Vnet, as described here: https://docs.microsoft.com/nb-no/azure/app-service/web-sites-integrate-with-vnet, we are not able to connect, because it says the gateway is not a VPN gateway.

I suspect the GUI only picks the first gw in the list when it tries to figure out what type of gw it is.

enter image description here

Because, we do have a vpn gateway too:

enter image description here

I have a couple of questions:

  1. Is there a way to get the Portal to use the correct gateway when trying to connect from the AppService to the Vnet?
  2. If not, is there a way to do this from Powershell with the AzureRm CmdLets?
1
Currently, if your VNet has an experssroute gateway, you will get the prompt alarm, please check my answer.Shui shengbao
Yes, I saw that one. You write "currently". Does this mean there are plans for supporting this in the future? Please see my question on your reply, for advices on how to handle the scenario...Erik A. Brandstadmoen
Sorry, I am not sure. But you could check this feedback.Shui shengbao
Hi, currently, if you use site-to-site VPN. Your issue will be solved. But I suggest you could vote up this feedback. I have voted up it. Hope this function will come in the future.Shui shengbao
We must use Expressroute to connect to the on-premises service (it't not "our" premises). The issue you refer to, kindof wants to solve this without an ASE. But ASEs are fine to us. We just want to be able to talk to the service in the ASE from a frontend, even though the service needs to talk to a on-prem service through Expressroute too.Erik A. Brandstadmoen

1 Answers

1
votes

Currently, it is not possible. It is a design behavior. Integrate web app with an Azure Virtual Network does not support Vnet that has an ExperssRoute Gateway. If ExperssRoute is in it, you will get the error log.

You could check the link you provided.

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.

Update:

If you need this function, you could vote up this feedback.