Your profile

One profile for every MSDEVBUILD site. Only you can see it, and the site owner if you write in.

Azure Functions in 60 seconds

ComputeServerlessAWS: Lambda

What it is

Run small pieces of code in response to events (HTTP requests, timers, queue messages, new files) without managing servers. Scales automatically, even to zero.

Simulate it »

✅ Use it when

  • Event processing and automation
  • Scheduled jobs
  • Lightweight APIs with spiky traffic

🚫 Not the best fit when

  • Long-running, always-busy workloads
  • Apps needing full OS control

💰 Price feel: ●○○○ Free or very cheap

Consumption plans include a monthly free grant (about 1 million executions); beyond that, cents per million runs plus memory-time.

Illustrative pay-as-you-go list prices at approximate exchange rates. Use the Azure pricing calculator for real quotes.

Simulate it

3D Scaling servers up, out and down Send a burst of events and watch it scale out, then to zero.

🖱️ Drag to rotate · scroll or pinch to zoom

Loading the 3D scene…
</> Embed

Embed this simulation

Free for trainers, teachers and bloggers. Paste this into your page:

Serverless: scale to zero

With serverless (Azure Functions) there are no servers to manage. Each event runs a function instance, and with no events nothing runs and nothing is billed.

Read this tour as text
  1. One server, normal day. One VM serves the website. CPU is comfortable. Use the Users slider to change the traffic.
  2. A traffic spike. A sale starts and visitors flood in. One server is overloaded, so pages get slow or fail.
  3. Scale up (vertical). Scaling up means a bigger server: more CPU and memory. It usually needs a restart, and there is always a largest size.
  4. Scale out (horizontal). Scaling out means more servers behind a load balancer. No restart, and almost no limit.
  5. Elasticity: autoscale. Turn on autoscale with a rule: add a server when CPU > 70%, remove one when CPU < 30%. Move the slider and watch Azure match servers to demand, and the bill fall when users leave.
  6. Serverless: scale to zero. With serverless (Azure Functions) there are no servers to manage. Each event runs a function instance, and with no events nothing runs and nothing is billed.
  7. Bill shock: the forgotten VM. A developer creates a D4s v5 test VM on Monday and forgets it. A running VM is billed every hour, 24/7, used or not. Fast-forward a month, then try again with auto-shutdown at 7 PM and weekends off.
📘 Full lesson: Azure Functions ❯ ⚖️ Azure VM vs App Service vs Functions vs AKS ❯

Similar services

Install MSDEVBUILD Azure

Free · no account · works offline

Save the whole course for offline ›

Hi, I’m your Nimbus

Your study buddy. Pick what we do next.

MSDEVBUILD · Multi-Stack Dev Build

Sign in to MSDEVBUILD

One account for Azure certifications and the blog: sign in here and you are signed in on both. Your XP, streak, practice deck and certificate stay in sync on every device. Optional: everything works without an account.