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

Inserting Documents into Cosmos DB

This section will discuss inserting documents into a Cosmos DB. It will leverage the near-infinite scale of Cosmos DB to deliver a planet-scale serverless application. And to ensure that it happens correctly, you will need a function in the state from the previous chapter and an Azure subscription with the ability to set up a Cosmos DB. Let's begin by implementing the following steps:

  1. Right-click on your project and select Manage NuGet Packages.... Install version 1.0.0 of MicrosoftAzure.WebJobs.Extensions.DocumentDB.
DocumentDB is the old name for Cosmos DB; Microsoft haven't updated all of the SDKs yet. There's an SDK with the new name, but it's still in beta. Refer to the complete code at: Code/ServerlessArchitectures-with-Azure/Lesson ...
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