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
- Select the Resource - Container App where you want to deploy your new container image.
- Navigate to the Application menu and click on Revisions and Replicas.

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


Configure the Scale Rule Settings

You can configure how your container app scales based on usage:
- Min Scale (Minimum Replicas):
- Set to
0if 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
1if you always want one instance running to avoid cold starts and ensure faster response times. -
Max Scale (Maximum Replicas):
- Set to
1if you expect minimal concurrent usage. - Increase to
2or3if you anticipate more users accessing the app simultaneously.
Add the Container Image
Click on 'Add' under Container Image to open the Add Container window.

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

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.

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

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.