Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
In this quickstart, you create a Chaos Studio Workspace, configure its scope so it discovers your Azure resources, and run a Scenario that simulates a real outage pattern. By the end, you'll have a Scenario report showing exactly what happened during the run.
Prerequisites
- An Azure subscription. If you don't have an Azure account, create a free account before you begin.
- At least one deployed Azure resource that supports Chaos Studio Actions, such as a virtual machine, Azure Virtual Machine Scale Set, Azure SQL database, or PostgreSQL flexible server. See Supported resource types for the full list.
- The Microsoft.Chaos resource provider registered in your subscription. To register for the first time, see Register the Chaos Studio resource provider.
Create a Workspace
Open the Azure portal and search for Chaos Studio in the search bar.
Select Workspaces in the left navigation, then select Create.
On the Basics tab, fill in the following fields:
- Subscription: The subscription where the Workspace resource is created.
- Resource group: Select an existing resource group or create a new one.
- Name: A descriptive name for your Workspace, such as
chaos-prod-westus2. - Region: The Azure region where the Workspace resource is deployed. Workspaces are logical resources and can operate on resources in any region, so you don't need to match the region of your target resources. Choose any supported region. See Regional availability for the list.
Select Next: Scope.
Configure the Workspace scope
The scope determines which Azure resources the Workspace can discover and run Scenarios against.
Select a Scope type:
- Subscription: Discovers all supported resources in a subscription.
- Resource group: Discovers all supported resources in a single resource group.
- Service group: Discovers resources across a defined set of subscriptions.
Select the specific subscription, resource group, or service group you want to target.
Select Next: Identity.
Set up the managed identity
The Workspace's managed identity is the principal that executes Actions at runtime. It acts as a blast-radius control: the identity can only affect resources you have granted the required Azure role-based access control (Azure RBAC) roles. This ensures that only authorized users, running Scenarios through a properly scoped Workspace, can trigger disruptions against specific resources.
Choose an identity type:
- System-assigned: Chaos Studio creates a managed identity tied to this Workspace. The identity is deleted when the Workspace is deleted.
- User-assigned: Select an existing user-assigned managed identity. This option is useful when you want to share one identity across multiple Workspaces or manage permissions centrally.
(Optional) Enable Automatic role assignment to let Chaos Studio assign the required RBAC roles to the identity based on the Scenarios you run. If your organization restricts automatic role assignments, leave this off and assign permissions manually. See Permissions and identity in Chaos Studio Workspaces for the required roles.
Select Next: Review + Create.
Review and create
Review your Workspace configuration. Confirm the scope, identity type, and role assignment settings.
Select Create.
The deployment takes a few seconds. When it finishes, Chaos Studio begins discovering the resources in your scope.
Select Go to resource to open your new Workspace.
Explore the Scenario library
Once the Workspace finishes discovery, it populates the Scenario library based on the resources it found.
Select Scenarios in the left navigation.
The library shows every Scenario that applies to the discovered resources. Each Scenario lists the outage pattern it simulates, the Actions it composes, and the resource types it affects.
Select a Scenario to view its details. For example, Compute Zone Down simulates an availability zone failure by shutting down virtual machines and Azure Virtual Machine Scale Sets instances in a target zone.
If the Scenario requires configuration, such as choosing which availability zone to target, fill in the required parameters. You can also exclude specific resources from the run if you need to protect certain resources while testing the rest. Select Save configuration.
Run the Scenario
From the Scenario detail page, select Run.
Confirm the run in the dialog. Chaos Studio assigns the target resources and starts executing the Scenario's Actions.
The portal shows the run status. Individual Actions appear in the action list with their status (Running, Succeeded, Skipped, or Failed).
Wait for the run to complete. Run durations vary by Scenario. A Zone Down Scenario typically takes 5 to 10 minutes.
View the Scenario report
After the run completes, you can view the Scenario report from the run history.
In your Workspace, select Run history in the left navigation.
Find the completed run and select it to open the run details.
Select Generate report.
The report shows:
- Run details: Scenario name, Workspace, run ID, overall status, and start/end times.
- Action summary: A table listing each Action with its status, duration, targeted resources, and parameters.
- Action timeline: A timeline showing when each Action executed relative to the overall run.
- Execution flow: A diagram of the run's step and branch structure.
You can download the report for compliance reviews, post-incident retrospectives, or stakeholder communication.
Clean up resources
If you created resources specifically for this quickstart, delete them to avoid ongoing charges:
To delete the Workspace, go to the Workspace overview page and select Delete.
Delete any test resources (VMs, databases) you created for this exercise.