Before you create an Azure function app and function, you need your function written in supported language. For this journal, I use Node.js.
You need to install func, the Azure Functions Core Tools: https://github.com/Azure/azure-functions-core-tools
Initialize your local project with: func init --worker-runtime javascript --model V4
--worker-runtimespecifies that the function will use JavascriptV4is the Azure Functions Node.js programming model v4 (there’s older verion, but prefer to use V4 to be consistent with latest standards)
This is the folder structure after executing the command above. It just contains configuration files for now.
tree
.
├── host.json
├── local.settings.json
├── package.json
└── src
└── functions