[quickstart] Add Chaos Studio v2 AzAPI quickstarts (Microsoft.Chaos 2026-08-01-preview) - #507
Open
Cristian Velez (kekivelez) wants to merge 2 commits into
Conversation
Cristian Velez (kekivelez)
requested a deployment
to
test
September 15, 2026 22:31 — with
GitHub Actions
Waiting
Cristian Velez (kekivelez)
requested a deployment
to
test
September 15, 2026 22:51 — with
GitHub Actions
Waiting
Cristian Velez (kekivelez)
marked this pull request as ready for review
September 16, 2026 19:21
This branch is waiting to be deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds/updates two Terraform quickstarts for Azure Chaos Studio v2, expressed with
the AzAPI provider
against
Microsoft.Chaos2026-08-01-preview:quickstart/101-chaos-studio-workspace-azapiMicrosoft.Chaos/workspaceswith a scope and a managed identity. No fault is injected.quickstart/201-chaos-studio-scenario-run-azapiReaderrole assignment, a ScenarioConfiguration, and thediscover -> evaluate -> validate -> fixResourcePermissions -> executeaction chain.Microsoft.Chaosv2 is a preview api-version with no typedazurermresource, so AzAPI is how customers reach it. Native
azurermsupport, when itlands, is additive - it does not replace these examples.
The
201never injects a fault unless the operator opts in:var.execute_scenariodefaults to
false, so an unattendedapply/destroy(including this repo'sweekly main-branch E2E) provisions, discovers, validates, and previews the
permission fix, then stops.
Provider and Terraform pins
providers.tf>= 1.51.9.8Azure/azapi~> 2.0(>= 2.11.0)2.12.0hashicorp/azurerm~> 4.04.81.0hashicorp/random~> 3.03.9.1Live validation
Both quickstarts were applied against a real subscription, asserted, and
destroyed before this PR was opened. Evidence comes from a
chaos-tf-live-evidence/v1record written by the quality-gate runner, not froma hand-written note.
2026-08-01-preview(spec pinservices/GW/src/ArmGatewayService/openapi-baselines/2026-08-01-preview.json (sha256:6b51400dcd6a))101apply-> outputs ->destroy201apply-> workflow ->destroy(withexecute_scenario = true)201runRequiresAttention201runSucceededWhat each run asserted:
101- the workspace id and the workspace identity principal id arenon-empty, and
destroyleaves nothing in state.201- the above plus the ScenarioConfiguration id, an acceptedvalidation state (
SucceededorRequiresAttention), a permission-fixstate, and - on the opted-in executing path - a terminal ScenarioRun
state.
RequiresAttentionis expected for this example because validationruns before
fixResourcePermissionsagainst a newly created identity.No live test runs on this pull request itself: this repo's E2E workflow skips
forked pull requests. The weekly scheduled main-branch E2E re-proves the
examples after merge and maintains
TestRecord.mdon the default branch.Static validation
Every commit to these examples is gated in the source repository by
terraform fmt -check,terraform init -backend=false+terraform validate,tflint(bundledterraformruleset), a conformance check that everyMicrosoft.Chaostype, action, and request-body key used by the HCL exists inthe pinned spec, and a zero-diff drift check against the generated api-version
block in
main.tf.This PR was prepared from
kekivelez/terraform:users/kekivelez/chaos-codegen-20260911-005606-af702637d/tf-examplesby thechaos-automation-codegenskill.