Book Image

Learning Azure Functions

By : Mitesh Soni, Manisha Yadav
Book Image

Learning Azure Functions

By: Mitesh Soni, Manisha Yadav

Overview of this book

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.
Table of Contents (17 chapters)
Title Page
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Customer Feedback
Dedication
Preface

Monitoring of Azure Functions


Monitoring is essential for the quality of the Azure Functions over a specific period of time. Azure Function Apps provide a simple yet understandable monitoring in the Azure portal itself.

Go to Function Apps, select a specific function, and click on the Monitor link.

Here we can see the success count, error count, function invocation log, and other details:

In Azure Portal, click on the function and select Expand to get logs in a large window, as shown in the following figure.

Upload any new image in the Azure Storage container and wait for the function to be executed successfully:

Once the function is executed successfully, go to the Monitor section and find the updated success count:

We can also set the Daily Usage Quota in the Azure Portal for the Function App. We can set the quota as GB per second:

Go to the Platform features of the Function App and navigate to the Properties link to find the available properties for that specific Function App:

In the Monitoring...