Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

unable to connect service plan to vnet

Tags:

azure

I am trying to configure app services to use a virtual network and prevent them from being directly publicly accessible. When i try to connect them to a vnet, my vnet is grayed out with a message "this virtual network has no gateway" i have setup a subnet gateway on the vnet still get the message. How do i link these services to my vnet?

app service vnet config

vnetsubnets

like image 658
Stephen Avatar asked Sep 19 '25 04:09

Stephen


1 Answers

Probably, you just add the named GatewaySubnet subnet in your current virtual network. It's not enough. You need to create a virtual network gateway resource first then set up a VPN gateway in your virtual network. For example, you could configure a Point-to-Site VPN connection to a VNet using native Azure certificate authentication via Azure portal

VNet

enter image description here

Virtual network gateway with VPN type

enter image description here

Another option is to use Regional VNet Integration. In this case, you do not need a gateway in that VNet. Go to the Networking UI in the portal. If your app is able to use the new feature, then you will see an option to Add VNet (preview).

like image 70
Nancy Xiong Avatar answered Sep 20 '25 20:09

Nancy Xiong