Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Learning Azure Functions
Learning Azure Functions

Learning Azure Functions: Build scalable cloud systems with serverless architecture

Arrow left icon
Profile Icon Manisha Yadav Profile Icon Mitesh Soni
Arrow right icon
$24.99 $35.99
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3 (3 Ratings)
eBook Sep 2017 240 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
Arrow left icon
Profile Icon Manisha Yadav Profile Icon Mitesh Soni
Arrow right icon
$24.99 $35.99
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3 (3 Ratings)
eBook Sep 2017 240 pages 1st Edition
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m
eBook
$24.99 $35.99
Paperback
$43.99
Subscription
Free Trial
Renews at $19.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
Table of content icon View table of contents Preview book icon Preview Book

Learning Azure Functions

First Function App - Anatomy and Structure of a Function App

"Where there is a will, there is a way. If there is a chance in a million that you can do something, anything, to keep what you want from ending, do it. Pry the door open or, if need be, wedge your foot in that door and keep it open."
- Pauline Kael

There is always a first time for everything. Here in this chapter, we will take one scenario and then we will try to complete the scenario with Azure Functions so that we can understand how Azure Functions work, and the different resources of Microsoft Azure that are involved in the whole scenario.

In this chapter, we will focus on creating our first Azure Function. We will create an Azure Function App and then we will create an Azure Function with triggers and output bindings.

We will also troubleshoot if we find any issues in the Azure Function. One of the most...

Anatomy of Azure Functions

Let's understand the different components or resources that are used while creating Azure Functions.

The following image describes the Functions in Azure in different pricing plans:

Azure Function App

A function app is a collection of one or more functions that are managed together. All the functions in a Function App share the same pricing plan and it can be a consumption plan or an App Service plan. When we utilize Visual Studio Team Services for Continuous Integration and Continuous Delivery using build and release definitions, then the Function app is also shared. The way we manage different resources in Azure with the Azure Resource Group is similar to how we can manage multiple functions...

Setting up a basic Azure Function

Let's understand Azure Functions and create one in Azure Portal.

  1. Go to https://portal.azure.com. Click on Function Apps in the left sidebar:

There is no Function App available as of now.

  1. Click on the plus + sign and search for Function Apps. Then click on Create:
  1. Provide the App name, Subscription details, and existing Resource Group. Select Consumption Plan in Hosting Plan. Then select Location:
  1. Select Create New in Storage and click on Create:
  1. Now, let's go to Function Apps in the left sidebar and verify whether the recently created Function App is available in the list or not:
  1. Click on the Function App and we can see the details related to the Subscription, Resource group, URL, Location, App Service Plan / pricing tier.

We can stop or restart the function from the same pane.

  1. The Settings tab provides details on...

Summary

Finally, we have created our first function that processes a photograph and creates a thumbnail for a photography competition scenario.

We have also seen the anatomy of Azure Functions and covered the troubleshooting of issues that can occur in the Azure Function processing.

So, we have covered all the basic things to execute a simple function with triggers and output binding.

In the next chapter, we will discuss triggers in detail.

Left arrow icon Right arrow icon
Download code icon Download Code

Key benefits

  • Learn to develop, manage, deploy, and monitor Azure functions in any language.
  • Make the most out of Azure functions to build scalable systems.
  • A step-by-step guide that will help you eliminate the pain points of implementing a serverless architecture.

Description

Functions help you easily run small pieces of code in cloud with Azure functions without worrying about a whole application or the infrastructure to run it. With Azure functions, you can use triggers to execute your code and bindings to simplify the input and output of your code. This book will start with the basics of Azure Functions. You will learn the steps to set up the environment and the tools that we will be using in the further chapters. Once you have a better understanding of this, we will be creating our first hello world function app. Later you will be introduced to triggers, how they are used to activate a function, and how binding can be used to output results of a function.You will also explore the steps to create an assembly with complex functionality that can be used by functions. Next, this book will teach you to scale your functions and use them to process data, integrate systems, and build simple APIs and microservices. Finally, this book will cover some diagnostic techniques with Azure App services and best practices of working with Azure Functions. By the end of this book, you will be well-versed with the techniques of scaling your Azure functions and making the most of serverless architecture.

Who is this book for?

This book aims at IT architects and developers who want to build scalable systems and deploy serverless applications with Azure functions. No prior knowledge of Azure functions is necessary.

What you will learn

  • Understand the folder structure of a function and the purposes of the files
  • Deploy a function and test it
  • Explore the common triggers that are used to activate a function
  • Discover how bindings can be used to output the results of a function
  • Build a dll that has functionality that can be leveraged by a function
  • Chain functions to allow the invocation of one function from another
  • Understand how to monitor the health of your functions

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Sep 28, 2017
Length: 240 pages
Edition : 1st
Language : English
ISBN-13 : 9781787288997
Vendor :
Microsoft
Languages :
Concepts :
Tools :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want

Product Details

Publication date : Sep 28, 2017
Length: 240 pages
Edition : 1st
Language : English
ISBN-13 : 9781787288997
Vendor :
Microsoft
Languages :
Concepts :
Tools :

Packt Subscriptions

See our plans and pricing
Modal Close icon
$19.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
$199.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts
$279.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just $5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total $ 141.97
Learning Azure Functions
$43.99
Azure for Architects
$48.99
Azure Serverless Computing Cookbook
$48.99
Total $ 141.97 Stars icon

Table of Contents

9 Chapters
Introducing Microsoft Azure Services and Functions Chevron down icon Chevron up icon
First Function App - Anatomy and Structure of a Function App Chevron down icon Chevron up icon
Application of Triggers Chevron down icon Chevron up icon
Bindings Chevron down icon Chevron up icon
Webhooks for Azure Functions Chevron down icon Chevron up icon
The Real World - Functions to Build Consumable APIs Chevron down icon Chevron up icon
Managing and Deploying your Code Chevron down icon Chevron up icon
Business Considerations Chevron down icon Chevron up icon
Working with Different Languages Chevron down icon Chevron up icon

Customer reviews

Rating distribution
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
(3 Ratings)
5 star 0%
4 star 33.3%
3 star 33.3%
2 star 33.3%
1 star 0%
Jared Rich Jan 19, 2018
Full star icon Full star icon Empty star icon Empty star icon Empty star icon 2
This book clearly wasn't edited before being published. The information is OK, but the broken English is difficult to decipher sometimes and many examples are missing crucial steps.
Amazon Verified review Amazon
Ashish Bhatia Jan 06, 2018
Full star icon Full star icon Full star icon Full star icon Empty star icon 4
Good Read for learning Azure functions
Amazon Verified review Amazon
YC Oct 14, 2017
Full star icon Full star icon Full star icon Empty star icon Empty star icon 3
Only a little more information than what Microsoft provides to you in their free tutorials.
Amazon Verified review Amazon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.