- Create the project from the following template:
$ sls create --template-url https://github.com/danteinc/js-cloud-native-cookbook/tree/master/ch11/azure --path cncb-azure
- Navigate to the cncb-azure directory with cd cncb-azure.
- Review the file named serverless.yml with the following content:
service: cncb-azure-${opt:stage}provider: name: azure location: ${opt:region}plugins: - serverless-azure-functionsfunctions: hello: handler: handler.hello events: - http: true x-azure-settings: authLevel : anonymous - http: true x-azure-settings: direction: out name: res
- Review the file named handler.js with the following content:
module.exports.hello = function (context) { context.log('context: %j', context); context.log('env: %j', ...