Run a chaos experiment with Chaos Studio

DevOps, Hands On30 minutesCosts moneySteps checked 14 November 2026By Cloud Hands On

In this task you'll break part of your system on purpose to prove it copes.

Chaos engineering tests a resilience claim with a controlled failure: state a hypothesis, measure from the outside, inject one fault, compare. Azure Chaos Studio runs the faults and keeps a record of each run.

For AKS, Chaos Studio drives Chaos Mesh in the cluster. You onboard the cluster as a target, allow a capability (such as PodChaos), and build an experiment whose managed identity needs a role on the cluster.

Example. Fernhill Cloud's hypothesis was 'losing one web pod costs no requests'. The first run proved it wrong (one replica, no readiness probe); after the fix, the prober saw no failures.

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

Before you start

You need: Owner or User Access Administrator on the cluster (for the experiment's role). Time: 30 minutes.

Where to look

  1. Chaos Studio
  2. Targets
  3. Experiments

Steps

  1. Install Chaos Mesh in the cluster with Helm.
  2. In Chaos Studio, enable the cluster as a target with the capability you need (PodChaos for pod faults).
  3. Create an experiment with a fault, such as pod-failure on one pod with label app=web, and give its identity the AKS Cluster Admin role on the cluster.
  4. Measure from outside (a prober or your SLI), start the experiment and compare against your hypothesis.

Commands

helm upgrade --install chaos-mesh chaos-mesh/chaos-mesh -n chaos-testing --create-namespace --set chaosDaemon.runtime=containerd --set chaosDaemon.socketPath=/run/containerd/containerd.sock
az rest --method post --url "https://management.azure.com<experiment-id>/start?api-version=2024-01-01"

Watch out for

Cost
Chaos Studio charges per target-action minute: pennies for short runs.
Security
An experiment's identity can break things: scope its role to one cluster and keep experiments out of production until you trust them.
Common mistakes
Running chaos without measuring, and starting in production instead of a test environment.

Clean up

Delete the experiment and disable the target, or delete the group.

Words to know

Chaos engineering
Testing resilience by injecting controlled failures.
Chaos Mesh
An open-source chaos toolkit for Kubernetes that Chaos Studio drives.
Experiment
Chaos Studio's object: which faults, on which targets, in which order.

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

Open this task in DevOps, Hands On

Keep going