Book Image

Migrating Applications to the Cloud with Azure

By : Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani
Book Image

Migrating Applications to the Cloud with Azure

By: Sjoukje Zaal, Amit Malik, Sander Rossel, Jason Marston, Mohamed Waly, Stefano Demiliani

Overview of this book

Whether you are trying to re-architect a legacy app or build a cloud-ready app from scratch, using the Azure ecosystem with .NET and Java technologies helps you to strategize and plan your app modernization process effectively. With this book, you’ll learn how to modernize your applications by using Azure for containerization, DevOps, microservices, and serverless solutions to reduce development time and costs, while also making your applications robust, secure, and scalable. You will delve into improving application efficiency by using container services such as Azure Container Service, Azure Kubernetes Service (AKS), and more. Next, you will learn to modernize your application by implementing DevOps throughout your application development life cycle. You will then focus on increasing the scalability and performance of your overall application with microservices, before learning how to add extra functionality to your application with Azure serverless solutions. Finally, you’ll get up to speed with monitoring and troubleshooting techniques. By the end of this book, you will have learned how to use the Azure ecosystem to refactor, re-architect, and rebuild your web, mobile, and desktop applications.
Table of Contents (22 chapters)
Free Chapter
1
Planning Application Modernization
4
Implementing Containerization and DevOps in a Development Cycle
8
Building a Web and Microservices Architecture on Azure
12
Going Serverless and Deploying to the Cloud
17
Planning for Security, Availability, and Monitoring

Working with the MongoDB API

So, let's get started with the MongoDB API. First, we need to create a Cosmos DB instance in the Azure portal:

  1. Either find Azure Cosmos DB in the menu or go to Create a resource and find Cosmos DB.
  2. The blade that opens is a bit different than what we're used to. First, you have to select a subscription.
  3. Select or create a resource group.
  4. Fill out a name for your account; this has to be unique across all of Azure.
  5. Select the API you want to use; in this example, we want to use MongoDB.
  6. Pick your location.
  7. Leave Geo-Redundancy and Multi-region Writes disabled.
  8. When you have everything filled out, you can click Review + create. This will take you to the Summary tab. Alternatively, you can click the Next: Network button instead, which will take you to the Network tab.
  9. On the Network tab, you can create a virtual network, which allows...