Azure Serverless Computing Cookbook
Second Edition
Build and monitor Azure applications hosted on serverless architecture using Azure Functions
Praveen Kumar Sreeram
BIRMINGHAM - MUMBAI
Azure Serverless Computing CookbookSecond Edition
Copyright 2018 Packt Publishing
All rights reserved. No part of this book may be reproduced, stored in a retrieval system, or transmitted in any form or by any means, without the prior written permission of the publisher, except in the case of brief quotations embedded in critical articles or reviews.
Every effort has been made in the preparation of this book to ensure the accuracy of the information presented. However, the information contained in this book is sold without warranty, either express or implied. Neither the author, nor Packt Publishing or its dealers and distributors, will be held liable for any damages caused or alleged to have been caused directly or indirectly by this book.
Packt Publishing has endeavored to provide trademark information about all of the companies and products mentioned in this book by the appropriate use of capitals. However, Packt Publishing cannot guarantee the accuracy of this information.
Commissioning Editor: Vijin Boricha
Acquisition Editor: Shrilekha Inani
Content Development Editor: Nithin George Varghese
Technical Editor: Komal Karne
Copy Editor: Safis Editing
Project Coordinator: Drashti Panchal
Proofreader: Safis Editing
Indexer: Mariammal Chettiyar
Graphics: Tom Scaria
Production Coordinator: Aparna Bhagat
First published: August 2017
Second edition: November 2018
Production reference: 1301118
Published by Packt Publishing Ltd.
Livery Place
35 Livery Street
Birmingham
B3 2PB, UK.
ISBN 978-1-78961-526-5
www.packtpub.com
It would have not been possible to complete the book without the support of my best half,
my wife, Haritha, and my cute little angel, Rithwika Sreeram.
mapt.io
Mapt is an online digital library that gives you full access to over 5,000 books and videos, as well as industry leading tools to help you plan your personal development and advance your career. For more information, please visit our website.
Why subscribe?
Spend less time learning and more time coding with practical eBooks and Videos from over 4,000 industry professionals
Improve your learning with Skill Plans built especially for you
Get a free eBook or video every month
Mapt is fully searchable
Copy and paste, print, and bookmark content
Packt.com
Did you know that Packt offers eBook versions of every book published, with PDF and ePub files available? You can upgrade to the eBook version at www.packt.com and as a print book customer, you are entitled to a discount on the eBook copy. Get in touch with us at customercare@packtpub.com for more details.
At www.packt.com , you can also read a collection of free technical articles, sign up for a range of free newsletters, and receive exclusive discounts and offers on Packt books and eBooks.
Contributors
About the author
Praveen Kumar Sreeram works as an Azure architect, trainer in a leading MNC. He has over 14 years of experience in the field of development, analysis, design, and delivery of applications, including custom web development using ASP.NET and MVC to building mobile apps using Xamarin for domains such as insurance, telecom, and wireless expense management. He has been recognized twice as the MVP by one of the leading social community websites, CSharpCorner. He is an avid blogger who writes about his learning at his personal blog, called Praveen Kumar Sreeram. His current focus is on analyzing business problems and providing technical solutions for various projects related to Microsoft Azure and .NET Core. His twitter ID is @PrawinSreeram.
First of all, my thanks go to the Packt Publishing team, including Shrilekha Inani, Nithin George Varghese, and Komal Karne.
I would like to thank my grandma, Neelavatamma; dad, Kamalakar and mom, Seetha; for being in my life and giving me courage all the time.
I would like to express my deepest gratitude to Bhagyamma (my grandmother), Kamala Kumar (my maternal uncle), his brothers, and rest of the family, who have been supporting me all the time.
About the reviewers
Kasam Shaikh, Microsoft Azure enthusiast, is a seasoned professional with a "Could be" attitude, with 10 years of industry experience working as a cloud architect with one of the leading IT companies in Mumbai, India. He is a certified Azure architect, and has been recognized as an MVP by a leading online community, and is also a global AI speaker. He has authored books on Azure Cognitive, Azure Bots, and Microsoft Bot Frameworks. He leads the Azure India (AZINDIA) community, the fastest growing online community for learning Azure. He is also a founder of the Dear Azure website.
First and foremost, I would like to thank the Almighty Allah, my family, and especially my better half, for motivating me throughout this process. I am highly grateful to Packt Publishing for believing in me and for considering me for this opportunity.
Michael Sync (Soe Htike) is a senior engineer working at Readify in Australia. He was an MVP (Microsoft Valuable Professional) for 7 years. He participated as a speaker, mentor, and helper at several community events. He is also an author and a tech book reviewer. He has published two books with Manning and has reviewed several books for a number of publishers. He has been working in the software industry for more than 16 years.
Packt is searching for authors like you
If you're interested in becoming an author for Packt, please visit authors.packtpub.com and apply today. We have worked with thousands of developers and tech professionals, just like you, to help them share their insight with the global tech community. You can make a general application, apply for a specific hot topic that we are recruiting an author for, or submit your own idea.
Preface
Microsoft provides a solution to easily run small segments of code in the cloud with Azure Functions. Azure Functions provides solutions for processing data, integrating systems, and building simple APIs and microservices.
The book starts with intermediate-level recipes on serverless computing, along with some use cases on the benefits and key features of Azure Functions. Then, we'll deep dive into the core aspects of Azure Functions, such as the services it provides, how you can develop and write Azure Functions, and how to monitor and troubleshoot Azure Functions.
Moving on, you'll get practical recipes on integrating DevOps with Azure Functions, and providing continuous deployment with Azure DevOps (formerly Visual Studio Team Services). The book also provides hands-on steps and tutorials based on real-world serverless use cases to guide you through configuring and setting up your serverless environments with ease. Finally, you'll see how to manage Azure Functions, providing enterprise-level security and compliance to your serverless code architecture.
Next page