Cloud service · Azure · Updated

Azure Chaos Studio - Azure Chaos Studio is a managed chaos engineering service that injects controlled failures into Azure workloads to test application resilience.

In short

Azure Chaos Studio helps engineers reproduce disruptions, validate recovery behavior, and identify weaknesses in distributed applications. It supports application-scoped Workspaces and outage Scenarios in public preview, alongside legacy Experiments (classic) for explicitly composed fault-injection tests.

Cloud Services Hub →

8 key features of Azure Chaos Studio

01
Application-scoped resource discovery

Public-preview Workspaces discover supported resources within a subscription, resource group, or service group and recommend applicable Scenarios. Separate Workspaces can represent individual applications, environments, or operational boundaries.

02
Preconfigured outage Scenarios

Scenarios compose Actions and sequencing for outage patterns such as compute-zone disruption, DNS failure, or database failover. Review each Scenario's affected resource types and prerequisites before running it.

03
Customizable Scenarios

Use the Scenario designer to adapt a template's Actions and parameters into a saved Scenario. This supports repeatable tests tailored to an application's topology rather than rebuilding the test for every run.

04
Managed identity and permission validation

Workspace Actions execute through a system-assigned or user-assigned managed identity, not the initiating user's credentials. Pre-run validation checks required permissions, while resource-level role assignments constrain the potential impact.

05
Structured execution reports

Scenario reports include run metadata, Action outcomes, affected resources, durations, and execution timelines. Download reports for engineering reviews and correlate them with application telemetry to evaluate recovery.

06
Service-direct and in-guest faults

Experiments (classic) supports service-direct faults through Azure management operations and agent-based faults inside supported virtual machines or scale sets. Fault availability depends on the resource type, operating system, and enabled capability.

07
Sequential and parallel classic experiments

Classic experiments use sequential steps containing parallel branches of actions. This lets engineers reproduce coordinated failures or introduce delays between disruptions when Scenario templates do not cover the required composition.

08
Automation and infrastructure deployment

Manage Workspaces and Scenarios through the portal, the preview az chaos extension, REST APIs, or ARM and Bicep templates. Terraform users can use AzAPI because the AzureRM provider does not expose native Workspace and Scenario resources.

Where Azure Chaos Studio is used

  1. 01
    Validate failover and recovery objectives

    Run supported compute or database disruptions against a representative environment and measure service restoration time. Compare observed behavior with recovery objectives and verify that applications reconnect without manual intervention.

  2. 02
    Exercise operational game days

    Introduce an agreed failure pattern while on-call engineers follow existing dashboards, alerts, and runbooks. Record detection time, escalation quality, and recovery actions alongside the Scenario report.

  3. 03
    Reproduce an incident after remediation

    Recreate a supported failure pattern associated with an earlier outage to test corrective changes. Compare error rates, dependency behavior, and recovery duration with the original incident.

  4. 04
    Detect resilience regressions in delivery pipelines

    Run repeatable tests after deployment to a dedicated validation environment. Use external health checks and telemetry-based acceptance criteria to prevent promotion when retry handling, failover, or recovery behavior regresses.

  5. 05
    Evaluate dependency-failure handling

    Apply supported network, cache, or messaging disruptions to examine timeouts, retries, circuit breakers, and fallback behavior. Check that a dependency failure does not produce retry storms or exhaust application resources.

  6. 06
    Collect operational-resilience evidence

    Retain Scenario reports together with monitoring results, approvals, and remediation records. These artifacts can support compliance reviews, but execution reports alone do not demonstrate application resilience or establish compliance.

How Azure Chaos Studio is priced

Consumption-based fault execution

Chaos Studio uses action-minute consumption pricing for billable fault execution, with usage affected by action duration and the number of resources receiving the fault. Check the applicable pricing terms for the selected resource model, preview features, fault types, and Azure agreement before estimating cost. Target resources, monitoring ingestion, networking, and supporting infrastructure can incur separate Azure charges.

Services Azure Chaos Studio works with

A common architecture places an application in a dedicated preproduction resource group and creates a Chaos Studio Workspace scoped to that environment. The Workspace discovers supported resources, while its managed identity receives only the permissions needed for selected Actions. Virtual machines, AKS workloads, and SQL databases can participate where the chosen Scenario or fault supports their configuration. Scope and identity assignments should exclude unrelated production dependencies.

Observability provides the application-level verdict. Collect request success rates, dependency latency, resource metrics, and synthetic transaction results through Azure Monitor and Application Insights. Align those signals with the Scenario report's Action timeline to distinguish successful fault injection from successful application recovery. Include representative traffic so that a disruption exercises actual request paths rather than idle infrastructure.

For continuous validation, an Azure Pipeline can deploy the application, invoke a saved Scenario through supported APIs or CLI tooling, and evaluate health checks before promotion. Preserve the report and telemetry results with the pipeline artifacts. Pipeline logic should also handle unsuccessful runs, verify cleanup, and provide an escalation path when resources remain unhealthy after the disruption ends.

Azure Monitor

Use Azure Monitor metrics, logs, and Application Insights traces to measure application behavior during a disruption. For example, correlate a Scenario's Action timeline with failed requests, dependency latency, and recovery of a synthetic transaction. Treat fault-execution status and application-health status as separate outcomes.

Virtual Machines

