Skip to Content
Azure Serverless Computing Cookbook - Second Edition
book

Azure Serverless Computing Cookbook - Second Edition

by Praveen Kumar Sreeram, Jason Marston
November 2018
Intermediate to advanced
424 pages
10h 55m
English
Packt Publishing
Content preview from Azure Serverless Computing Cookbook - Second Edition

Creating the activity function

Perform the following steps:

  1. Create a new activity function named ReadExcel_AT that connects to the blob using the StorageManager class that we developed in the previous section, and then reads the data using the EPPLusExcelManager class. Copy the following code into the ExcelImport_Orchestrator class:
[FunctionName("ReadExcel_AT")] public static async Task<List<Employee>> ReadExcel_AT( [ActivityTrigger] string name, ILogger log) { log.LogInformation("Orchestration started");StorageManager storageManager = new StorageManager(); Stream stream = null; ; log.LogInformation("Reading the Blob Started"); stream = await storageManager.ReadBlob(name); log.LogInformation("Reading the Blob has Completed"); EPPLusExcelManager ...
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

Azure Serverless Computing Cookbook

Azure Serverless Computing Cookbook

Praveen Kumar Sreeram
Azure Serverless Computing Cookbook - Third Edition

Azure Serverless Computing Cookbook - Third Edition

Praveen Kumar Sreeram, Kasam Shaikh, Greg Leonardo
Mastering Azure Serverless Computing

Mastering Azure Serverless Computing

Lorenzo Barbieri, Massimo Bonanni

Publisher Resources

ISBN: 9781789615265Supplemental Content