An Azure service that provides an event-driven serverless compute platform.
Hi @Ritesh Ranjan ,
Thanks for reaching out to Microsoft Q&A.
For Azure Functions VNet integration, the key requirement is that the subnet must be delegated to the right service and meet constraints for Functions networking.
For Functions VNet integration (including Flex Consumption), you must:
- Register the
Microsoft.Appresource provider in your subscription. - Delegate the subnet to
Microsoft.App/environments.
Also, the documentation calls out that the subnet you choose can’t already be used for other purposes (for example, being used with private endpoints / service endpoints, or being delegated to another hosting plan/service). If the subnet isn’t properly delegated (or is delegated in an incompatible way), the portal won’t list it as available for Function App integration.
Your screenshot specifically mentions delegation size constraint. In Flex Consumption, subnets used for VNet integration are used by a pool of network gateways, and there are sizing guidelines (to ensure the gateway pool has enough IPs). For example:
- A
/27subnet (27 usable IPs) is typically sufficient for a single app (IP multiplexing) - For multiple apps or higher-scale workloads, a
/26is recommended - Very small subnets (significantly smaller than
/27) can cause gateway creation problems and may not produce an obvious explicit error message.
In the Function App (or Flex Consumption plan) workflow, make sure the subnet meets all of the following:
- Subnet is delegated to
Microsoft.App/environments- If you associate the subnet via the portal/CLI during vNet integration setup, the required delegation is typically added automatically.
- Subnet isn’t already used/delegated for something else
- If it’s used with other features (like private endpoints/service endpoints) or delegated elsewhere, Functions integration may not be allowed.
- Subnet is large enough
- If you’re using Flex Consumption, ensure the subnet is at least /27, and consider /26 if multiple apps share the subnet.
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.