Target supported virtual machines and scale sets with compute disruptions or supported in-guest faults. For example, introduce CPU pressure on selected application instances and verify that remaining instances maintain acceptable latency. Agent-based tests require the installation, identity, and connectivity prerequisites for the selected resource model.

Azure Kubernetes Service (AKS)

Use supported AKS faults to test workload behavior under Kubernetes disruptions. For example, disrupt selected application pods and observe replica recovery, readiness transitions, and request failures. Follow the installation and authorization requirements for the chosen AKS integration; classic Chaos Mesh fault version 2.2 supports managed-identity authentication.

Azure SQL Database

Use supported SQL failover faults or applicable database-failover Scenarios to exercise client reconnection and transaction handling. For example, trigger a failover in a test database while a workload continuously submits transactions, then measure connection recovery and failed operations. Confirm that the database configuration meets the selected fault's requirements.

Azure DevOps

Invoke supported Chaos Studio management interfaces from an Azure Pipeline after deploying to a validation environment. For example, start a saved Scenario, wait for completion, run application health checks, and retain its execution report with the pipeline results. Implement deployment gates using measured application outcomes rather than the disruption's execution status alone.

App Service

Chaos Studio can stop an App Service web app as a service-direct fault without installing an agent. This lets you test whether upstream components detect the outage and route requests to a healthy deployment.

Automation

Chaos Studio can start an Azure Automation runbook as an action in a resilience test. A runbook lets you perform a custom failure simulation when the built-in actions don't cover the operation you need.

Azure Cache for Redis

Chaos Studio can reboot a supported Azure Cache for Redis instance as a service-direct fault. The test can show whether clients reconnect and whether the application continues serving requests while the cache recovers.

Azure Cosmos DB

Chaos Studio can trigger a regional failover on a supported Azure Cosmos DB account without installing an agent. This lets you verify that application clients follow the change in write region and resume writes.

Azure Database for PostgreSQL

Chaos Studio can trigger failover on a supported Azure Database for PostgreSQL flexible server configured for high availability. This lets you check whether the application reestablishes database connections after the standby takes over.

Alternatives to Azure Chaos Studio in other clouds

AWS

AWS Fault Injection ServiceAWS Fault Injection Service

AWS Fault Injection Service and Azure Chaos Studio inject controlled faults into cloud workloads to test resilience and recovery. AWS FIS defines tests with experiment templates and bills by action-minute and account count, while Azure Chaos Studio’s classic experiments use sequential steps with parallel branches and its fault execution charges depend on action duration and the number of affected resources.

Compare fact by fact
Azure Chaos StudioAWS Fault Injection Service
Billed forAction-minutes by target resource countAction-minutes by account count

What is Azure Chaos Studio

2 min read

Azure Chaos Studio applies controlled disruptions to Azure resources so engineering teams can test how applications behave when infrastructure or dependencies fail. Tests can exercise conditions such as compute unavailability, network interruption, database failover, and in-guest resource pressure. These disruptions affect real resources: use an isolated preproduction environment first, define acceptable impact, and establish a recovery procedure before testing production.

Workspaces and Scenarios, introduced in public preview, provide the current application-oriented resource model. A Workspace discovers supported resources within a subscription, resource group, or service group and recommends applicable Scenarios. A resource-group scope suits a single application environment, while a service-group scope can cover selected resources across subscriptions. Discovery scope identifies candidate resources; the Workspace identity's permissions determine which resources its Actions can actually affect.

A Scenario packages the Actions and sequencing needed to simulate an outage pattern, such as Compute Zone Down or DNS Outage. Engineers select a suitable template, configure its parameters, and validate permissions before execution. The Scenario designer allows teams to customize templates and save their own Scenarios. Workspace location does not need to match the locations of affected resources, but each Scenario still has resource, operating-system, configuration, and other prerequisites that must be checked.

Authorization has two layers: the person starting a run needs permission on the Workspace, and the Workspace's managed identity needs the required Azure role assignments on affected resources. Workspaces support system-assigned and user-assigned managed identities. Prefer narrowly scoped role assignments and separate Workspaces for environments with different risk boundaries. Permission validation helps identify missing access before disruption begins, but it does not establish that the application will tolerate the test.

After execution, a Scenario report records affected resources, Action statuses, durations, parameters, and the execution timeline. Combine this record with Azure Monitor metrics, application traces, synthetic requests, and business-level health checks. A successful Action means the disruption executed successfully; it does not mean the application met its availability or recovery objectives. Define measurable acceptance criteria, such as maximum error rate and recovery time, before starting the run.

Experiments (classic) remains the legacy model for fault combinations not yet covered by Scenarios. It uses explicitly enabled targets and capabilities, sequential steps, parallel branches, and fault or delay actions. Service-direct faults use Azure resource management operations, while agent-based faults introduce supported failures inside virtual machines. Follow the prerequisites for the selected model rather than applying classic agent configuration to Workspace tests. Microsoft no longer develops new features for the classic model.

Automate repeatable tests through supported management interfaces and infrastructure definitions. Workspaces support the Azure portal, the preview Azure CLI extension, REST APIs, and ARM or Bicep deployments; Terraform deployments can use the AzAPI provider. Before execution, review fault-specific cleanup behavior, confirm monitoring is operational, and ensure operators can recover resources independently if automatic cleanup does not restore the expected application state.

Azure architecture icons are the property of Microsoft. BlowStack is not affiliated with or endorsed by Microsoft.

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.