Make sure serverless
is installed. See installation guide.
serverless install --url https://github.com/azure/boilerplate-azurefunctions --name my-app
npm install -g serverless-azure
followed by npm install
in the service directory.
serverless deploy
or sls deploy
. sls
is shorthand for the Serverless CLI command
serverless invoke --function helloWorld
or serverless invoke -f helloWorld
-f
is shorthand for --function
In your terminal window you should see the response from azure
{
"payload": "Hello, World!"
}
Congrats you have deployed and ran your Hello World function!
developers
Made with love in San Francisco + Atlanta, Austria, Germany, Pakistan, Poland, Nebraska & Thailand
Serverless, Inc. © 2018