An Azure service that provides an event-driven serverless compute platform.
looks like some reference is missing but I found an alternative solution,
1: just go to classic way and retry configuration & save it, if this doesn't work then
2: go to cosmos DB, from there select function and then create a new function with the type of language, in my case I selected javascript and create the function, from there it will prompt you to a classic way of displaying function.
a) now verify the connection of your actual function which was not working even though everything looks okay to try to save again and then try, it will work!