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
A Developer's Guide to Building Resilient Cloud Applications with Azure

You're reading from   A Developer's Guide to Building Resilient Cloud Applications with Azure Deploy applications on serverless and event-driven architecture using a cloud database

Arrow left icon
Product type Paperback
Published in Feb 2023
Publisher Packt
ISBN-13 9781804611715
Length 296 pages
Edition 1st Edition
Languages
Tools
Arrow right icon
Author (1):
Arrow left icon
Hamida Rebai Hamida Rebai
Author Profile Icon Hamida Rebai
Hamida Rebai
Arrow right icon
View More author details
Toc

Table of Contents (18) Chapters Close

Preface 1. Part 1: Building Cloud-Oriented Apps Using Patterns and Technologies
2. Chapter 1: Introduction to Serverless Architecture, Event-Driven Architecture, and Cloud Databases FREE CHAPTER 3. Chapter 2: API Management – Import, Manage, and Publish Your First API 4. Chapter 3: Developing Event-Based and Message-Based Solutions 5. Part 2: Connecting Your Application with Azure Databases
6. Chapter 4: Creating and Deploying a Function App in Azure 7. Chapter 5: Develop an Azure Service Fabric Distributed Application 8. Chapter 6: Introduction to Application Data 9. Chapter 7: Working with Azure SQL Database 10. Chapter 8: Working with Azure Storage 11. Chapter 9: Working with Azure Cosmos DB to Manage Database Services 12. Chapter 10: Big Data Storage Overview 13. Part 3: Ensuring Continuous Integration and Continuous Container Deployment on Azure
14. Chapter 11: Containers and Continuous Deployment on Azure 15. Assessments 16. Index 17. Other Books You May Enjoy

Exercise 3 – connecting Azure App Service with Azure Cosmos DB

In this section, we will connect Azure App Service with Azure Cosmos DB as a database. An ASP.NET Web API will connect to a Cosmos DB database to manage the appointments booked by patients before sending them to the doctor’s dashboard.

We will use Visual Studio 2022 with the Azure workload installed. We will follow these steps to connect to Azure Cosmos DB using Connected Services:

  1. In Solution Explorer, right-click the Connected Services node, and, from the context menu, select Add Connected Service:
Figure 9.20 – Connected Services

Figure 9.20 – Connected Services

  1. In Connected Services, select Add a service dependency or the + icon for Service Dependencies.
  2. On the Add dependency page, select Azure Cosmos DB:
Figure 9.21 – Add dependency – Azure Cosmos DB

Figure 9.21 – Add dependency – Azure Cosmos DB

  1. Select Next. On the Connect to Azure Cosmos DB page, select an existing...
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