Directory Compare FCRS-1.0 /llms.txt
← Back to Directory

Azure Bicep

$ bicep Official Low Risk
Microsoft · Cloud & Infra · MIT · macos / linux / windows

Azure 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.

FCRS-1.0 Score
88 /100
Good
Medium Confidence
Zero-Friction Install
brew install azure/bicep/bicep
CLI vs MCP Decision CLI Preferred vs MCP

bicep build and bicep lint are deterministic local compiler/linter steps that validate edits in milliseconds without network round-trips.

Agent-Readiness Checklist

✓ JSON Output
— Field Filtering
✓ Non-Interactive
— Dry-Run
— Read-Only Mode
— NO_COLOR Clean
✓ Self-Describing
— Official SKILL.md

Static evaluation (not yet probed on this host). Run npm run data:probe locally to capture live verification.

FCRS-1.0 6-Dimension Breakdown

Agent-Readiness 21 / 25

Deterministic non-interactive CLI with --stdout ARM JSON emission and --diagnostics-format Sarif structured lint output.

  • Supports bicep build --stdout and --diagnostics-format Sarif
  • Clean non-zero exit codes on syntax or lint errors
Trust & Safety 24 / 25

Local compiler and static analyzer with zero cloud deployment side effects; only bicep publish touches remote registries.

  • Pure local compilation/linting via build --stdout and lint
Setup & Portability 14 / 15

Self-contained native binaries on macOS, Linux, and Windows via Homebrew tap, winget, or az bicep install.

  • Standalone brew install azure/bicep/bicep and GitHub release binaries
Utility & Efficiency 12 / 15

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
Maintenance & Lineage 9 / 10

Official Microsoft IaC compiler (Azure/bicep) under MIT license with active monthly releases.

  • Official Azure/bicep repository under MIT license
Docs & Verifiability 8 / 10

Clear Microsoft Learn CLI docs and concise --help output.

  • Official Microsoft Learn Bicep CLI documentation

Security, Auth & Guardrails

Auth Modes
No Auth OAuth Browser Service Account
Credential Storage

Offline compilation requires no credentials; publishing or restoring private registry modules uses Azure CLI / Entra ID credentials.

Side Effects
Read-Only Local Write Remote Write
Cost & Quotas

Free MIT open-source compiler; does not deploy cloud resources directly.

Copyable Guardrail for CLAUDE.md / AGENTS.md
# 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

Lint a Bicep file with SARIF JSON diagnostics
bicep lint main.bicep --diagnostics-format Sarif

Emits machine-readable SARIF JSON lint findings without writing output files.

Compile Bicep to ARM JSON on stdout
bicep build main.bicep --stdout

Compiles .bicep into ARM JSON directly to stdout without mutating the workspace.

Controlled Writes & Previews

Format a Bicep template in place
bicep format main.bicep

Applies canonical formatting to a local .bicep file.

Strengths for Agents

  • + bicep build --stdout compiles to ARM JSON without leaving generated artifacts behind.
  • + --diagnostics-format Sarif produces 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-restore is passed.
  • ! Only compiles and lints templates; actual deployment requires az or azd.

Tested Agent Hosts

Claude Code Codex CLI Gemini CLI