Website issues occur in flex consumption plan with virtual network integration
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.
■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
◆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}.
*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.
◆The setting values for the subnets subject to virtual network integration are as follows.
■Reference Information