Azure Container Docs

Getting Started with Azure Container Apps

Azure Container Apps lets you run microservices and containerized applications without managing the underlying infrastructure. This guide walks you through provisioning a resource group, creating a Container App environment, and deploying a sample app.

Prerequisites

Step 1 – Log in to Azure

az login

Step 2 – Create a Resource Group

az group create \\
  --name myContainerRG \\
  --location eastus

Step 3 – Create a Container Apps Environment

az containerapp env create \\
  --name myEnv \\
  --resource-group myContainerRG \\
  --location eastus

Step 4 – Deploy a Sample App

We'll use a simple Node.js "Hello World" image from Docker Hub.

az containerapp create \\
  --name hello-app \\
  --resource-group myContainerRG \\
  --environment myEnv \\
  --image mcr.microsoft.com/azuredocs/containerapps-helloworld:latest \\
  --ingress external \\
  --target-port 80

Step 5 – Verify Deployment

az containerapp show \\
  --name hello-app \\
  --resource-group myContainerRG \\
  --query properties.configuration.ingress.fqdn

Open the returned URL in your browser to see the app running.

Next Steps