Repository navigation
feat(op): Azure resource-group lifecycle for ARM deploys — #707 - #710
Merged
Merged
Conversation
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.
4 tasks
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.
Part of #707 — gives chant a first-class Azure deploy path.
The gap
nativeApply({target:"arm"})already runsaz deployment group create --resource-group <env> --template-file <output>, andApplyOp({target:"arm"})wires it. Butaz deployment group createfails 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/azGroupDeletebuilders (packages/core/src/op/builders.ts), exported through core and re-exported from the temporal lexicon.lexicons/temporal/src/op/activities/azure.ts) with pure command-builders split from execution.azGroupEnsureis idempotent (az group createno-ops on an existing group);azGroupDeleteis non-blocking (--no-wait).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
azcontext. 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 implementMicrosoft.Resources/deploymentsyet (see #705); the endpoint/custom-cloud override slots intoazGroupEnsurewhen 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— cleanjust lint— cleanjust test— 651 files / 7322 passed (incl. 3 new azure tests)End-to-end needs
az login(not a CI gate).Part of #707.