How configure Vmnet intregration for multiple app services

Oscar Moyano 66 Reputation points
2022-02-17T15:05:19.827+00:00

Hi everyone!

New in Azure I have some question (maybe stupid) about configure vmnet integration for Azure App Services. I explain my scenario:

  • I have an sql virtual machine (virtual network "Backend" in subnet "SqlSubnet" with ipv4 10.2.0.0/27)
  • I have 2 Azure Apps Service

Steps: I configured vmnet integration for my app service with this info

  • Create new adress space 172.16.13.0/27
    List item
  • Create new subnet
  • 175481-image.png
  • Assign to my azure app
  • ![List item]5

I don't know if is the best configuration but It works. I can ping and connect to sql server from azure app service.

Now my question and problem is:

I want to configure another app service to connect to the same sql server. I don't know how do it? I need to add another subnet?
If I try to configure vmnet integration from the second app service I can see this:
175447-image.png

I can' use the same existant "subnetApps". How I need to do the configuration? I don't think I have to configure a subnet for each azure app service....

Can someone help me

thanks a lot

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,685 questions
0 comments No comments
{count} votes

Accepted answer
  1. Andriy Bilous 11,341 Reputation points MVP
    2022-02-18T06:00:25.437+00:00

    Hello @Oscar Moyano

    You have to configure VNET subnet for each Azure WebApp only if they are in different App Service Plans.
    VNET integration feature supports only one virtual interface per worker. One virtual interface per worker means one regional virtual network integration per App Service plan. All the apps in the same App Service plan can only use the same virtual network integration to a specific subnet. If you need an app to connect to another virtual network or another subnet in the same virtual network, you need to create another App Service plan. The virtual interface used isn't a resource that customers have direct access to.

    175609-image.png

    However there are some VNET integration limitations, among them:

    • The feature requires an unused subnet that's an IPv4 /28 block or larger in an Azure Resource Manager virtual network.
    • The app and the virtual network must be in the same region.
    • The integration subnet can be used by only one App Service plan.
    • You can have only one regional virtual network integration per App Service plan. Multiple apps in the same App Service plan can use the same virtual network.

    https://learn.microsoft.com/en-us/azure/app-service/overview-vnet-integration#limitations

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.