Skip to Content
Mastering Azure Serverless Computing
book

Mastering Azure Serverless Computing

by Lorenzo Barbieri, Massimo Bonanni
November 2019
Intermediate to advanced
362 pages
7h 52m
English
Packt Publishing
Content preview from Mastering Azure Serverless Computing

Azure Functions and JavaScript

You can implement your Azure Functions using JavaScript. The Azure Functions Runtime leverages Node.js to host and run your functions written in JavaScript.

At the time of writing this book, the runtime uses even-numbered Node.js versions (8.11.1 and 10.14.1 are recommended). You can set the Node.js version using the WEBSITE_NODE_DEFAULT_VERSION app settings.

You can retrieve the Node.js version inside any function by using that app's settings or reading the process.version property.

You can create your first function using the Azure Functions Core Tools in the same way you do for a C# function:

  1. The first step you must perform is to create the project that hosts your functions:
func init --worker-runtime node ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Serverless Architectures with Microsoft Azure

Advanced Serverless Architectures with Microsoft Azure

Daniel Bass
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo

Publisher Resources

ISBN: 9781789951226Supplemental Content