Book Image

Learning Azure Functions

Book Image

Learning Azure Functions

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

Projects in VSTS


We want to achieve CI/CD as depicted in the following diagram:

We will utilize Visual Studio Team Services (VSTS) for Continuous Integration and Continuous Delivery to deploy Azure Functions as and when code changes are committed in the Git repository hosted in VSTS:

  1. First, we will create a project in VSTS so that we can store code and configure Continuous Integration and Continuous Delivery using the build and release definitions:
  2. Visit visualstudio.com and sign in:
  1. On the VSTS dashboard, create a new account or select an existing account.
  2. We already have a few projects available in the dashboard.
  3. Click on New Project:
  1. Provide the details for the Project name, Version control, and Work item process. Click on Create:
  1. Click on Generate Git credentials:
  1. Provide the details as required and click on Save Git Credentials:
  1. Once we have Git set up in the VSTS dashboard, go to the directory where Azure Function code is available.
  2. If Git for Windows is not installed, then install it first...