Repository navigation
Closed
Labels
enhancementNew feature or request
Description
Goal
Give chant a first-class Azure apply path — an Op + apply component that drives
az deployment of the ARM template chant already emits, instead of the user running it
by hand. Today the azure lexicon can generate but not deploy.
The gap (found in the deploy-Op coverage audit, #704 / #705)
- AWS has a full apply surface:
lexicons/aws/src/components/(apply.ts,
cloud-executor.ts,wait-aws.ts,safety.ts, …) plus real deploy Ops
(lexicons/aws/examples/lifecycle-reconcile-aws/ops/{apply,reconcile}.op.ts). - k8s deploys via the
kubectlApply/helmInstall/waitForStackactivities. - Azure has neither — no
components/dir, no deploy Op (only a lexicon-upgrade
op). The serializer emits an ARM template (deploymentTemplate.json); actually
deploying it is a manualaz deploymentdocumented only in thechant-azure
skills.
So chant cannot drive an Azure deploy at all — real or local.
Why this is independent of, and higher-leverage than, the emulator work
The floci-az Microsoft.Resources/deployments contribution (#705) unblocks the
emulator, but chant would still have nothing to drive it with. This apply path is a
prerequisite for local-Azure — and it also enables real Azure deploys, which
chant can't do today either. It stands on its own regardless of #705.
What to build (mirror the AWS pattern)
- Azure apply component (analogous to
lexicons/aws/src/components/apply.ts+
cloud-executor.ts):- Ensure resource group, run
az deployment group create(and/or subscription
scope) against the emitted ARM template, pass parameters, poll to terminal state,
surface outputs. - Endpoint override so the same component targets real Azure or a local
emulator (az cloud registercustom cloud / ARM endpoint) — the Azure analogue of
AWS'sAWS_ENDPOINT_URLincloud-executor.ts. This is what lets it point at
floci-az once Research: local-deploy feasibility for Azure (floci-az) + GCP (floci-gcp) #705 lands. - A
wait-azureanalogue if needed; reusesafety-style guards.
- Ensure resource group, run
- Azure deploy Op (mirror
lifecycle-reconcile-aws/ops/apply.op.ts): phases
build → deploy (az deployment) → wait.
Place in the azure lexicon behind the capability seam, consistent with the AWS
components relocation.
Acceptance criteria
- An Azure apply component deploys an emitted ARM template end-to-end via
az deploymentagainst real Azure (a small example stack). - An Azure deploy Op composes
build → deploy → waitand runs via the local
executor. - Endpoint override is supported (custom cloud / ARM endpoint), so the same path can
target a local emulator — the hook Research: local-deploy feasibility for Azure (floci-az) + GCP (floci-gcp) #705 depends on. - Rough parity with the AWS apply surface (resource-group ensure, param passing,
wait/poll, output capture).
Relationships
- Prerequisite for local-Azure (Research: local-deploy feasibility for Azure (floci-az) + GCP (floci-gcp) #705) — even with the floci-az deployments provider,
chant needs this to drive it. - Mirrors the AWS apply surface referenced in Native local-deploy targets: AWS (floci) + vanilla k8s (k3d) as Ops #704.
Out of scope
- The floci-az emulator contribution itself (Research: local-deploy feasibility for Azure (floci-az) + GCP (floci-gcp) #705).
- GCP (chant has no native GCP apply path: add a GCP applier (direct REST → floci-gcp / real GCP) #706) and the WASM sandbox (parked).
Metadata
Metadata
Assignees
Labels
enhancementNew feature or request
Activity
feat(op): add Azure resource-group lifecycle for ARM deploys (#707) (#…
lex00 commentedon Jul 8, 2026
✅ Real-Azure apply path — done in #710 (merged).
nativeApply({target:"arm"})already runsaz deployment group create, but it needs the resource group to exist first. Added the missing RG lifecycle:azGroupEnsure/azGroupDeletebuilders (core) + idempotent/non-blocking activity impls (temporal lexicon) + pure command builders + tests (3).examples/local-op-quickstart/ops/azure-deploy.op.ts: group ensure → build → arm deploy → group delete.chant can now drive a first-class real Azure deploy. Still open on this issue: the local floci-az half — blocked until floci-az implements
Microsoft.Resources/deployments(#705); the endpoint/custom-cloud override slots intoazGroupEnsurewhen that lands.feat(op): azApply — direct ARM-resource applier for floci-az / real A…
lex00 commentedon Jul 8, 2026
✅ Local Azure apply unblocked — azApply shipped in #722 (merged). Direct ARM-resource applier: reads chant's built ARM template, evaluates the ARM expressions (concat/uniqueString/resourceGroup/subscription), and PUTs each resource straight to floci-az's ARM resource CRUD — bypassing
az deployment, which floci-az can't do. Verified live: basic-storage → storage account created on floci-az (GET 200). Azure now joins AWS (floci/CFN) and GCP (floci-gcp/gcpApply) as locally-runnable.feat(op): azApply reference()/listKeys() + ARM dependency ordering (#707
lex00 commentedon Jul 8, 2026
✅ reference()/listKeys() + ARM ordering shipped — #725 (merged). azApply's evaluator now handles
resourceId,reference('name')(runtime properties), andlistKeys(...)(async key action) with.prop/[index]access, and applies resources in dependency order (referenced before referrer, cycle-detecting). Verified live on floci-az: an out-of-order 2-storage template reorders and the sink resolves the source's real listKeys key + reference blob endpoint.Azure now matches GCP on expressions + ordering. Remaining Azure-vs-GCP gap: resource-level delete/prune.
[-]chant has no Azure apply path: add an Azure deploy Op + apply component (az deployment)[/-][+]chant has no Azure apply path: add an Azure applier (per-resource ARM PUT → floci-az / real ARM)[/+]lex00 commentedon Aug 2, 2026
Shipped in 0.15.0 and verified today against a current
floci/floci-az:latest. Closing.The title said
az deployment; the applier does not, and this is the correction #1204 asked for.az-apply.tsPUTs each resource at/subscriptions/{sub}/resourceGroups/{rg}/providers/{type}/{name}?api-version=…(armResourceUrl, line ~254; thePUTat line ~329). There is noMicrosoft.Resources/deploymentscall, and floci-az has no deployments provider to make one against. The title now matches the transport that shipped, so closing it does not leave the wrong mechanism in the record.fix(temporal): route the arm apply target through azApply, so owned-o…
fix(temporal): route the arm apply target through azApply, so owned-o…