Test the function locally:
1- Open the terminal at /api
folder
2 - Press f5 (this opens up the debugger)
3 - click azure icon, ‘execute function now (this actually runs the function)
Or just run the following command in /api
folder
npm start
Essentially this opens Azure Core Tools.
Then you can go to Postman (I prefer ThunderClient within VScode) or wherever and run:
http://localhost:7071/etcetcetc
And see what the Error message is from the Function.
Then you need to deploy once tested….
Dont forget to git commit -a -m “my awesome function”
you might need to cd ..
to go up a directory.
go to Azure Icon in VS Code then under resources and the function you want to deploy to right click and ‘deploy to function app’.