Share via

Website issues occur in flex consumption plan with virtual network integration

Chaya 5 Reputation points
2025-03-28T06:59:03.68+00:00

What we want to achieve

In Azure Functions (flex consumption  plan), we want to open the Functions website (https://{Functions Name}.azurewebsites.net) in the state that virtual network integration is configured.

■ Event

When opening the Functions website, a screen with the text “The service is unavailable” is displayed.

However, when the virtual network integration is disconnected, a normal screen is displayed.スクリーンショット 2025-03-28 151525

■Error Messages

◆Open the Troubleshooting Tools > Diagnostic Tools > Network/Connectivity Troubleshooter and select Connectivity issues, and you will see the following error message for virtual network integration. The following error occurs for virtual network integration.

▼ Error message

VNet integration is not healthyスクリーンショット 2025-03-28 150154

◆Open the Troubleshooting Tools > Diagnostic Tools > Network/Connectivity Troubleshooter and select Configuration issues. The following error occurs for virtual network integration.

▼ Error message

Subnet 'snet-03' is not valid for integration with App '{Functions Name}'

 

Subnet snet-03 is owned by App Service Plan undefined and cannot be used for Regional VNet integration by App Service Plan asp-02 which hosts the app { Functions Name}.スクリーンショット 2025-03-28 150419 *asp-02 is an App Service Plan created at the same time when Functions are created.

◆The configuration screen for virtual network integration in Functions is as follows.スクリーンショット 2025-03-28 150737

◆The setting values for the subnets subject to virtual network integration are as follows.

スクリーンショット 2025-03-28 150908

スクリーンショット 2025-03-28 151156

スクリーンショット 2025-03-28 151326

■Reference Information

https://learn.microsoft.com/ja-jp/azure/azure-functions/functions-networking-options?tabs=azure-portal#enable-virtual-network-integration

Azure Functions
Azure Functions

An Azure service that provides an event-driven serverless compute platform.


1 answer

Sort by: Most helpful
  1. Matt Hunt 0 Reputation points
    2025-09-25T10:54:42.03+00:00

    Was there a resolution to this?

    I am having the exact same issue. One /26 subnet delegated to /environments, one flex consumption function app & app service plan with vnet integration to this subnet.

    I've enabled public access on inbound for the function app but also have VNET integration is unhealthy, stating the subnet is in used by an undefined app service plan - but this cannot be the case, as I am deploying the subnet, function app, and app service plan together.

    Was this answer helpful?

    0 comments No comments

Your answer

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