Public: anyone can read this; nobody can change it.

azure-gate: deploy via az rest (nixpkgs az deployment module crashes on NixOS) #154

Merged opened this view on origin

Check · Review · Land done · Live — Landed; nothing deploys from this branch, so this is the end of its path.

Merged

The blocker after the bicep fix (#151).

Notes

shipped merged

opened this view on origin

The blocker after the bicep fix (#151). Diagnosed from Forgejo's action-log storage and reproduced on the runner: even with nixpkgs#bicep on PATH and use_binary_from_path=true, az deployment group create crashes on the NixOS runner:

ERROR: 'NoneType' object has no attribute '__name__'

The nixpkgs azure-cli's az deployment command module is broken (same class as the az aks nodepool add SDK crash documented in aks-cost-experiment.md). Confirmed on vxrail that BOTH the .bicep and a pre-compiled .json crash identically and early → it's the command module, not bicep. az rest against the ARM deployments API works (validated on the runner: provisioningState: Succeeded).

Fix (deploy/azure/gate.sh + workflow):

  • deploy() helper: compile the bicep to ARM JSON with nix bicep, submit via az rest PUT, poll provisioningState; dep_output() reads outputs via az rest GET. Both vms + aks deploy sites use it.
  • Off-NixOS laptops (no bicep on PATH) keep using az deployment group create unchanged.
  • workflow: add nixpkgs#python3 (deploy() builds the ARM payload with it).

Note: this supersedes Ben's #153 (which is the same bicep fix already merged as #151) — #153 can be closed. This one goes a layer deeper to the actual deploy crash.

🤖 Generated with Claude Code

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs