StudyToCert

All certifications / AI-200 / Lessons

Microsoft Certified: Azure AI Cloud Developer Associate AI-200 (replaced AZ-204) · Domain 1: Develop containerized solutions on Azure

Container Apps scaling: HTTP rules, KEDA event rules (for example Service Bus queue length), min/max replicas and scale to zero

▶ Watch the overview video

Last reviewed October 6, 2026 · Leer en español

Explain it simpler

Scaling means running more or fewer copies of your app depending on how busy it is. Each copy is called a replica. Azure Container Apps watches a signal you choose and adds copies when the signal is high and removes them when it is low. The signal can be web visitors waiting, messages waiting in a queue, or how hard the computer is working. You also set a minimum and a maximum number of copies. If the minimum is zero, the app can switch off completely when there is nothing to do, so you stop paying for it, but the first visitor after a quiet spell waits a moment while it wakes up. It is like a shop that opens more checkout lanes when the line grows and closes them when it is empty.

The flash sale at Pinecrest Outdoor starts at noon. By 12:03, the order queue holds thousands of messages and the single worker replica is crawling through them while customers wait for confirmation emails. By 2 a.m. the same night, the queue is empty, yet the finance dashboard shows the worker running at full size all night. Kenji, the developer on call, opens the Container App's scale settings and finds a CPU rule with a minimum of one replica and a maximum of three. Something about those settings explains both the slow afternoon and the wasted night. What should the worker scale on, and how low and high should it be allowed to go?

Container Apps scales horizontally: it adds or removes replicas, which are running copies of a revision, based on scale rules you define. Scaling is driven by KEDA (Kubernetes Event-driven Autoscaling), which can watch HTTP load, TCP connections, CPU or memory, and dozens of event sources such as queues and streams. Each revision has its own scale settings, because scale settings are part of the revision template, so changing a scale rule creates a new revision. When you look at an app in the portal or run az containerapp show, you will find the rules under the template's scale section.

Free account

Keep reading for free

Create a free StudyToCert account to read the rest of this lesson: 7 more sections, 6 key terms, a real-world example, an exam tip and self-check questions. Every lesson, lab and practice test is free with an account.

Sign up free Log in

Study AI-200 for free
A week-by-week plan with every lesson, quizzes, checkpoint tests, a practice exam and hands-on labs.
Open the AI-200 study plan