April 2018
Global Azure Bootcamp
We are going to need a bigger framework!
module.exports.hello = (context, data) => {
const response = {
message: 'Hello World!',
input: data.paramName,
};
context.done(response);
};
module.exports.hello = (event, context, callback) => {
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Hello World!',
input: event,
}),
};
callback(null, response);
};
# export Azure serverless keys
export azureSubId='########-####-####-####-46ac114fbfc4'
export azureServicePrincipalTenantId='########-####-####-####-bedeee9b4cf3'
export azureServicePrincipalClientId='http://azure-cli-2018-04-21-17-33-32'
export azureServicePrincipalPassword='########-####-####-####-79f2e198745f'