Read this on the main serverless docs site¶
Azure - Workflow¶
Intro. Quick recommendations and tips for various processes.
Development Workflow¶
- Write your functions
- Run function app locally by using
sls offlineandnpm start(orfunc host start). See quickstart. - Use
serverless deployto deploy your function app (preferably in a CI/CD environment) - Use
serverless invoke -f myFunctionto test your Azure Functions.
Larger Projects¶
- 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.
Cheat Sheet¶
A handy list of commands to use when developing with the Serverless Framework.
Create A Function App:¶
Install the boilerplate application:
- with node:
- with python:
Install A Service¶
This is a convenience method to install a pre-made Serverless Service locally by downloading the GitHub repo and unzipping it.
Deploy¶
Use this when you have made changes to your Function App
Invoke Function¶
Invokes an Azure Function