
This section introduces about
Azure Container Apps
What is a container and its benefits
How serverless computing helps to manage container apps
Intro about Scaling, Security, Monitoring, Deployment flexibility and Change management
OS, Orchestration and Runtime support
Container Registries
Comparison of Container Apps with other Azure compute services
Different types of plans and workload profiles of container apps
A demo about Azure container apps creation using basic Quick start image and Azure container apps menu navigations.
A brief intro about container apps environment and consumption plan workload profile.
This chapter describes about container apps environment, types of environment workload profiles, environment management, deletion and retention policies for the environment.
Know about Environment deletion and retention policies to prevent automatic deletion of container apps environment.
A demo about new workload profile creation in Container Apps Environment and how to utilize the new profile in the container apps.
Delete Azure resources which are not in use to reduce cost.
This chapter gives a brief intro about the ERP Microservice application source code, its Architecture and Technology used behind.
Github Repo: https://github.com/harilachu/MasteringAzureContainerApps
Run "git clone https://github.com/harilachu/MasteringAzureContainerApps.git" command from Visual studio / Terminal
This chapter we will view the Cosmos DB Emulator for local development and testing, also the EmployeeDb database design.
This chapter explains about the clean architecture followed and the different layers present in the Microservices. It gives an overall understanding of the project structure.
This chapter we will be going through the CQRS implementation using Synaptrix package, How the commands and Queries are separated and handled in the Application layer when a request is raised from the API layer.
A brief walkthrough of Common and Infrastructure Core layers
We will test the Employee app by running it locally from Visual Studio and use Postman for further API testing. Please find the attached the pre-configured postman collection in the Resources section which can be imported and used.
We will test the Review app by running it locally from Visual Studio and use Postman for further API testing. Please find the attached the pre-configured postman collection in the Resources section which can be imported and used.
This chapter deep dives into the YARP Reverse Proxy gateway and How to configure the reverse proxy using Routes and Clusters to proxy the requests to respective microservices.
This chapter covers about the Active and Passive Health check configurations and how it relates to the /health endpoints of the microservices.
In this chapter we will run the YARP gateway and test whether the healthchecks are running fine across the microservices.
This chapter covers the JWT Authentication and Authorization which is offloaded from the individual microservices and handled commonly from YARP gateway service. Token Controller generates the JWT token with scope claims and token expiration is also set.
Please note: This is a basic authentication used for explanation purposes but can be added with more authentication types like Azure Entra Authentication, Duende Identity Server Authentication, Social accounts authentication etc.,
Test JWT Token generation and Authentication/Authorization through YARP Gateway and post queries to Employee App through YARP.
This chapter covers a basic introduction about
What is Dapr?
What Technology frameworks it supports
What are the Building block APIs present in Dapr
How Dapr is run as side car architecture?
How to invoke service-to-service method call using Dapr?
Lets walkthrough the Dapr implementation in the ERP microservice application. This chapter covers what Nuget packages are needed to run Dapr client and how to make service-to-service invocation using either DaprClient or HttpClient.
This chapter covers on how to install Dapr CLI to your local PC using Winget command running from Windows Terminal.
Please note: Docker needs to be installed in your machine to run Dapr runtime containers.
Refer the WSL (Windows Subsystem Linux) and Docker installation from the Resources section.
Let's run the Microservices using Dapr CLI and verify the GetBonus API communicating with Employees API using Dapr runtime. Also how to log and track the Requests sent and received through Dapr from one service to another.
Learn about how to containerize existing microservice application using Dockerfile in Visual Studio.
Source code Branch: containerize-app
Run "git checkout containerize-app"
A brief introduction about Azure Container Registry and its capabilities. Also covers briefly about Image tagging, Image push, Availability zones, Geo-replication and soft-delete policy.
Note: Both Availability Zones and Geo-Replication requires Premium SKU.
Learn about creating Azure Container Registry in Azure portal. This chapter covers
Creation of ACR in Azure portal
Choosing registry name, DNS name, pricing plan, Availability zones
Networking difference between public and private endpoints
How Encryption happens using Customer managed keys
How Repositories are maintained for the images
A Demo on how to install Azure CLI and login to Azure tenant using AZ CLI command.
Refer Resources section for the AZ CLI installation source.
Follow the steps in the Demo to login to Azure account in CLI. Same is found in the AZ CLI installer resource.
Learn to build container images using AZ ACR build CLI commands and push the images to ACR.
Learn about the need to create a dedicated virtual network and subnet for the container apps environment.
Learn how to create the VNet and a Dedicated subnet for container apps environment in Azure Portal.
Create a new Azure Cosmos DB account using the same structure followed in the CosmosDB Emulator and upload the collections from github.
A Demo on creating Employee Container App, choosing image from ACR registry, configuring Ingress and creation.
An Introduction about what is Ingress, types of Ingress modes and how premium ingress is used for production workloads.
View how the subnet is configured for the Environment and learn about the ingress mode types configuration.
Lets navigate around Employee App after the creation and know about its settings.
A Demo on how to enable Dapr in Employee App and its configuration for inter-service communication.
An explanation about Ingress public traffic which is chosen for Employee App.
Testing the Employee Container Apps using the public ingress endpoint from Postman API call. Now the Employee App receives the API request and it connects to the Azure CosmosDB endpoint and retrieves the filtered data and provides the expected response.
A Demo on how to create Review Container app following the similar steps of Employee Container apps, Configuring Dapr, Testing the Container app public endpoint and finally trace the API request using Container Apps Log stream visualizing the logs produced for inter-service communication using Dapr.
While creating YARP container app, disable public network access to both Employee and Review Apps, and configure environment variables used by the Reverse proxy code, to re-route the requests to respective container apps after authentication.
In this chapter let's see what is the root cause of YARP container app failure from log stream, address the failure and save a new revision of YARP container app. Let's also know about how the TLS certificate validation is done and how it is relevant for container apps and also for Ingress endpoint.
Let's Test the YARP container app using the public endpoint of YARP and generate the token. Using the access token let's call the other APIs of Employee and Review Apps through YARP endpoint.
This chapter covers the current microservice container App's architecture and the proposed Secured Architecture using Azure Front Door accepting the requests from public users, offloading TLS configuration and validation from Container Apps.
This is alternate way of deploying container apps through Yaml file download and update.
A brief introduction about private endpoint, how its configured and how to validate its connection through bash.
This chapter covers how to make sure the Azure front door to access the Container Apps environment using Private Endpoint.
Let's create a private endpoint for our Azure CosmosDB which will be mapped to the container app's virtual network with a new subnet. Also let's see how the private DNS zone is mapped to the ip address allocated from the subnet to the CosmosDB resource.
To validate the private endpoint connection from Container Apps to CosmosDB account, a bash shell command is run , in Console to verify if the connection to CosmosDB is through the private endpoint DNS zone and the local IP address which is allocated from the subnet.
An Introduction of Revisions, Lifecycles and types of Deployment modes.
Let's see the code changes done in the revisions branch to showcase the Revision management. Also the new image versions uploaded to ACR.
This chapter covers how to create new revisions and how to manage multiple revisions simultaneously with traffic splitting in Azure Container Apps. We will be hosting the new image versions of both revisions in the Employee App.
Test the Employee App Revisions A and B through Yarp by calling the Revisions Get API.
This chapter covers how to manage secrets in the Container apps Azure portal and access it through the environment variables by adding secret reference and retrieve it through IOptions pattern.
A brief introduction about container apps scaling through scale rules and replicas.
A demo on how to scale container apps using custom scale rules.
Let's understand what is NAT Gateway and how it resolves the common Port Exhaustion issue appearing in production environments when there are sudden burst requests.
Demo on creating NAT Gateway with a public IP address and how to map to a Virtual network subnet to route the outbound traffic through NAT to avoid Port Exhaustion.
In this course we will be completely deep diving into the Azure container apps fundamentals as well as you will be gaining enough deep knowledge about
- How to build your Microservice application using Clean Architecture along with CQRS
- Learn about YARP Reverse Proxy and how it is helping the Microservice Architecture
- How to containerize your Microservice application and upload the container image to Azure Container Registry
- How to successfully deploy your microservice application into Container Apps Environment
- Learn about Portal and Azure CLI as well as YAML deployments
- How to configure Environment Variables for your app
- Learn about Scaling and Managing Workload Profiles in Container Apps Environment.
- How to create and manage Secrets
- Difference between public and private Ingress Envoy
- How to scale Ingress using Workload profile
- How to add Replicas and manage change Revisions for your Container App
- Know about Scaling rules and performance of your Container App
- What is Dapr and how to enable service to service communication using Dapr running in sidecar pattern
- How to enable Network security through a Dedicated Virtual network subnet
- Adding Private endpoints to securely connect to an Azure resource (e.g. Cosmos DB) from the Container App
As a Bonus content, we shall also cover how to utilize NAT gateway for your virtual network to handle the common Port Exhaustion issue happening in Production environments.