I had the same problem
In my case was problem with used Storage Account
and this account was set to only accept connection from specified VNet
and that function app wasn't there (in terms of creation where isn't any possible way to set VNet)
so I just allow access from all networks for Storage Account
then create Function App
move Function App into VNet
change network setting for Storage Account