Including single reference to fix this, especially in private network settings.
In summary, this approach allows you to keep the validation as well as enable usage in restricted network configurations.
The fix MindingData suggests doesn't feed files into the share. This is because, if validation fails, it's a network related issue. The skip just allows the deployment to continue.
https://www.dotnet-ltd.com/blog/how-to-deploy-azure-elastic-premium-functions-with-network-restrictions