Skip to content

feat(op): Azure resource-group lifecycle for ARM deploys — #707 - #710

Merged
lex00 merged 1 commit into
mainfrom
feature/707-azure-apply-path
Jul 8, 2026
Merged

lex00 merged 1 commit into
mainfrom
feature/707-azure-apply-path

Conversation

@lex00

@lex00 lex00 commented Jul 8, 2026

Copy link
Copy Markdown
Contributor

Part of #707 — gives chant a first-class Azure deploy path.

The gap

nativeApply({target:"arm"}) already runs az deployment group create --resource-group <env> --template-file <output>, and ApplyOp({target:"arm"}) wires it. But az deployment group create fails if the resource group doesn't exist — unlike CloudFormation, which creates its own stack. chant had no resource-group lifecycle, so there was no runnable Azure deploy Op. This fills that.

What's here

  • azGroupEnsure / azGroupDelete builders (packages/core/src/op/builders.ts), exported through core and re-exported from the temporal lexicon.
  • Activity implementations (lexicons/temporal/src/op/activities/azure.ts) with pure command-builders split from execution. azGroupEnsure is idempotent (az group create no-ops on an existing group); azGroupDelete is non-blocking (--no-wait).
  • Unit tests (3) over the command builders.
  • Demo op examples/local-op-quickstart/ops/azure-deploy.op.ts: group ensure → build → arm deploy (nativeApply) → group delete.

Scope

Real-Azure path, via the logged-in az context. This closes the "chant can generate but not apply Azure" gap for real Azure. The local floci-az half stays open on #707 — floci-az doesn't implement Microsoft.Resources/deployments yet (see #705); the endpoint/custom-cloud override slots into azGroupEnsure when the upstream provider lands. Op activities live in the temporal lexicon (where the ARM apply command already lives), consistent with the k3d/floci Ops.

Verification

  • just build — clean
  • just lint — clean
  • just test — 651 files / 7322 passed (incl. 3 new azure tests)

End-to-end needs az login (not a CI gate).

Part of #707.

Give chant a first-class Azure deploy path. `nativeApply({target:"arm"})`
already runs `az deployment group create`, but that fails without an existing
resource group (unlike CloudFormation, which creates its own stack) — so Azure
had no runnable deploy Op. This adds the missing RG lifecycle.

- core builders azGroupEnsure/azGroupDelete (packages/core/src/op)
- temporal-lexicon activity impls with pure, testable command builders;
  azGroupEnsure is idempotent (`az group create` is a no-op on an existing
  group), azGroupDelete is non-blocking (`--no-wait`)
- unit tests over the command builders
- examples/local-op-quickstart/ops/azure-deploy.op.ts composing the real-Azure
  loop: group ensure -> build -> arm deploy (nativeApply) -> group delete

Real-Azure path (via the logged-in `az` context). Local emulation against
floci-az awaits an upstream Microsoft.Resources/deployments provider (#705);
the endpoint/custom-cloud override slots into azGroupEnsure when that lands.
@lex00
lex00 merged commit c12c89d into main Jul 8, 2026
5 checks passed
@lex00
lex00 deleted the feature/707-azure-apply-path branch July 8, 2026 03:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant