Tip 363 - How to get started with Azure Container Apps - The Legend of Hanuman Tip 363 - How to get started with Azure Container Apps - The Legend of Hanuman

Tip 363 – How to get started with Azure Container Apps


Table of Contents

How to get started with Azure Container Apps

A simple way to run containers in Azure

Containers offer a great way to develop and run applications in a consistent environment. You can develop your app in a container on your local development machine, and run that same container in production, thereby eliminating differences in infrastructure between environments. And now, you can easily run containers in Azure with Azure Container Apps (opens new window). Azure Container Apps abstracts the overhead of infrastructure and orchestration, making it easy for you to deploy and run a container.

In this post, we’ll deploy a sample container to Azure Container Apps (opens new window).

Prerequisites

If you want to follow along, you’ll need the following:

Create a simple hello world container

We’ll start by creating an Azure Container Apps resource from the Azure portal.

  1. Go to the Azure portal (opens new window)
  2. Click the Create a resource button (the plus-sign in the top left corner)
  3. Search for Container App, select the “Container App” result and click Create
    1. Select a Resource Group
    2. Enter a Name
    3. Click Create new for the Container App environment. This environment houses the Log Analytics Workspace that will be used for monitoring and can contain one or more Container Apps which all write to this Log Analytics Workspace
      1. Fill in an Environment name
      2. Select a Region for the environment
      3. Click the Monitoring tab
      4. Select an existing Log analytics workspace or create a new one
      5. Click Create to return to the Create Container App wizard

147create1

(Create an Azure Container App)

  1. Click Next: App settings
  2. You can specify a container in a container registry to run in the Container App. We will use a quickstart image, so check the “Use quickstart image” checkbox. This will also set the Container App CPU and memory and network settings

147create2

(Configure Azure Container App settings)

  1. Click Review + create and then Create

When the Container App is deployed, navigate to it in the Azure portal. You’ll see that it has an Application URL.

147result0

(Azure Container App in the Azure portal)

Click on the Application URL to open the sample application that is now running in the Container App.

147result

(The sample application running in an Azure Container App)

You can configure the Container App by changing the ingress settings, to enable or disable incoming traffic and the target network port. You can also configure secrets that the container can use, and setup continuous deployment with GitHub Actions to automatically build and deploy code to the Container App. Pretty cool.

Conclusion

Azure Container Apps (opens new window) offers an easy way to run containers in Azure with minimal configuration and management overhead. Azure does the heavy lifting for you. Go and check it out!

Last Updated: 5/9/2022, 11:00:00 AM


Share this content:

I am a passionate blogger with extensive experience in web design. As a seasoned YouTube SEO expert, I have helped numerous creators optimize their content for maximum visibility.

Leave a Comment