question

CosminStirbu-1831 avatar image
0 Votes"
CosminStirbu-1831 asked GitaraniSharmaMSFT-4262 commented

VNET integration with multiple Azure Functions hosted on two App Service Plans

Hello,

I am looking for some guidance related to VNET and multiple Azure Functions hosted on two separate App Service Plans.

Initially my setup was the following:

1 VNET with one Subnet. This VNET has peering with another VNET where the database is hosted.
6 Azure Functions hosted on a single App Service Plan - each function is integrated with the VNET / Subnet

Using Terraform I migrated to the following setup:

1 VNET with one Subnet
4 Azure Functions hosted on a new App Service Plan - each function is integrated with the VNET / Subnet
2 Azure Functions hosted on a different new App Service Plan - each function is integrated with the VNET / Subnet

The initial App Service Plan was deleted.


Everything works as expected, however I have two concerns:

  1. The old App Service Plan is referenced on the subnet in serviceAssociationLinks

  2. Based on the documentation (https://docs.microsoft.com/en-us/azure/azure-functions/functions-networking-options) this new setup shouldn't work, so I'm confused if I should make any other changes or not:
    - The integration subnet can be used by only one App Service plan.
    - You can have only one regional VNet Integration per App Service plan. Multiple apps in the same App Service plan can use the same VNet.


Based on my concerns above, I'd like to understand if my new setup (2 App Service Plans and one VNET / Subnet) is working as expected / document or if it is working accidentally and I should make changes to it.

Thank you,
Cosmin

azure-functionsazure-virtual-network
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hello @CosminStirbu-1831 ,

Apologies for the delay in response.

Per the limitations, the integration subnet can be used by only one App Service plan and this holds true. When you try to integrate another App service plan to an already integrated subnet manually, it will not allow such an operation. I'm not sure what happened in the backend when you migrated the setup using Terraform which allowed both App service plans to be integrated with same subnet. In order to investigate what happened in this case, we would need the backend logs and hence if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.

Thank you for your cooperation on this matter and I look forward to your reply.

Regards,
Gita

0 Votes 0 ·

<<<<<<UPDATE>>>>>>

Discussed with @CosminStirbu-1831 over private message and below is the update from their end:

They created a dedicated subnet for each of the two App Service plans so they're not really keen into digging deeper to understand why they were able to configure two plans with the same subnet.

Hence, we are closing this issue.

Thanks,
Gita

0 Votes 0 ·

0 Answers