Azure Bicep
$ bicep Official Low RiskAzure Bicep (bicep) compiles concise .bicep Infrastructure-as-Code files into ARM JSON templates (bicep build), decompiles ARM JSON (bicep decompile), formats code, and validates rules via bicep lint with --diagnostics-format Sarif.
brew install azure/bicep/bicep bicep build and bicep lint are deterministic local compiler/linter steps that validate edits in milliseconds without network round-trips.
Agent-Readiness Checklist
Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.
FCRS-1.0 6-Dimension Breakdown
Deterministic non-interactive CLI with --stdout ARM JSON emission and --diagnostics-format Sarif structured lint output.
- Supports
bicep build --stdoutand--diagnostics-format Sarif - Clean non-zero exit codes on syntax or lint errors
Local compiler and static analyzer with zero cloud deployment side effects; only bicep publish touches remote registries.
- Pure local compilation/linting via
build --stdoutandlint
Self-contained native binaries on macOS, Linux, and Windows via Homebrew tap, winget, or az bicep install.
- Standalone
brew install azure/bicep/bicepand GitHub release binaries
Essential verification loop for agents authoring Azure IaC before handing off to az deployment or azd.
- Fast local feedback loop for syntax, types, and best-practice rules
Official Microsoft IaC compiler (Azure/bicep) under MIT license with active monthly releases.
- Official
Azure/biceprepository under MIT license
Clear Microsoft Learn CLI docs and concise --help output.
- Official Microsoft Learn Bicep CLI documentation
Security, Auth & Guardrails
Offline compilation requires no credentials; publishing or restoring private registry modules uses Azure CLI / Entra ID credentials.
Free MIT open-source compiler; does not deploy cloud resources directly.
# Azure Bicep Agent Rules - Run `bicep lint <file> --diagnostics-format Sarif` and `bicep build <file> --stdout` after editing `.bicep` files. - Pass `--no-restore` in air-gapped sandboxes. - Never run `bicep publish` to shared registries without explicit approval.
Agent-Ready Command Recipes
Safe Read-Only Queries
bicep lint main.bicep --diagnostics-format Sarif
Emits machine-readable SARIF JSON lint findings without writing output files.
bicep build main.bicep --stdout
Compiles .bicep into ARM JSON directly to stdout without mutating the workspace.
Controlled Writes & Previews
bicep format main.bicep
Applies canonical formatting to a local .bicep file.
Strengths for Agents
- +
bicep build --stdoutcompiles to ARM JSON without leaving generated artifacts behind. - +
--diagnostics-format Sarifproduces structured JSON lint findings for automated checks. - + Safe local verification step with zero Azure billing impact.
Caveats & Pitfalls
- ! External Bicep registry modules require network auth unless
--no-restoreis passed. - ! Only compiles and lints templates; actual deployment requires
azorazd.