Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • Book Overview & Buying Learning Azure Functions
  • Table Of Contents Toc
  • Feedback & Rating feedback
Learning Azure Functions

Learning Azure Functions

By : Manisha Yadav, Mitesh Soni
3 (3)
close
close
Learning Azure Functions

Learning Azure Functions

3 (3)
By: Manisha Yadav, Mitesh Soni

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 (10 chapters)
close
close

Building the project


Now, we will start to build our project. First we will create the API for storing data in Cosmos DB. Once the API is created, we will then move on to design our user form using HTML and CSS.

For creating APIs, we need to create HttpTrigger in Azure Function.

Let's start with the creation of the API using Azure Function:

  1. First, login to the Azure portal. Navigate to the Function App, which we have created in the previous chapter.
  2. Click on the plus sign, select the language as JavaScript, and click on the HttpTrigger function, as shown in the following screenshot:
  1. Now, provide a name to the function and click on Create:
  1. Once the function is created, the default code will be opened:
  1. Now, we need to create the API, which takes an input from the request and stores the output in the database. So, click on Integrate to add output binding:
  1. Now, click on Outputs to add output binding as Cosmos DB:
  1. Select Azure Cosmos DB, and then click on the Select button:
  1. To add output binding as Cosmos...
Visually different images
CONTINUE READING
83
Tech Concepts
36
Programming languages
73
Tech Tools
Icon Unlimited access to the largest independent learning library in tech of over 8,000 expert-authored tech books and videos.
Icon Innovative learning tools, including AI book assistants, code context explainers, and text-to-speech.
Icon 50+ new titles added per month and exclusive early access to books as they are being written.
Learning Azure Functions
notes
bookmark Notes and Bookmarks search Search in title playlist Add to playlist download Download options font-size Font size

Change the font size

margin-width Margin width

Change margin width

day-mode Day/Sepia/Night Modes

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Confirmation

Modal Close icon
claim successful

Buy this book with your credits?

Modal Close icon
Are you sure you want to buy this book with one of your credits?
Close
YES, BUY

Submit Your Feedback

Modal Close icon
Modal Close icon
Modal Close icon