- NodeJS 10
The functions run in Serverless Framework and use Linux like OS to run functions.
Install Serverless
npm install -g serverless
Check Install
serverless -v
Install azure plugins
serverless plugin install --name serverless-azure-functions
In case that you have make installed in your computer you can use
make install-serverless-plugins
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
az login
Go to nodejs-functions/, to add a new function, you need create a new directory in src/handlers/, inside of directory you need create a index.js file
And how last step you need add reference to this function in serverless.yml, check the azure serverless documentation here for more information.
Add package.json with the modules that you need inside of function directory. Then add the follow line in Makefile inside of nodejs-functions/:
install-dependencies-nodejs:
cd src/handlers/automatic-clock-outs ; pwd ; $(MAKE) install
cd src/handlers/my-awesome-function ; pwd ; $(MAKE) install ## add function path. Dont forget use tabs
Go to python-functions/, to add a new function, you need create a new directory in src/handlers/, inside of directory you need create a _ _ init _ _.py file
And how last step you need add reference to this function in serverless.yml, check the azure serverless documentation here for more information.
In case that you need:
- Add a new Environment Variable
- Create some function with third parties dependencies
- Error in Pipeline
- Some Question :)