Skip to Content
Hands-On Serverless Computing
book

Hands-On Serverless Computing

by Kuldeep Chowhan
July 2018
Intermediate to advanced
350 pages
8h 47m
English
Packt Publishing
Content preview from Hands-On Serverless Computing

Configuration/Authentication

Azure offers different ways of authenticating to its services. You can find the different ways to authenticate at https://github.com/Azure/azure-sdk-for-node/blob/master/Documentation/Authentication.md.

After you have installed the azure-storage Node.js SDK, adding the following line will load the azure-storage Node.js Javascript files into your application:

const azureStorage = require('azure-storage');

The following code sample shows how to create a storage container in Azure and then uploads a local file data.txt to the storage container that we just created. For this code sample to work, the authentication method that you use to connect to Azure services should have access to creating the storage container ...

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

Learn AWS Serverless Computing

Learn AWS Serverless Computing

Scott Patterson
Erlang and OTP in Action

Erlang and OTP in Action

Eric Merritt, Richard Carlsson, Martin Logan

Publisher Resources

ISBN: 9781788836654Supplemental Content