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.
5,709 questions
{count} vote

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.