Deploying an Application as an Azure Container App

Deploying an application as an Azure Container App involves several key steps, including setting up the environment, configuring the container, and scaling options. Follow the steps below to complete the deployment process.


Step 1: Create a Resource Group

Start by creating a new Resource Group in your Azure subscription. This will act as a logical container to group all related resources for your container app.


Step 2: Create a Container App Environment

Next, create a Container App Environment. This provides the networking and compute context in which your container app will run. It's a prerequisite for deploying container apps.


Step 3: Deploy the Azure Container App

  1. Select the Resource - Container App where you want to deploy your new container image.
  2. Navigate to the Application menu and click on Revisions and Replicas.

Revisions and Replicas

  1. Click on the Create New Revision option. Enter a name or suffix (in lowercase), then click the Scale button.

Create Revision
Scale Button


Configure the Scale Rule Settings

Scale Rule Settings

You can configure how your container app scales based on usage:

  • Min Scale (Minimum Replicas):
  • Set to 0 if you want the application to scale down to zero when not in use. This will stop the container to save costs. The app will cold-start when a new request arrives.
  • Set to 1 if you always want one instance running to avoid cold starts and ensure faster response times.

  • Max Scale (Maximum Replicas):

  • Set to 1 if you expect minimal concurrent usage.
  • Increase to 2 or 3 if you anticipate more users accessing the app simultaneously.

Add the Container Image

Click on 'Add' under Container Image to open the Add Container window.

Add Container

  1. Enter the container image details (such as image name and tag) to pull the latest version.
  2. Click 'Add' to proceed.

Container Image Details


Configure Environment Variables

If the container app requires environment variables (for configurations, secrets, etc.), specify them in this step.

A list of possible environment variables required to configure the application is provided. Please refer to the document for details.

Environment Variables


Verify Image Details

Click on the image name to view additional details such as the container image URL.

Image Details


Step 4: Access the App

Once the container app is deployed successfully, you can access it via the URL provided in the Overview or Revisions section of the Container App page. You can test the app and ensure it's running as expected.