Load test with Azure Load Testing

DevOps, Hands On30 minutesCosts moneyWritten 14 November 2026By Cloud Hands On

In this task you'll find out how many users an app can take, and prove a fix helped.

Azure Load Testing runs JMeter (or Locust) test plans from Azure at the scale you choose and keeps every run, with charts of response times, errors and throughput side by side.

Each test has failure criteria, such as average response time over 500 ms or errors over 5%. A run that breaks them is marked FAILED, which makes load tests usable as a gate in a pipeline.

Example. Before its sale, SS Kaiser found the shop failed at 50 shoppers on one small pod. Four pods passed, and the same test now runs in the release pipeline.

Costs money. This task creates resources that are charged while they exist. Delete them as soon as you finish.

Before you start

You need: Contributor on a resource group. Time: 30 minutes.

Where to look

  1. Azure Load Testing
  2. (resource)
  3. Tests
  4. Create

Steps

  1. Create an Azure Load Testing resource.
  2. Write a JMeter plan (or start from a URL test in the portal) and a config file with failureCriteria.
  3. Run a baseline: az load test-run create ... --test-run-id baseline-1.
  4. Change one thing, run again, and compare the runs.

Commands

az extension add -n load
az load test create --load-test-resource <name> -g <group> --test-id <test> --load-test-config-file config.yaml
az load test-run create --load-test-resource <name> -g <group> --test-id <test> --test-run-id run-1

Watch out for

Cost
Charged by virtual user hours, and the resource may have a monthly fee: keep tests short and delete the resource after a lab.
Security
Only load test systems you own: it looks like an attack to everyone else.
Common mistakes
No failure criteria (every run 'passes'), and changing several things between runs.

Clean up

Delete the Load Testing resource, or the resource group.

Words to know

Load test
A test that sends many requests at once to see how a system behaves under load.
Virtual user
One simulated user in a load test, running the test plan in a loop.
Failure criteria
Rules that mark a load test run as failed, such as average response time over a limit.

Tick off each step and track your progress in the guide.

Open this task in DevOps, Hands On

Keep going