Skip to Main Content
Beginning Serverless Architectures with Microsoft Azure
book

Beginning Serverless Architectures with Microsoft Azure

by Daniel Bass
July 2018
Beginner to intermediate content levelBeginner to intermediate
100 pages
2h 11m
English
Packt Publishing
Content preview from Beginning Serverless Architectures with Microsoft Azure

Securing an Azure Function with an API key

In this section, we'll use an Azure Application Service to call an Azure Function secured with an API key. We want to protect a serverless function from malicious requests. And to ensure that it happens correctly, we'll need to deploy Azure Serverless RESTful API. Let's begin by implementing the following steps:

If you haven't created an application setting for the Cosmos DB connection string you'll find it difficult to debug 500 errors. Also if you have different routes for PostTransactions and GetTransactions you'll need to make the function URL's different in the MVC controller.
  1. Go to your function that creates new records in the Cosmos DB, and change the authorization level to Function. Deploy ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Advanced Serverless Architectures with Microsoft Azure

Advanced Serverless Architectures with Microsoft Azure

Daniel Bass

Publisher Resources

ISBN: 9781789537048Supplemental Content