Intro. Quick recommendations and tips for various processes.
- Write your functions
- Run function app locally by using
func host start). See quickstart.
serverless deployto deploy your function app (preferably in a CI/CD environment)
serverless invoke -f myFunctionto test your Azure Functions.
- Break your application/project into multiple Function Apps.
- Model your Function Apps around Data Models or Workflows.
- Keep the Functions and Resources in your Function Apps to a minimum.
A handy list of commands to use when developing with the Serverless Framework.
Install the boilerplate application:
- with node:
sls create -t azure-nodejs -p my-app
- with python:
sls create -t azure-python -p my-app
This is a convenience method to install a pre-made Serverless Service locally by downloading the GitHub repo and unzipping it.
serverless install -u [GITHUB URL OF SERVICE]
Use this when you have made changes to your Function App
Invokes an Azure Function
sls invoke function -f [FUNCTION NAME]