AI-200
Azure
Back to Deploy and operate containers on Azure App Service

Project: Example — Deploying a container to Azure Container Apps

Project overview

What this project is

Quote API is a FastAPI REST sample built to learn Azure Container Registry (ACR) Tasks, Docker, and Azure Container Apps.

You take a simple quotes API, package it as a container, build/push it with ACR (including multi-step ACR Tasks), then run it on Container Apps with HTTPS, scaling, and environment configuration.

Why it matters for AI-200

This project practice mirrors the exam skills of:

  • Storing images in ACR
  • Building with ACR Tasks / az acr build
  • Deploying containers to Azure Container Apps
  • Wiring registry auth, target ports, env vars, and replicas

Repository

Full source, deploy scripts, and CI workflow:

https://github.com/Suralmk/azure-contianers

Local path (this machine): acr-tasks/quote-api/

High-level flow

  1. Code is built into a Docker image
  2. Image is stored in Azure Container Registry
  3. Azure Container Apps pulls the image and runs the API
  4. ACR Tasks can automate build → lint → push (acr-task.yaml)

API endpoints (quick view)

MethodEndpointDescription
GET/Welcome message
GET/quotesList all quotes
GET/quotes/randomRandom quote
POST/quotesCreate quote
DELETE/quotes/{id}Delete quote
GET/healthHealth check
GET/docsSwagger UI

Next topics in this module

  • Architecture and folder structure
  • Setup and local run
  • Deploy script explained (step-by-step Azure CLI)
  • Commands reference
  • Environment variables

Learn more