Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Learning Azure Functions

You're reading from   Learning Azure Functions Build scalable cloud systems with serverless architecture

Arrow left icon
Product type Paperback
Published in Sep 2017
Publisher Packt
ISBN-13 9781787122932
Length 240 pages
Edition 1st Edition
Languages
Tools
Concepts
Arrow right icon
Authors (2):
Arrow left icon
Mitesh Soni Mitesh Soni
Author Profile Icon Mitesh Soni
Mitesh Soni
Manisha Yadav Manisha Yadav
Author Profile Icon Manisha Yadav
Manisha Yadav
Arrow right icon
View More author details
Toc

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...
lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at $19.99/month. Cancel anytime
Banner background image