Book Image

A Developer's Guide to Cloud Apps Using Microsoft Azure

By : Hamida Rebai Trabelsi
Book Image

A Developer's Guide to Cloud Apps Using Microsoft Azure

By: Hamida Rebai Trabelsi

Overview of this book

Companies face several challenges during cloud adoption, with developers and architects needing to migrate legacy applications and build cloud-oriented applications using Azure-based technologies in different environments. A Developer’s Guide to Cloud Apps Using Microsoft Azure helps you learn how to migrate old apps to Azure using the Cloud Adoption Framework and presents use cases, as well as build market-ready secure and reliable applications. The book begins by introducing you to the benefits of moving legacy apps to the cloud and modernizing existing ones using a set of new technologies and approaches. You’ll then learn how to use technologies and patterns to build cloud-oriented applications. This app development book takes you on a journey through three major services in Azure, namely Azure Container Registry, Azure Container Instances, and Azure Kubernetes Service, which will help you build and deploy an application based on microservices. Finally, you’ll be able to implement continuous integration and deployment in Azure to fully automate the software delivery process, including the build and release processes. By the end of this book, you’ll be able to perform application migration assessment and planning, select the right Azure services, and create and implement a new cloud-oriented application using Azure containers and orchestrators.
Table of Contents (20 chapters)
1
Part 1 – Migrating Applications to Azure
6
Part 2 – Building Cloud-Oriented Applications Using Patterns and Technologies in Azure
10
Part 3 – PaaS versus CaaS to Deploy Containers in Azure
14
Part 4 – Ensuring Continuous Integration and Continuous Deployment on Azure
17
Assessments

Exercise 2 – deploying Docker containers on Azure Container Registry

We will start with the first step, which is creating a Docker image of a web application we will create from an existing Visual Studio template. Alternatively, we can use Microsoft ASP.NET Core images to push and run our image locally. You can find the .NET samples here: https://hub.docker.com/_/microsoft-dotnet-samples/.

To create an ACR, we can use multiple methods: the Azure portal, the Azure CLI, Azure PowerShell, and the Azure ARM template.

Creating an Azure Container Registry with the Azure portal

Let’s look at the steps:

  1. To get started, we will access the Azure portal. Click on Create a resource:
Figure 8.25 – Creating a resource in the Azure portal

Figure 8.25 – Creating a resource in the Azure portal

  1. Select Containers to the left of the window. Next, choose Container Registry:
Figure 8.26 – Containers | Container Registry

Figure 8.26 – Containers | Container Registry

  1. Click on Create...