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
About the Authors
About the Reviewers
Customer Feedback

Continuous Integration

Continuous Integration is one of the most popular and core DevOps practices. Continuous Integration is a practice where code is committed to a shared repository such as Git, and the committed code is verified against static code analysis, automated build, and unit test cases.

  1. Let's create a build definition.
  2. Click on the Git repository and click on Set up build:
  1. Select a template Azure Web Appand click on Apply:
  1. Keep only Get sources and Publish Artifact tasks.
  2. Click on Add Task and add Copy Files task to the Build definition:
  1. We want to copy all the files available from the Azure Functions project.
  2. Provide the details for Target Folder:
  1. Publish Artifact is used to make available files to be used in the Release definition:
  1. In the Triggers section, enable the Continuous Integration trigger. Now, if any new code is checked in, then Continuous Integration will take place:
  1. Click on Save. Our Build definition is ready.

In the next section, we will create the Release definition.